home *** CD-ROM | disk | FTP | other *** search
/ Practical Internet Web Designer 90 / PIWD90.iso / pc / contents / ecommerce / software / osCommerce.exe / oscommerce-2.2ms2 / catalog / install / install.php < prev    next >
PHP Script  |  2003-07-08  |  2KB  |  73 lines

  1. <?php
  2. /*
  3.   $Id: install.php,v 1.3 2003/07/09 01:11:04 hpdl Exp $
  4.  
  5.   osCommerce, Open Source E-Commerce Solutions
  6.   http://www.oscommerce.com
  7.  
  8.   Copyright (c) 2002 osCommerce
  9.  
  10.   Released under the GNU General Public License
  11. */
  12.  
  13.   require('includes/application.php');
  14.  
  15.   $page_file = 'install.php';
  16.   $page_title = 'Installation';
  17.  
  18.   switch ($HTTP_GET_VARS['step']) {
  19.     case '2':
  20.       if (osc_in_array('database', $HTTP_POST_VARS['install'])) {
  21.         $page_contents = 'install_2.php';
  22.       } elseif (osc_in_array('configure', $HTTP_POST_VARS['install'])) {
  23.         $page_contents = 'install_4.php';
  24.       } else {
  25.         $page_contents = 'install.php';
  26.       }
  27.       break;
  28.     case '3':
  29.       if (osc_in_array('database', $HTTP_POST_VARS['install'])) {
  30.         $page_contents = 'install_3.php';
  31.       } else {
  32.         $page_contents = 'install.php';
  33.       }
  34.       break;
  35.     case '4':
  36.       if (osc_in_array('configure', $HTTP_POST_VARS['install'])) {
  37.         $page_contents = 'install_4.php';
  38.       } else {
  39.         $page_contents = 'install.php';
  40.       }
  41.       break;
  42.     case '5':
  43.       if (osc_in_array('configure', $HTTP_POST_VARS['install'])) {
  44.         if (isset($HTTP_POST_VARS['ENABLE_SSL']) && ($HTTP_POST_VARS['ENABLE_SSL'] == 'true')) {
  45.           $page_contents = 'install_5.php';
  46.         } else {
  47.           $page_contents = 'install_6.php';
  48.         }
  49.       } else {
  50.         $page_contents = 'install.php';
  51.       }
  52.       break;
  53.     case '6':
  54.       if (osc_in_array('configure', $HTTP_POST_VARS['install'])) {
  55.         $page_contents = 'install_6.php';
  56.       } else {
  57.         $page_contents = 'install.php';
  58.       }
  59.       break;
  60.     case '7':
  61.       if (osc_in_array('configure', $HTTP_POST_VARS['install'])) {
  62.         $page_contents = 'install_7.php';
  63.       } else {
  64.         $page_contents = 'install.php';
  65.       }
  66.       break;
  67.     default:
  68.       $page_contents = 'install.php';
  69.   }
  70.  
  71.   require('templates/main_page.php');
  72. ?>
  73.