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-04-13 03:12:48 +02:00
|
|
|
** Please install PHP 5.3.2 or higher, preferably PHP 5.3.10. **
|
2011-10-29 05:40:07 +02:00
|
|
|
** **
|
|
|
|
************************************************************************************
|
|
|
|
************************************************************************************/
|
|
|
|
|
|
|
|
/**
|
2012-04-13 03:12:48 +02:00
|
|
|
* PHP version check. Make sure we've got at least PHP 5.3.2 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
|
|
|
|
2012-04-13 03:12:48 +02:00
|
|
|
if (version_compare(phpversion(), '5.3.2', '<')) {
|
2011-10-29 05:40:07 +02:00
|
|
|
header("HTTP/1.1 500 Server Error");
|
2012-03-24 04:38:57 +01:00
|
|
|
echo str_replace(array('$PHPVersion', 'sapphire'), array(phpversion(), FRAMEWORK_NAME), file_get_contents(FRAMEWORK_NAME . "/dev/install/php5-required.html"));
|
2011-10-29 05:40:07 +02:00
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
2012-03-24 04:38:57 +01:00
|
|
|
include(FRAMEWORK_NAME . '/dev/install/install.php5');
|