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. **
|
2015-10-22 11:10:19 +02:00
|
|
|
** Please install PHP 5.5.0 or higher. **
|
2011-10-29 05:40:07 +02:00
|
|
|
** **
|
|
|
|
************************************************************************************
|
|
|
|
************************************************************************************/
|
|
|
|
|
|
|
|
/**
|
2015-10-22 11:10:19 +02:00
|
|
|
* PHP version check. Make sure we've got at least PHP 5.5.0 in the most friendly way possible
|
2011-10-29 05:40:07 +02:00
|
|
|
*/
|
2012-03-24 04:38:57 +01:00
|
|
|
define('FRAMEWORK_NAME', 'framework');
|
2011-10-29 05:40:07 +02:00
|
|
|
|
2015-10-22 11:10:19 +02:00
|
|
|
if (version_compare(phpversion(), '5.5.0', '<')) {
|
2016-11-29 00:31:16 +01:00
|
|
|
header($_SERVER['SERVER_PROTOCOL'] . " 500 Server Error");
|
|
|
|
echo str_replace(
|
|
|
|
array('$PHPVersion', 'sapphire'),
|
|
|
|
array(phpversion(), FRAMEWORK_NAME),
|
|
|
|
file_get_contents(__DIR__ . "/php5-required.html")
|
|
|
|
);
|
|
|
|
die();
|
2011-10-29 05:40:07 +02:00
|
|
|
}
|
|
|
|
|
2016-11-01 04:13:06 +01:00
|
|
|
include(__DIR__ . '/install.php5');
|