Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/install/prerequisites.php
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Returns information about system requirements | * Returns information about system requirements | ||||
* | * | ||||
* @return array | * @return array | ||||
*/ | */ | ||||
function CheckSystemRequirements() | function CheckSystemRequirements() | ||||
{ | { | ||||
$ret = Array (); | $ret = Array (); | ||||
$ret['php_version'] = version_compare(PHP_VERSION, '5.3.2', '>='); | $ret['php_version'] = version_compare(PHP_VERSION, '5.3.9', '>='); | ||||
if ( function_exists('apache_get_modules') ) { | if ( function_exists('apache_get_modules') ) { | ||||
$mod_rewrite = in_array('mod_rewrite', apache_get_modules()); | $mod_rewrite = in_array('mod_rewrite', apache_get_modules()); | ||||
} | } | ||||
else { | else { | ||||
$mod_rewrite = getenv('HTTP_MOD_REWRITE') == 'On'; | $mod_rewrite = getenv('HTTP_MOD_REWRITE') == 'On'; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |