Quick Search:

View

Revision:

Diff

Diff from 1268 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/branches/frank/osc-tickets/install/templates/pages/index.php

Annotated File View

hpdl
1
1 <?php
2 /*
mattice
151
3   $Id: index.php 1268 2007-02-27 00:15:48Z frank $
hpdl
1
4
5   osCommerce, Open Source E-Commerce Solutions
6   http://www.oscommerce.com
7
hpdl
383
8   Copyright (c) 2006 osCommerce
hpdl
1
9
10   Released under the GNU General Public License
11 */
hpdl
366
12 ?>
hpdl
1
13
hpdl
366
14 <div class="mainBlock">
frank
1261
15   <div class="stepsBox">
16     <ul style="list-style-type: none; padding-left: 10px; margin: 0px;">
17       <li style="font-weight: bold;"><?php echo $osC_Language->get('title_language'); ?></li>
18 <?php
19   foreach ($osC_Language->_languages as $available_language) {
20 ?>
21       <li><?php echo '<a href="index.php?language=' . $available_language['code'] . '">' . $available_language['name'] . '</a>'; ?></li>
22 <?php      
23   }
24 ?>
25     </ul>
hpdl
468
26   </div>
27
frank
1261
28   <div style="margin-right: 110px;">
29     <h1><?php echo $osC_Language->get('page_title_welcome'); ?></h1>
hpdl
366
30
frank
1261
31     <p><?php echo $osC_Language->get('text_welcome'); ?></p>
32   </div>
hpdl
366
33 </div>
34
35 <div class="contentBlock">
36   <div class="infoPane">
37     <h3><?php echo $osC_Language->get('box_server_title'); ?></h3>
38
39     <div class="infoPaneContents">
40       <table border="0" width="100%" cellspacing="0" cellpadding="2">
41         <tr>
42           <td><b><?php echo $osC_Language->get('box_server_php_version'); ?></b></td>
43           <td align="right"><?php echo phpversion(); ?></td>
44           <td align="right" width="25"><img src="images/<?php echo ((phpversion() >= 4.1) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
45         </tr>
46       </table>
47
48       <br />
49
50       <table border="0" width="100%" cellspacing="0" cellpadding="2">
51         <tr>
52           <td><b><?php echo $osC_Language->get('box_server_php_settings'); ?></td>
53           <td align="right"></td>
54           <td align="right" width="25"></td>
55         </tr>
56         <tr>
57           <td><?php echo $osC_Language->get('box_server_register_globals'); ?></td>
58           <td align="right"><?php echo (((int)ini_get('register_globals') === 0) ? $osC_Language->get('box_server_off') : $osC_Language->get('box_server_on')); ?></td>
59           <td align="right"><img src="images/<?php echo (((int)ini_get('register_globals') === 0) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
60         </tr>
61         <tr>
62           <td><?php echo $osC_Language->get('box_server_magic_quotes'); ?></td>
63           <td align="right"><?php echo (((int)ini_get('magic_quotes') === 0) ? $osC_Language->get('box_server_off') : $osC_Language->get('box_server_on')); ?></td>
64           <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>
65         </tr>
66         <tr>
67           <td><?php echo $osC_Language->get('box_server_file_uploads'); ?></td>
68           <td align="right"><?php echo (((int)ini_get('file_uploads') === 0) ? $osC_Language->get('box_server_off') : $osC_Language->get('box_server_on')); ?></td>
69           <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>
70         </tr>
71         <tr>
72           <td><?php echo $osC_Language->get('box_server_session_auto_start'); ?></td>
73           <td align="right"><?php echo (((int)ini_get('session.auto_start') === 0) ? $osC_Language->get('box_server_off') : $osC_Language->get('box_server_on')); ?></td>
74           <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>
75         </tr>
76         <tr>
77           <td><?php echo $osC_Language->get('box_server_session_use_trans_sid'); ?></td>
78           <td align="right"><?php echo (((int)ini_get('session.use_trans_sid') === 0) ? $osC_Language->get('box_server_off') : $osC_Language->get('box_server_on')); ?></td>
79           <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>
80         </tr>
81       </table>
82
83       <br />
84
85       <table border="0" width="100%" cellspacing="0" cellpadding="2">
86         <tr>
87           <td><b><?php echo $osC_Language->get('box_server_php_extensions'); ?></b></td>
88           <td align="right" width="25"></td>
89         </tr>
90         <tr>
91           <td><?php echo $osC_Language->get('box_server_mysql'); ?></td>
92           <td align="right"><img src="images/<?php echo (extension_loaded('mysql') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
93         </tr>
94         <tr>
95           <td><?php echo $osC_Language->get('box_server_gd'); ?></td>
96           <td align="right"><img src="images/<?php echo (extension_loaded('gd') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
97         </tr>
98         <tr>
99           <td><?php echo $osC_Language->get('box_server_curl'); ?></td>
100           <td align="right"><img src="images/<?php echo (extension_loaded('curl') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
101         </tr>
102         <tr>
103           <td><?php echo $osC_Language->get('box_server_openssl'); ?></td>
104           <td align="right"><img src="images/<?php echo (extension_loaded('openssl') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
105         </tr>
106       </table>
107     </div>
108   </div>
109
110   <div class="contentPane">
111     <h2><?php echo $osC_Language->get('page_heading_installation_type'); ?></h2>
112
113 <?php
hpdl
758
114   if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) {
115     @chmod(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php', 0777);
hpdl
366
116   }
117
hpdl
758
118   if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) {
hpdl
1
119 ?>
120
hpdl
366
121     <div class="noticeBox">
hpdl
758
122       <?php echo sprintf($osC_Language->get('error_configuration_file_not_writeable'), osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php'); ?>
hpdl
1
123
hpdl
366
124       <?php echo $osC_Language->get('error_configuration_file_alternate_method'); ?>
125     </div>
hpdl
1
126
hpdl
366
127     <br />
hpdl
1
128
hpdl
366
129 <?php
130   }
131 ?>
hpdl
1
132
hpdl
366
133     <p><?php echo $osC_Language->get('text_installation_type'); ?></p>
134
135     <table border="0" width="99%" cellspacing="0" cellpadding="0">
136       <tr>
hpdl
924
137         <td width="50%" align="center"><?php echo '<a href="install.php"><img src="templates/' . $template . '/languages/' . $osC_Language->getCode() . '/images/install.gif" border="0" alt="' . $osC_Language->get('image_button_install') . '" /></a>'; ?></td>
hpdl
366
138
139 <!--
hpdl
924
140         <td width="50%" align="center"><?php echo '<a href="upgrade.php"><img src="templates/' . $template . '/languages/' . $osC_Language->getCode() . '/images/upgrade.gif" border="0" alt="' . $osC_Language->get('image_button_upgrade') . '" /></a>'; ?></td>
hpdl
366
141 //-->
142
143       </tr>
144     </table>
145   </div>
146 </div>