Upgrade to KH 3.3.0
This commit is contained in:
@@ -1,4 +1,20 @@
|
||||
<?php defined('SYSPATH') or exit('Install tests must be loaded from within index.php!'); ?>
|
||||
<?php
|
||||
|
||||
// Sanity check, install should only be checked from index.php
|
||||
defined('SYSPATH') or exit('Install tests must be loaded from within index.php!');
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.3', '<'))
|
||||
{
|
||||
// Clear out the cache to prevent errors. This typically happens on Windows/FastCGI.
|
||||
clearstatcache();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Clearing the realpath() cache is only possible PHP 5.3+
|
||||
clearstatcache(TRUE);
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
@@ -41,15 +57,15 @@
|
||||
<table cellspacing="0">
|
||||
<tr>
|
||||
<th>PHP Version</th>
|
||||
<?php if (version_compare(PHP_VERSION, '5.2.3', '>=')): ?>
|
||||
<?php if (version_compare(PHP_VERSION, '5.3.3', '>=')): ?>
|
||||
<td class="pass"><?php echo PHP_VERSION ?></td>
|
||||
<?php else: $failed = TRUE ?>
|
||||
<td class="fail">Kohana requires PHP 5.2.3 or newer, this version is <?php echo PHP_VERSION ?>.</td>
|
||||
<td class="fail">Kohana requires PHP 5.3.3 or newer, this version is <?php echo PHP_VERSION ?>.</td>
|
||||
<?php endif ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>System Directory</th>
|
||||
<?php if (is_dir(SYSPATH) AND is_file(SYSPATH.'classes/kohana'.EXT)): ?>
|
||||
<?php if (is_dir(SYSPATH) AND is_file(SYSPATH.'classes/Kohana'.EXT)): ?>
|
||||
<td class="pass"><?php echo SYSPATH ?></td>
|
||||
<?php else: $failed = TRUE ?>
|
||||
<td class="fail">The configured <code>system</code> directory does not exist or does not contain required files.</td>
|
||||
|
Reference in New Issue
Block a user