mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
26 lines
1.1 KiB
PHP
26 lines
1.1 KiB
PHP
<?php
|
|
|
|
|
|
/************************************************************************************
|
|
************************************************************************************
|
|
** **
|
|
** If you can read this text in your browser then you don't have PHP installed. **
|
|
** Please install PHP 5.2 or higher, preferably PHP 5.3. **
|
|
** **
|
|
************************************************************************************
|
|
************************************************************************************/
|
|
|
|
/**
|
|
* PHP version check. Make sure we've got at least PHP 5.2 in the most friendly way possible
|
|
*/
|
|
|
|
$majorVersion = strtok(phpversion(),'.');
|
|
$minorVersion = strtok('.');
|
|
|
|
if($majorVersion < 5 || ($majorVersion == 5 && $minorVersion < 2)) {
|
|
header("HTTP/1.1 500 Server Error");
|
|
echo str_replace('$PHPVersion', phpversion(), file_get_contents("sapphire/dev/install/php5-required.html"));
|
|
die();
|
|
}
|
|
|
|
include('sapphire/dev/install/install.php5'); |