[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/setup/ -> setup.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2009 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
   6   
   7     This script is part of PHPWCMS. The PHPWCMS web content management system is
   8     free software; you can redistribute it and/or modify it under the terms of
   9     the GNU General Public License as published by the Free Software Foundation;
  10     either version 2 of the License, or (at your option) any later version.
  11    
  12     The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
  13     A copy is found in the textfile GPL.txt and important notices to the license 
  14     from the author is found in LICENSE.txt distributed with these scripts.
  15    
  16     This script is distributed in the hope that it will be useful, but WITHOUT ANY 
  17     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  18     PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  19   
  20     This copyright notice MUST APPEAR in all copies of the script!
  21  *************************************************************************************/
  22  
  23  session_start();
  24  
  25  require_once ('inc/setup.func.inc.php');
  26  require_once ('setup.conf.inc.php');
  27  
  28  $step        = isset($_GET["step"]) ? intval($_GET["step"]) : 0;
  29  $do            = isset($_POST["do"]) ? intval($_POST["do"]) : 0;
  30  $err        = 0;
  31  $prepend    = $phpwcms["db_prepend"];
  32  
  33  if($do) require_once ('inc/setup.check.inc.php');
  34  
  35  
  36  ?>
  37  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  38  <html xmlns="http://www.w3.org/1999/xhtml">
  39  <head>
  40  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $phpwcms['charset'] ?>" />
  41  <title>phpwcms Install</title>
  42  <link href="../include/inc_css/install.css" rel="stylesheet" type="text/css" />
  43  </head>
  44  
  45  <body>
  46  <table width="770" border="0" align="center" cellpadding="0" cellspacing="0" summary="">
  47    <tr>
  48      <td colspan="3"><img src="../img/leer.gif" alt="[beliebiger Wert]" width="1" height="7" /></td>
  49    </tr>
  50    <tr>
  51      <td colspan="3"><img src="../img/leer.gif" alt="" width="15" height="1" /><a href="http://www.phpwcms.de" target="_blank"><img src="../img/backend/backend_r1_c3.jpg" alt="phpwcms" width="95" height="24" border="0" /></a></td>
  52    </tr>
  53    <tr>
  54      <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="7" /></td>
  55    </tr>
  56    <tr bgcolor="#FFFFFF">
  57      <td valign="top" style="background-image:url(../img/backend/backend_r3_c4.jpg); background-repeat:repeat-x; "><img src="../img/backend/backend_r3_c1.jpg" alt="" width="15" height="40" /></td>
  58      <td valign="top" style="background-image:url(../img/backend/backend_r3_c4.jpg); background-repeat:repeat-x; "><table width="740" border="0" cellpadding="0" cellspacing="0" summary="">
  59          <tr>
  60            <td colspan="2"><img src="../img/leer.gif" alt="" width="1" height="9" /></td>
  61          </tr>
  62          <tr>
  63            <td valign="top" class="navtext">PHPWCMS SETUP VERSION&nbsp;<?php echo $phpwcms_version.', RELEASE '.$phpwcms_release_date ?></td>
  64            <td align="right" valign="top" class="navtext"><a href="../index.php" target="_top">HOME</a> |
  65              <a href="upgrade.php">UPGRADE</a> | <a href="index.php" target="_top">LICENCE</a> | <a href="../<?php echo $phpwcms['login.php'] ?>" target="_top">LOGIN</a></td>
  66          </tr>
  67      </table></td>
  68      <td valign="top" style="background-image:url(../img/backend/backend_r3_c4.jpg); background-repeat:repeat-x; "><img src="../img/backend/backend_r3_c7.jpg" alt="" width="15" height="40" /></td>
  69    </tr>
  70    <tr bgcolor="#FFFFFF">
  71      <td width="15" bgcolor="#FFFFFF" style="background-image:url(../img/backend/preinfo2_r7_c2.gif);background-repeat:repeat-y;"><img src="../img/leer.gif" alt="" width="15" height="1" /></td>
  72      <td valign="top" bgcolor="#FFFFFF"><?php
  73          
  74          if(empty($NO_ACCESS)) {
  75          
  76              switch($step) {
  77                  case  1:    include  "inc/step1.inc.php"; break;
  78                  case  2:    include  "inc/step2.inc.php"; break;
  79                  case  3:    include  "inc/step3.inc.php"; break;
  80                  case  4:    include  "inc/step4.inc.php"; break;
  81                  case  5:    include  "inc/step5.inc.php"; break;
  82                  default:    include  "inc/step0.inc.php";
  83              }
  84              
  85          } else {
  86          
  87              
  88          
  89              ?>
  90      <h1><img src="../img/famfamfam/action_stop.gif" alt="Setup STOP" class="icon" /> Setup
  91        stopped </h1>
  92              <p>Access on setup process is restricted if the setup config file is downloaded once. To re-enable setup remove the line</p>
  93              <p class="code">$NO_ACCESS = true;</p>
  94              <p>in setup.conf.inc.php.</p>
  95              <?php
  96          
  97          }
  98          
  99          ?></td>
 100      <td width="15" bgcolor="#FFFFFF" style="background-image:url(../img/backend/preinfo2_r7_c7.gif);background-repeat:repeat-y;background-position:right;"><img src="../img/leer.gif" alt="" width="15" height="1" /></td>
 101    </tr>
 102    <tr>
 103      <td><img src="../img/backend/backend_a_r1_c1.gif" alt="" width="15" height="15" border="0" /></td>
 104      <td valign="bottom" bgcolor="#FFFFFF" class="navtext"><img src="../img/backend/backend_r6_c2.jpg" alt="" width="740" height="15" border="0" /></td>
 105      <td valign="bottom" class="navtext"><img src="../img/backend/backend_a_r1_c7.gif" alt="" width="15" height="15" border="0" /></td>
 106    </tr>
 107    <tr>
 108      <td width="15"><img src="../img/leer.gif" alt="" width="14" height="20" /></td>
 109      <td colspan="2" valign="bottom" class="navtext"><a href="http://www.phpwcms.de" target="_blank">phpwcms</a> &copy; 2003&#8212;2006  <a title="oliver at phpwcms dot de" onclick="location.href='mailto:oliver'+'@'+'phpwcms'+'.'+'de';return false;" href="#">Oliver
 110          Georgi</a>. Licensed under <a href="http://www.gnu.org/licenses/gpl.html" target="_blank">GPL</a>.
 111          Extensions are copyright of their respective owners.</td>
 112    </tr>
 113    <tr>
 114      <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="8" /></td>
 115    </tr>
 116  </table>
 117  <!--
 118  <pre>
 119  
 120  <?php 
 121  print_r('http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['REQUEST_URI']).'/');
 122  print_r($phpwcms);
 123  
 124  ?>
 125  
 126  </pre>
 127  //-->
 128  </body>
 129  </html>


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7