Quick Search:

View

Revision:

Diff

Diff from 1261 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 1261 2007-02-25 22:33:56Z 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     if ($available_language['exist']) {
21 ?>
22       <li><?php echo '<a href="index.php?language=' . $available_language['code'] . '">' . $available_language['name'] . '</a>'; ?></li>
23 <?php      
24     }
25   }
26 ?>
27     </ul>
hpdl
468
28   </div>
29
frank
1261
30   <div style="margin-right: 110px;">
31     <h1><?php echo $osC_Language->get('page_title_welcome'); ?></h1>
hpdl
366
32
frank
1261
33     <p><?php echo $osC_Language->get('text_welcome'); ?></p>
34   </div>
hpdl
366
35 </div>
36
37 <div class="contentBlock">
38   <div class="infoPane">
39     <h3><?php echo $osC_Language->get('box_server_title'); ?></h3>
40
41     <div class="infoPaneContents">
42       <table border="0" width="100%" cellspacing="0" cellpadding="2">
43         <tr>
44           <td><b><?php echo $osC_Language->get('box_server_php_version'); ?></b></td>
45           <td align="right"><?php echo phpversion(); ?></td>
46           <td align="right" width="25"><img src="images/<?php echo ((phpversion() >= 4.1) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
47         </tr>
48       </table>
49
50       <br />
51
52       <table border="0" width="100%" cellspacing="0" cellpadding="2">
53         <tr>
54           <td><b><?php echo $osC_Language->get('box_server_php_settings'); ?></td>
55           <td align="right"></td>
56           <td align="right" width="25"></td>
57         </tr>
58         <tr>
59           <td><?php echo $osC_Language->get('box_server_register_globals'); ?></td>
60           <td align="right"><?php echo (((int)ini_get('register_globals') === 0) ? $osC_Language->get('box_server_off') : $osC_Language->get('box_server_on')); ?></td>
61           <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>
62         </tr>
63         <tr>
64           <td><?php echo $osC_Language->get('box_server_magic_quotes'); ?></td>
65           <td align="right"><?php echo (((int)ini_get('magic_quotes') === 0) ? $osC_Language->get('box_server_off') : $osC_Language->get('box_server_on')); ?></td>
66           <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>
67         </tr>
68         <tr>
69           <td><?php echo $osC_Language->get('box_server_file_uploads'); ?></td>
70           <td align="right"><?php echo (((int)ini_get('file_uploads') === 0) ? $osC_Language->get('box_server_off') : $osC_Language->get('box_server_on')); ?></td>
71           <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>
72         </tr>
73         <tr>
74           <td><?php echo $osC_Language->get('box_server_session_auto_start'); ?></td>
75           <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>
76           <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>
77         </tr>
78         <tr>
79           <td><?php echo $osC_Language->get('box_server_session_use_trans_sid'); ?></td>
80           <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>
81           <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>
82         </tr>
83       </table>
84
85       <br />
86
87       <table border="0" width="100%" cellspacing="0" cellpadding="2">
88         <tr>
89           <td><b><?php echo $osC_Language->get('box_server_php_extensions'); ?></b></td>
90           <td align="right" width="25"></td>
91         </tr>
92         <tr>
93           <td><?php echo $osC_Language->get('box_server_mysql'); ?></td>
94           <td align="right"><img src="images/<?php echo (extension_loaded('mysql') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
95         </tr>
96         <tr>
97           <td><?php echo $osC_Language->get('box_server_gd'); ?></td>
98           <td align="right"><img src="images/<?php echo (extension_loaded('gd') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
99         </tr>
100         <tr>
101           <td><?php echo $osC_Language->get('box_server_curl'); ?></td>
102           <td align="right"><img src="images/<?php echo (extension_loaded('curl') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
103         </tr>
104         <tr>
105           <td><?php echo $osC_Language->get('box_server_openssl'); ?></td>
106           <td align="right"><img src="images/<?php echo (extension_loaded('openssl') ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
107         </tr>
108       </table>
109     </div>
110   </div>
111
112   <div class="contentPane">
113     <h2><?php echo $osC_Language->get('page_heading_installation_type'); ?></h2>
114
115 <?php
hpdl
758
116   if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) {
117     @chmod(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php', 0777);
hpdl
366
118   }
119
hpdl
758
120   if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) {
hpdl
1
121 ?>
122
hpdl
366
123     <div class="noticeBox">
hpdl
758
124       <?php echo sprintf($osC_Language->get('error_configuration_file_not_writeable'), osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php'); ?>
hpdl
1
125
hpdl
366
126       <?php echo $osC_Language->get('error_configuration_file_alternate_method'); ?>
127     </div>
hpdl
1
128
hpdl
366
129     <br />
hpdl
1
130
hpdl
366
131 <?php
132   }
133 ?>
hpdl
1
134
hpdl
366
135     <p><?php echo $osC_Language->get('text_installation_type'); ?></p>
136
137     <table border="0" width="99%" cellspacing="0" cellpadding="0">
138       <tr>
hpdl
924
139         <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
140
141 <!--
hpdl
924
142         <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
143 //-->
144
145       </tr>
146     </table>
147   </div>
148 </div>