. */ if (isset($_GET['phpinfo'])) { echo phpinfo(); exit; } $version = '@CMSIMPLE_XH_VERSION@'; $title = "$version – Requirements Check"; $checks = array(); $checks['the Webserver is supported'] = preg_match('/apache|nginx|iis|litespeed/i', $_SERVER['SERVER_SOFTWARE']) ? 'okay' : 'warn'; $checks['the PHP Version is at least 5.3.7'] = version_compare(PHP_VERSION, '5.3.7', '>=') ? 'okay' : 'fail'; foreach (array('json', 'mbstring', 'session') as $ext) { $checks['the PHP extension "' . $ext . '" is installed'] = extension_loaded($ext) ? 'okay' : 'fail'; } $checks['magic_quotes_runtime is off'] = (version_compare(PHP_VERSION, '5.4', '>=') || !get_magic_quotes_runtime()) ? 'okay' : 'warn'; $checks['safe_mode is off'] = !ini_get('safe_mode') ? 'okay' : 'warn'; $checks['session.use_trans_sid is off'] = !ini_get('session.use_trans_sid') ? 'okay' : 'warn'; $checks['session.use_only_cookies is off'] = ini_get('session.use_only_cookies') ? 'okay' : 'warn'; $checks['session.cookie_lifetime is zero'] = ini_get('session.cookie_lifetime') == 0 ? 'okay' : 'warn'; $checks['the function fsockopen is available'] = function_exists('fsockopen') ? 'okay' : 'warn'; $fail = $warn = false; foreach ($checks as $state) { switch ($state) { case 'fail': $fail = true; break; case 'warn': $warn = true; break; } } ?> <?php echo $title?>

Sorry, there appear to be serious issues!
Most likely will not run on this server with the current PHP configuration!

Hmm, there appear to be minor issues!
may not run smoothly on this server with the current PHP configuration!

All is well!
is supposed to run smoothly on this server!

Details

$state):?>
Checking that

See PHP Info [new window]