[ Index ]

PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12)

title

Body

[close]

/setup/ -> setup.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2012 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  $phpwcms = array();
  26  
  27  require_once(dirname(__FILE__).'/inc/setup.func.inc.php');
  28  require_once ($DOCROOT.'/setup/setup.conf.inc.php');
  29  
  30  $step        = isset($_GET["step"]) ? intval($_GET["step"]) : 0;
  31  $do            = isset($_POST["do"]) ? intval($_POST["do"]) : 0;
  32  $err        = 0;
  33  $prepend    = $phpwcms["db_prepend"];
  34  
  35  if($do) require_once ($DOCROOT.'/setup/inc/setup.check.inc.php');
  36  
  37  
  38  ?>
  39  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  40  <html xmlns="http://www.w3.org/1999/xhtml">
  41  <head>
  42  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $phpwcms['charset'] ?>" />
  43  <title>phpwcms Install</title>
  44  <link href="../include/inc_css/install.css" rel="stylesheet" type="text/css" />
  45  </head>
  46  
  47  <body>
  48  <table width="770" border="0" align="center" cellpadding="0" cellspacing="0" summary="">
  49    <tr>
  50      <td colspan="3"><img src="../img/leer.gif" alt="[beliebiger Wert]" width="1" height="7" /></td>
  51    </tr>
  52    <tr>
  53      <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>
  54    </tr>
  55    <tr>
  56      <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="7" /></td>
  57    </tr>
  58    <tr bgcolor="#FFFFFF">
  59      <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>
  60      <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="">
  61          <tr>
  62            <td colspan="2"><img src="../img/leer.gif" alt="" width="1" height="9" /></td>
  63          </tr>
  64          <tr>
  65            <td valign="top" class="navtext">PHPWCMS SETUP VERSION&nbsp;<?php echo $phpwcms_version.', RELEASE '.$phpwcms_release_date ?></td>
  66            <td align="right" valign="top" class="navtext"><a href="../index.php" target="_top">HOME</a> |
  67              <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>
  68          </tr>
  69      </table></td>
  70      <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>
  71    </tr>
  72    <tr bgcolor="#FFFFFF">
  73      <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>
  74      <td valign="top" bgcolor="#FFFFFF"><?php
  75          
  76          if(empty($NO_ACCESS)) {
  77          
  78              switch($step) {
  79                  case  1:    include $DOCROOT.'/setup/inc/step1.inc.php'; break;
  80                  case  2:    include $DOCROOT.'/setup/inc/step2.inc.php'; break;
  81                  case  3:    include $DOCROOT.'/setup/inc/step3.inc.php'; break;
  82                  case  4:    include $DOCROOT.'/setup/inc/step4.inc.php'; break;
  83                  case  5:    include $DOCROOT.'/setup/inc/step5.inc.php'; break;
  84                  default:    include $DOCROOT.'/setup/inc/step0.inc.php';
  85              }
  86              
  87          } else {
  88          
  89              
  90          
  91              ?>
  92      <h1><img src="../img/famfamfam/action_stop.gif" alt="Setup STOP" class="icon" /> Setup
  93        stopped </h1>
  94              <p>Access on setup process is restricted if the setup config file is downloaded once. To re-enable setup remove the line</p>
  95              <p class="code">$NO_ACCESS = true;</p>
  96              <p>in setup.conf.inc.php.</p>
  97              <?php
  98          
  99          }
 100          
 101          ?></td>
 102      <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>
 103    </tr>
 104    <tr>
 105      <td><img src="../img/backend/backend_a_r1_c1.gif" alt="" width="15" height="15" border="0" /></td>
 106      <td valign="bottom" bgcolor="#FFFFFF" class="navtext"><img src="../img/backend/backend_r6_c2.jpg" alt="" width="740" height="15" border="0" /></td>
 107      <td valign="bottom" class="navtext"><img src="../img/backend/backend_a_r1_c7.gif" alt="" width="15" height="15" border="0" /></td>
 108    </tr>
 109    <tr>
 110      <td width="15"><img src="../img/leer.gif" alt="" width="14" height="20" /></td>
 111      <td colspan="2" valign="bottom" class="navtext"><a href="http://www.phpwcms.de" target="_blank">phpwcms</a> &copy; 2003&#8212;<?php echo date('Y') ?>  <a title="oliver at phpwcms dot de" onclick="location.href='mailto:oliver'+'@'+'phpwcms'+'.'+'de';return false;" href="#">Oliver
 112          Georgi</a>. Licensed under <a href="http://www.gnu.org/licenses/gpl.html" target="_blank">GPL</a>.
 113          Extensions are copyright of their respective owners.</td>
 114    </tr>
 115    <tr>
 116      <td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="8" /></td>
 117    </tr>
 118  </table>
 119  </body>
 120  </html>


Generated: Sun Jan 29 16:31:14 2012 Cross-referenced by PHPXref 0.7.1