Changeset 254 for dev/install/install_step3.php
- Timestamp:
- 12/05/07 20:53:40 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/install/install_step3.php
r168 r254 1 1 <?php 2 2 $stoppage = true; 3 3 4 if ($_REQUEST['submit']) 4 5 { … … 14 15 $host = 'localhost'; 15 16 } 17 if (file_exists('../config.php')) 18 { 19 echo '<div class="block-header2">Found old config</div>'; 20 echo 'We will just reuse the data and create a new one.<br/>'; 21 include_once('../config.php'); 22 $_SESSION['sql'] = array(); 23 $_SESSION['sql']['host'] = DB_HOST; 24 $_SESSION['sql']['user'] = DB_USER; 25 $_SESSION['sql']['pass'] = DB_PASS; 26 $_SESSION['sql']['db'] = DB_NAME; 27 } 28 else 29 { 16 30 ?> 17 31 <form id="options" name="options" method="post" action="?step=3"> … … 25 39 <tr><td width="120"></td><td><input type=submit name=submit value="Test"></td></tr> 26 40 </table> 41 <?php 42 } 27 43 28 <?php29 44 if ($_SESSION['sql']['db']) 30 45 {