mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-26 04:26:01 +02:00
The entire framework repo (with the exception of system-generated files) has been amended to respect the 120c line-length limit. This is in preparation for the enforcement of this rule with PHP_CodeSniffer.
27 lines
1.1 KiB
PHP
27 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.3.2 or higher, preferably PHP 5.3.4+. **
|
|
** **
|
|
************************************************************************************
|
|
************************************************************************************/
|
|
|
|
/**
|
|
* PHP version check. Make sure we've got at least PHP 5.3.2 in the most friendly way possible
|
|
*/
|
|
define('FRAMEWORK_NAME', 'framework');
|
|
|
|
if (version_compare(phpversion(), '5.3.2', '<')) {
|
|
header("HTTP/1.1 500 Server Error");
|
|
echo str_replace(
|
|
array('$PHPVersion', 'sapphire'),
|
|
array(phpversion(), FRAMEWORK_NAME),
|
|
file_get_contents(FRAMEWORK_NAME . "/dev/install/php5-required.html"));
|
|
die();
|
|
}
|
|
|
|
include(FRAMEWORK_NAME . '/dev/install/install.php5');
|