Quick Search:

View

Revision:

Diff

Diff from 1281 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 1281 2007-02-28 23:33:23Z 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
1281
15   <ul style="list-style-type: none; padding: 5px; margin: 0px; display: inline; float: right;">
16     <li style="font-weight: bold; display: inline;"><?php echo $osC_Language->get('title_language'); ?></li>
frank
1261
17 <?php
frank
1281
18   foreach ($osC_Language->getAll() as $available_language) {
frank
1261
19 ?>
frank
1281
20     <li style="display: inline;"><?php echo '<a href="index.php?language=' . $available_language['code'] . '"><img src="../includes/languages/' . $available_language['code'] . '/images/icon.gif" border="0" title="' . $available_language['name'] . '" /></a>'; ?></li>
frank
1261
21 <?php      
22   }
23 ?>
frank
1281
24   </ul>
hpdl
468
25
frank
1281
26   <h1><?php echo $osC_Language->get('page_title_welcome'); ?></h1>
hpdl
366
27
frank
1281
28   <p><?php echo $osC_Language->get('text_welcome'); ?></p>
hpdl
366
29 </div>
30
31 <div class="contentBlock">
32   <div class="infoPane">
33     <h3><?php echo $osC_Language->get('box_server_title'); ?></h3>
34
35     <div class="infoPaneContents">
36       <table border="0" width="100%" cellspacing="0" cellpadding="2">
37         <tr>
38           <td><b><?php echo $osC_Language->get('box_server_php_version'); ?></b></td>
39           <td align="right"><?php echo phpversion(); ?></td>
40           <td align="right" width="25"><img src="images/<?php echo ((phpversion() >= 4.1) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td>
41         </tr>
42       </table>
43
44       <br />
45
46       <table border="0" width="100%" cellspacing="0" cellpadding="2">
47         <tr>
48           <td><b><?php echo $osC_Language->get('box_server_php_settings'); ?></td>
49           <td align="right"></td>
50           <td align="right" width="25"></td>
51         </tr>
52         <tr>
53           <td><?php echo $osC_Language->get('box_server_register_globals'); ?></td>
54           <td align="right"><?php echo (((int)ini_get('register_globals') === 0) ? $osC_Language->get('box_server_off') : $osC_Language->get('box_server_on')); ?></td>
55           <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>
56         </tr>
57         <tr>
58           <td><?php echo $osC_Language->get('box_server_magic_quotes'); ?></td>
59           <td align="right"><?php echo (((int)ini_get('magic_quotes') === 0) ? $osC_Language->get('box_server_off') : $osC_Language->get('box_server_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><?php echo $osC_Language->get('box_server_file_uploads'); ?></td>
64           <td align="right"><?php echo (((int)ini_get('file_uploads') === 0) ? $osC_Language->get('box_server_off') : $osC_Language->get('box_server_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><?php echo $osC_Language->get('box_server_session_auto_start'); ?></td>
69           <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>
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><?php echo $osC_Language->get('box_server_session_use_trans_sid'); ?></td>
74           <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>
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 echo $osC_Language->get('box_server_php_extensions'); ?></b></td>
84           <td align="right" width="25"></td>
85         </tr>
86         <tr>
87           <td><?php echo $osC_Language->get('box_server_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><?php echo $osC_Language->get('box_server_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><?php echo $osC_Language->get('box_server_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><?php echo $osC_Language->get('box_server_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     </div>
104   </div>
105
106   <div class="contentPane">
107     <h2><?php echo $osC_Language->get('page_heading_installation_type'); ?></h2>
108
109 <?php
hpdl
758
110   if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) {
111     @chmod(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php', 0777);
hpdl
366
112   }
113
hpdl
758
114   if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) {
hpdl
1
115 ?>
116
hpdl
366
117     <div class="noticeBox">
hpdl
758
118       <?php echo sprintf($osC_Language->get('error_configuration_file_not_writeable'), osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php'); ?>
hpdl
1
119
hpdl
366
120       <?php echo $osC_Language->get('error_configuration_file_alternate_method'); ?>
121     </div>
hpdl
1
122
hpdl
366
123     <br />
hpdl
1
124
hpdl
366
125 <?php
126   }
127 ?>
hpdl
1
128
hpdl
366
129     <p><?php echo $osC_Language->get('text_installation_type'); ?></p>
130
131     <table border="0" width="99%" cellspacing="0" cellpadding="0">
132       <tr>
hpdl
924
133         <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
134
135 <!--
hpdl
924
136         <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
137 //-->
138
139       </tr>
140     </table>
141   </div>
142 </div>