mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 21:29:23 +02:00
806ffb934e
Unenjoyable cleanup of internal logic
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.5.0 or higher. **
|
|
** **
|
|
************************************************************************************
|
|
************************************************************************************/
|
|
|
|
/**
|
|
* PHP version check. Make sure we've got at least PHP 5.6.0 in the most friendly way possible
|
|
*/
|
|
if (version_compare(phpversion(), '5.6.0', '<')) {
|
|
header($_SERVER['SERVER_PROTOCOL'] . " 500 Server Error");
|
|
echo str_replace(
|
|
'$PHPVersion',
|
|
phpversion(),
|
|
file_get_contents(__DIR__ . "/php5-required.html")
|
|
);
|
|
die();
|
|
}
|
|
|
|
include(__DIR__ . '/install5.php');
|