[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/install/templates/pages/ -> install_2.php (source)

   1  <?php
   2  /*

   3  $Id: install_2.php 3 2006-05-27 04:59:07Z user $

   4  

   5    osCMax Power E-Commerce

   6    http://oscdox.com

   7  

   8    Copyright 2008 osCMax

   9  

  10    Released under the GNU General Public License

  11  */
  12  
  13    $www_location = 'http://' . $HTTP_SERVER_VARS['HTTP_HOST'];
  14  
  15    if (isset($HTTP_SERVER_VARS['REQUEST_URI']) && !empty($HTTP_SERVER_VARS['REQUEST_URI'])) {
  16      $www_location .= $HTTP_SERVER_VARS['REQUEST_URI'];
  17    } else {
  18      $www_location .= $HTTP_SERVER_VARS['SCRIPT_FILENAME'];
  19    }
  20  
  21    $www_location = substr($www_location, 0, strpos($www_location, 'install'));
  22  
  23    $dir_fs_www_root = osc_realpath(dirname(__FILE__) . '/../../../') . '/';
  24  ?>
  25  
  26  <div class="mainBlock">
  27    <div class="stepsBox">
  28      <ol>
  29        <li>Database Server</li>
  30        <li style="font-weight: bold;">Web Server</li>
  31        <li>Online Store Settings</li>
  32        <li>Finished!</li>
  33      </ol>
  34    </div>
  35  
  36    <h1>New Installation</h1>
  37  
  38    <p>This web-based installation routine will correctly setup and configure osCMax Power E-Commerce to run on this server.</p>
  39    <p>Please follow the on-screen instructions that will take you through the database server, web server, and store configuration options. If help is needed at any stage, please consult the documentation or seek help at the community support forums.</p>
  40  </div>
  41  
  42  <div class="contentBlock">
  43    <div class="infoPane">
  44      <h3>Step 2: Web Server</h3>
  45  
  46      <div class="infoPaneContents">
  47        <p>The web server takes care of serving the pages of your online store to your guests and customers. The web server parameters make sure the links to the pages point to the correct location.</p>
  48      </div>
  49    </div>
  50  
  51    <div class="contentPane">
  52      <h2>Web Server</h2>
  53  
  54      <form name="install" id="installForm" action="install.php?step=3" method="post">
  55  
  56      <table border="0" width="99%" cellspacing="0" cellpadding="5" class="inputForm">
  57        <tr>
  58          <td class="inputField"><?php echo 'WWW Address<br />' . osc_draw_input_field('HTTP_WWW_ADDRESS', $www_location, 'class="text"'); ?></td>
  59          <td class="inputDescription">The web address to the online store.</td>
  60        </tr>
  61        <tr>
  62          <td class="inputField"><?php echo 'Webserver Root Directory<br />' . osc_draw_input_field('DIR_FS_DOCUMENT_ROOT', $dir_fs_www_root, 'class="text"'); ?></td>
  63          <td class="inputDescription">The directory where the online store is installed on the server.</td>
  64        </tr>
  65      </table>
  66  
  67      <p align="right"><input type="image" src="images/button_continue.gif" border="0" alt="Continue" id="inputButton" />&nbsp;&nbsp;<a href="index.php"><img src="images/button_cancel.gif" border="0" alt="Cancel" /></a></p>
  68  
  69  <?php
  70    reset($HTTP_POST_VARS);
  71    while (list($key, $value) = each($HTTP_POST_VARS)) {
  72      if (($key != 'x') && ($key != 'y')) {
  73        if (is_array($value)) {
  74          for ($i=0, $n=sizeof($value); $i<$n; $i++) {
  75            echo osc_draw_hidden_field($key . '[]', $value[$i]);
  76          }
  77        } else {
  78          echo osc_draw_hidden_field($key, $value);
  79        }
  80      }
  81    }
  82  ?>
  83  
  84      </form>
  85    </div>
  86  </div>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7