2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2010 */
6 /* Inclusive Design Institute */
8 /* This program is free software. You can redistribute it and/or */
9 /* modify it under the terms of the GNU General Public License */
10 /* as published by the Free Software Foundation. */
11 /************************************************************************/
13 define('TR_INCLUDE_PATH', 'include/');
14 error_reporting(E_ALL ^ E_NOTICE);
16 require('../include/constants.inc.php');
18 $new_version = VERSION;
20 header('Cache-Control: no-store, no-cache, must-revalidate');
21 header('Pragma: no-cache');
24 error_reporting(E_ALL);
27 $session_error = ob_get_contents();
29 error_reporting(E_ALL ^ E_NOTICE);
31 require(TR_INCLUDE_PATH.'header.inc.php');
32 $bad = '<img src="images/bad.gif" width="14" height="13" border="0" alt="Bad" title="Bad" />';
33 $good = '<img src="images/feedback.gif" width="16" height="13" border="0" alt="Good" title="Good" />';
38 <h3>Welcome to the AContent Installation</h3>
39 <p>This process will step you through your AContent installation or upgrade.</p>
40 <p>During this process be sure not to use your browser's <em>Refresh</em> or <em>Reload</em> feature as it may complicate the installation process.</p>
43 <p>Please review the requirements below before proceeding.</p>
44 <table class="data" style="width: 75%; max-width: 600px;">
47 <th scope="col">File Integrity</th>
48 <th scope="col">Detected</th>
49 <th scope="col">Status</th>
52 <td>Case Sensitivity</td>
53 <td><?php if (file_exists('../include/vitals.inc.php') && file_exists('../include/VITALS.inc.php')) {
54 echo 'Ignored</td><td align="center">';
56 } else if (file_exists('../include/vitals.inc.php')) {
57 echo 'Enforced</td><td align="center">';
60 echo 'Enforced</td><td align="center">';
68 <th scope="col">PHP Options</th>
69 <th scope="col">Detected</th>
70 <th scope="col">Status</th>
74 <td><?php echo phpversion(); ?></td>
75 <td align="center"><?php if (version_compare(phpversion(), '5.0.0', '>=')) {
83 <td><kbd>mysql</kbd></td>
84 <td><?php if (extension_loaded('mysql')) {
85 echo 'Enabled</td><td align="center">';
88 echo 'Disabled</td><td align="center">';
94 <td><kbd>safe_mode = Off</kbd></td>
95 <td><?php if (ini_get('safe_mode')) {
96 echo 'On</td><td align="center">';
100 echo 'Off</td><td align="center">';
105 <td><kbd>file_uploads = On</kbd></td>
106 <td><?php if (ini_get('file_uploads')) {
107 echo 'On</td><td align="center">';
110 echo 'Off</td><td align="center">';
116 <td><kbd>upload_max_filesize</kbd> >= 2 MB</td>
117 <td><?php echo $filesize = ini_get('upload_max_filesize'); ?></td>
118 <td align="center"><?php
119 $filesize_int = intval($filesize);
120 if ("$filesize_int" == $filesize) {
122 if ($filesize_int < 2 * 1024 * 1024) {
127 } else if (stristr($filesize, 'M') !== FALSE) {
128 // value is in MegaBytes
129 if ($filesize_int < 2) {
134 } else if (stristr($filesize, 'K') !== FALSE) {
135 // value is in KiloBytes
136 if ($filesize_int < 2 * 1024) {
141 } else if (stristr($filesize, 'G') !== FALSE) {
142 // value is in GigaBytes
150 <td><kbd>post_max_size</kbd> >= 8 MB</td>
151 <td><?php echo $filesize = ini_get('post_max_size'); ?></td>
152 <td align="center"><?php
153 $filesize_int = intval($filesize);
154 if ("$filesize_int" == $filesize) {
156 if ($filesize_int < 8 * 1024 * 1024) {
161 } else if (stristr($filesize, 'M') !== FALSE) {
162 // value is in MegaBytes
163 if ($filesize_int < 8) {
168 } else if (stristr($filesize, 'K') !== FALSE) {
169 // value is in KiloBytes
170 if ($filesize_int < 8 * 1024) {
175 } else if (stristr($filesize, 'G') !== FALSE) {
176 // value is in GigaBytes
184 <td><kbd>.</kbd> in <kbd>include_path</kbd></td>
186 $include_path = explode(PATH_SEPARATOR, ini_get('include_path'));
187 if (in_array('.', $include_path)) {
188 echo 'Enabled</td><td align="center">';
191 echo 'Disabled</td><td align="center">';
200 <th scope="col">MySQL Options</th>
201 <th scope="col">Detected</th>
202 <th scope="col">Status</th>
205 <td>MySQL 4.1.10+</td>
206 <td><?php if (defined('MYSQL_NUM')) {
207 $mysql_version = mysql_get_client_info();
208 echo 'Found Version '.$mysql_version.'</td><td align="center">';
211 echo 'Not Found</td><td align="center">';
220 <?php if ($no_good): ?>
221 <table cellspacing="0" class="tableborder" cellpadding="1" align="center" width="70%">
223 <td class="row1"><strong>Your server does not meet the minimum requirements!<br />
224 Please correct the above errors to continue.</strong></td>
227 <?php elseif ($not_as_good): ?>
228 <table cellspacing="0" class="tableborder" cellpadding="1" align="center" width="70%">
230 <td class="row1"><strong>AContent has indicated that the 'mbstring' library is missing from the PHP. <br />
231 We strongly encourage you to install the 'mbstring' library before continuing, however, if you choose not to install the library from PHP, a third party library within AContent will be used. <br/><br/>
232 For production systems, we strongly encourage you to install the PHP with <a href="http://ca.php.net/manual/en/ref.mbstring.php" target="php_site">mbstring</a> support. <br/><br/>
233 You may choose to by pass the mbstring check for the installation at your own risk by clicking <a href="javascript:void(0);" onclick="javascript:document.form.next.disabled=false;">continue</a>.</strong></td>
234 <td class="row1"></td>
237 <td align="right" class="row1" nowrap="nowrap"><strong>New Installation »</strong></td>
238 <td class="row1" width="150" align="center">
240 <form action="install.php" method="post" name="form">
241 <input type="hidden" name="new_version" value="<?php echo $new_version; ?>" />
242 <input type="submit" class="button" value=" Install " name="next" disabled="disabled" />
249 <table cellspacing="0" cellpadding="10" align="center" width="45%">
251 <td align="center"><b>Or</b></td>
254 <table cellspacing="0" class="tableborder" cellpadding="1" align="center" width="70%">
256 <td class="row1"><strong>Upgrading from previous AContent must have mbstring library installed.</strong></td>
257 <td class="row1"></td>
260 <td align="right" class="row1" nowrap="nowrap"><strong>Upgrade an Existing Installation »</strong></td>
261 <td class="row1" width="150" align="center">
262 <input type="button" class="button" value="Upgrade" name="next" disabled="disabled"/>
268 <table cellspacing="0" class="tableborder" cellpadding="1" align="center" width="70%">
270 <td align="right" class="row1" nowrap="nowrap"><strong>New Installation »</strong></td>
271 <td class="row1" width="150" align="center"><form action="install.php" method="post" name="form">
272 <input type="hidden" name="new_version" value="<?php echo $new_version; ?>" />
273 <input type="submit" class="button" value=" Install " name="next" />
278 <table cellspacing="0" cellpadding="10" align="center" width="45%">
280 <td align="center"><b>Or</b></td>
283 <table cellspacing="0" class="tableborder" cellpadding="1" align="center" width="70%">
285 <td align="right" class="row1" nowrap="nowrap"><strong>Upgrade an Existing Installation »</strong></td>
286 <td class="row1" width="150" align="center"><form action="upgrade.php" method="post" name="form">
287 <input type="hidden" name="new_version" value="<?php echo $new_version; ?>" />
288 <input type="submit" class="button" value="Upgrade" name="next" />
294 <?php require(TR_INCLUDE_PATH.'footer.inc.php'); ?>