2011-10-29 05:40:07 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/************************************************************************************
|
|
|
|
************************************************************************************
|
|
|
|
** **
|
|
|
|
** If you can read this text in your browser then you don't have PHP installed. **
|
2012-03-31 09:09:45 +02:00
|
|
|
** Please install PHP 5.3 or higher. **
|
2011-10-29 05:40:07 +02:00
|
|
|
** **
|
|
|
|
************************************************************************************
|
|
|
|
************************************************************************************/
|
|
|
|
|
|
|
|
/**
|
2012-03-31 09:09:45 +02:00
|
|
|
* PHP version check. Make sure we've got at least PHP 5.3 in the most friendly way possible
|
2011-10-29 05:40:07 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
$majorVersion = strtok(phpversion(),'.');
|
|
|
|
$minorVersion = strtok('.');
|
|
|
|
|
2012-03-31 09:09:45 +02:00
|
|
|
if($majorVersion < 5 || ($majorVersion == 5 && $minorVersion < 3)) {
|
2011-10-29 05:40:07 +02:00
|
|
|
header("HTTP/1.1 500 Server Error");
|
|
|
|
echo str_replace('$PHPVersion', phpversion(), file_get_contents("sapphire/dev/install/php5-required.html"));
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
2012-03-31 09:09:45 +02:00
|
|
|
include('sapphire/dev/install/install.php5');
|