[ Index ] |
PHP Cross Reference of osCMax 2.0.4 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 $Id: index.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 $compat_register_globals = true; 13 14 if (function_exists('ini_get') && (PHP_VERSION < 4.3) && ((int)ini_get('register_globals') == 0)) { 15 $compat_register_globals = false; 16 } 17 ?> 18 19 <div class="mainBlock"> 20 <h1>Welcome to osCMax Power E-Commerce <?php echo PROJECT_VERSION; ?></h1> 21 22 <p>osCMax Power E-Commerce allows you to sell products worldwide with your own online store. The administration side manages products, customers, orders, newsletters, specials, and more to successfully build and thrive on the success of your online business.</p> 23 <p>osCMax Power E-Commerce is based on osCommerce Online Merchant 2.2 and is aimed at making deployment of your site faster and easier than ever. osCMax Power E-Commerce is backwards compatible with osCommerce Online Merchant 2.2 and thus you can leverage the largest community for an online shopping cart solution: over 140,000 registered store owners and developers who help one another out and have provided over 4,000 add-ons that extend the features and potential of your online store.</p> 24 <p>osCMax Power E-Commerce and its add-ons are available for free under an Open Source license to help you start selling online sooner without any licensing fees or limitations involved.</p> 25 </div> 26 27 <div class="contentBlock"> 28 <div class="infoPane"> 29 <h3>Server Capabilities</h3> 30 31 <div class="infoPaneContents"> 32 <table border="0" width="100%" cellspacing="0" cellpadding="2"> 33 <tr> 34 <td><b>PHP Version</b></td> 35 <td align="right"><?php echo PHP_VERSION; ?></td> 36 <td align="right" width="25"><img src="images/<?php echo ((PHP_VERSION >= 4) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td> 37 </tr> 38 </table> 39 40 <?php 41 if (function_exists('ini_get')) { 42 ?> 43 44 <br /> 45 46 <table border="0" width="100%" cellspacing="0" cellpadding="2"> 47 <tr> 48 <td><b>PHP Settings</td> 49 <td align="right"></td> 50 <td align="right" width="25"></td> 51 </tr> 52 <tr> 53 <td>register_globals</td> 54 <td align="right"><?php echo (((int)ini_get('register_globals') == 0) ? 'Off' : 'On'); ?></td> 55 <td align="right"><img src="images/<?php echo (($compat_register_globals == true) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td> 56 </tr> 57 <tr> 58 <td>magic_quotes</td> 59 <td align="right"><?php echo (((int)ini_get('magic_quotes') == 0) ? 'Off' : 'On'); ?></td> 60 <td align="right"><img src="images/<?php echo (((int)ini_get('magic_quotes') == 0) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td> 61 </tr> 62 <tr> 63 <td>file_uploads</td> 64 <td align="right"><?php echo (((int)ini_get('file_uploads') == 0) ? 'Off' : 'On'); ?></td> 65 <td align="right"><img src="images/<?php echo (((int)ini_get('file_uploads') == 1) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td> 66 </tr> 67 <tr> 68 <td>session.auto_start</td> 69 <td align="right"><?php echo (((int)ini_get('session.auto_start') == 0) ? 'Off' : 'On'); ?></td> 70 <td align="right"><img src="images/<?php echo (((int)ini_get('session.auto_start') == 0) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td> 71 </tr> 72 <tr> 73 <td>session.use_trans_sid</td> 74 <td align="right"><?php echo (((int)ini_get('session.use_trans_sid') == 0) ? 'Off' : 'On'); ?></td> 75 <td align="right"><img src="images/<?php echo (((int)ini_get('session.use_trans_sid') == 0) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td> 76 </tr> 77 </table> 78 79 <br /> 80 81 <table border="0" width="100%" cellspacing="0" cellpadding="2"> 82 <tr> 83 <td><b>PHP Extensions</b></td> 84 <td align="right" width="25"></td> 85 </tr> 86 <tr> 87 <td>MySQL</td> 88 <td align="right"><img src="images/<?php echo (extension_loaded('mysql') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td> 89 </tr> 90 <tr> 91 <td>GD</td> 92 <td align="right"><img src="images/<?php echo (extension_loaded('gd') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td> 93 </tr> 94 <tr> 95 <td>cURL</td> 96 <td align="right"><img src="images/<?php echo (extension_loaded('curl') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td> 97 </tr> 98 <tr> 99 <td>OpenSSL</td> 100 <td align="right"><img src="images/<?php echo (extension_loaded('openssl') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td> 101 </tr> 102 </table> 103 104 <?php 105 } 106 ?> 107 108 </div> 109 </div> 110 111 <div class="contentPane"> 112 <h2>New Installation</h2> 113 114 <?php 115 $configfile_array = array(); 116 117 if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) { 118 @chmod(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php', 0777); 119 } 120 121 if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php')) { 122 @chmod(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php', 0777); 123 } 124 125 if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) { 126 $configfile_array[] = osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php'; 127 } 128 129 if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php')) { 130 $configfile_array[] = osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php'; 131 } 132 133 $warning_array = array(); 134 135 if (function_exists('ini_get')) { 136 if ($compat_register_globals == false) { 137 $warning_array['register_globals'] = 'Compatibility with register_globals is supported from PHP 4.3+. This setting <u>must be enabled</u> due to an older PHP version being used.'; 138 } 139 } 140 141 if ((sizeof($configfile_array) > 0) || (sizeof($warning_array) > 0)) { 142 ?> 143 144 <div class="noticeBox"> 145 146 <?php 147 if (sizeof($warning_array) > 0) { 148 ?> 149 150 <table border="0" width="100%" cellspacing="0" cellpadding="2" style="background: #fffbdf; border: 1px solid #ffc20b; padding: 2px;"> 151 152 <?php 153 reset($warning_array); 154 while (list($key, $value) = each($warning_array)) { 155 echo ' <tr>' . "\n" . 156 ' <td valign="top"><b>' . $key . '</b></td>' . "\n" . 157 ' <td valign="top">' . $value . '</td>' . "\n" . 158 ' </tr>' . "\n"; 159 } 160 ?> 161 162 </table> 163 <?php 164 } 165 166 if (sizeof($configfile_array) > 0) { 167 ?> 168 169 <p>The webserver is not able to save the installation parameters to its configuration files.</p> 170 <p>The following files need to have their file permissions set to world-writeable (chmod 777):</p> 171 <p> 172 173 <?php 174 for ($i=0, $n=sizeof($configfile_array); $i<$n; $i++) { 175 echo $configfile_array[$i]; 176 177 if (isset($configfile_array[$i+1])) { 178 echo '<br />'; 179 } 180 } 181 ?> 182 183 </p> 184 185 <?php 186 } 187 ?> 188 189 </div> 190 191 <?php 192 } 193 194 if ((sizeof($configfile_array) > 0) || (sizeof($warning_array) > 0)) { 195 ?> 196 197 <p>Please correct the above errors and retry the installation procedure with the changes in place.</p> 198 199 <?php 200 if (sizeof($warning_array) > 0) { 201 echo ' <p><i>Changing webserver configuration parameters may require the webserver service to be restarted before the changes take affect.</i></p>' . "\n"; 202 } 203 ?> 204 205 <p align="right"><a href="index.php"><img src="images/button_retry.gif" border="0" alt="Retry" /></a></p> 206 207 <?php 208 } else { 209 ?> 210 211 <p>The webserver environment has been verified to proceed with a successful installation and configuration of your online store.</p> 212 <p>Please continue to start the installation procedure.</p> 213 <p align="right"><a href="install.php"><img src="images/button_continue.gif" border="0" alt="Continue" /></a></p> 214 215 <?php 216 } 217 ?> 218 219 </div> 220 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Jan 1 13:43:16 2010 | Cross-referenced by PHPXref 0.7 |