[ Index ] |
|
Code source de osCommerce 2.2ms2-060817 |
1 <?php 2 /* 3 $Id: install_6.php,v 1.2 2003/07/12 08:10:08 hpdl Exp $ 4 5 osCommerce, Open Source E-Commerce Solutions 6 http://www.oscommerce.com 7 8 Copyright (c) 2003 osCommerce 9 10 Released under the GNU General Public License 11 */ 12 ?> 13 <p class="pageTitle">New Installation</p> 14 15 <p><b>osCommerce Configuration</b></p> 16 17 <form name="install" action="install.php?step=7" method="post"> 18 19 <table width="95%" border="0" cellpadding="2" class="formPage"> 20 <tr> 21 <td width="30%" valign="top">Database Server:</td> 22 <td width="70%" class="smallDesc"> 23 <?php echo osc_draw_input_field('DB_SERVER'); ?> 24 <img src="images/layout/help_icon.gif" onClick="toggleBox('dbHost');"><br> 25 <div id="dbHostSD">Hostame or IP-address of the database server</div> 26 <div id="dbHost" class="longDescription">The database server can be in the form of a hostname, such as db1.myserver.com, or as an IP-address, such as 192.168.0.1</div> 27 </td> 28 </tr> 29 <tr> 30 <td width="30%" valign="top">Username:</td> 31 <td width="70%" class="smallDesc"> 32 <?php echo osc_draw_input_field('DB_SERVER_USERNAME'); ?> 33 <img src="images/layout/help_icon.gif" onClick="toggleBox('dbUser');"><br> 34 <div id="dbUserSD">Database username</div> 35 <div id="dbUser" class="longDescription">The username used to connect to the database server. An example username is 'mysql_10'.<br><br>Note: Create and Drop permissions <b>are not required</b> for the general use of osCommerce.</div> 36 </td> 37 </tr> 38 <tr> 39 <td width="30%" valign="top">Password:</td> 40 <td width="70%" class="smallDesc"> 41 <?php echo osc_draw_password_field('DB_SERVER_PASSWORD'); ?> 42 <img src="images/layout/help_icon.gif" onClick="toggleBox('dbPass');"><br> 43 <div id="dbPassSD">Database password</div> 44 <div id="dbPass" class="longDescription">The password is used together with the username, which forms the database user account.</div> 45 </td> 46 </tr> 47 <tr> 48 <td width="30%" valign="top">Database Name:</td> 49 <td width="70%" class="smallDesc"> 50 <?php echo osc_draw_input_field('DB_DATABASE'); ?> 51 <img src="images/layout/help_icon.gif" onClick="toggleBox('dbName');"><br> 52 <div id="dbNameSD">Database Name</div> 53 <div id="dbName" class="longDescription">The database used to hold the data. An example database name is 'osCommerce'.</div> 54 </td> 55 </tr> 56 <tr> 57 <td width="30%" valign="top">Persistent Connections:</td> 58 <td width="70%" class="smallDesc"> 59 <?php echo osc_draw_checkbox_field('USE_PCONNECT', 'true'); ?> 60 <img src="images/layout/help_icon.gif" onClick="toggleBox('dbConn');"><br> 61 <div id="dbConnSD"></div> 62 <div id="dbConn" class="longDescription">Enable persistent database connections.<br><br>Note: Persistent connections should be disabled for shared servers.</div> 63 </td> 64 </tr> 65 <tr> 66 <td width="30%" valign="top">Session Storage:</td> 67 <td width="70%" class="smallDesc"> 68 <?php echo osc_draw_radio_field('STORE_SESSIONS', 'files', (isset($HTTP_POST_VARS['STORE_SESSIONS']) ? '' : true)); ?> Files <?php echo osc_draw_radio_field('STORE_SESSIONS', 'mysql'); ?> Database 69 <img src="images/layout/help_icon.gif" onClick="toggleBox('dbSess');"><br> 70 <div id="dbSessSD"></div> 71 <div id="dbSess" class="longDescription">Store user session data as files on the server, or in the database.<br><br>Note: Due to security related issues, database session storage is recommended for shared servers.</td></div> 72 </td> 73 </tr> 74 </table> 75 76 <p> </p> 77 78 <table border="0" width="100%" cellspacing="0" cellpadding="0"> 79 <tr> 80 <td align="center"><a href="index.php"><img src="images/button_cancel.gif" border="0" alt="Cancel"></a></td> 81 <td align="center"><input type="image" src="images/button_continue.gif" border="0" alt="Continue"></td> 82 </tr> 83 </table> 84 85 <?php 86 reset($HTTP_POST_VARS); 87 while (list($key, $value) = each($HTTP_POST_VARS)) { 88 if (($key != 'x') && ($key != 'y') && ($key != 'DB_SERVER') && ($key != 'DB_SERVER_USERNAME') && ($key != 'DB_SERVER_PASSWORD') && ($key != 'DB_DATABASE') && ($key != 'USE_PCONNECT') && ($key != 'STORE_SESSIONS')) { 89 if (is_array($value)) { 90 for ($i=0; $i<sizeof($value); $i++) { 91 echo osc_draw_hidden_field($key . '[]', $value[$i]); 92 } 93 } else { 94 echo osc_draw_hidden_field($key, $value); 95 } 96 } 97 } 98 ?> 99 100 </form>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 19:48:25 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |