| */ $required = array('PHP 5.3.6+' => version_compare(PHP_VERSION, '5.3.6', '>='), 'PCRE and UTF-8 Support' => function_exists('preg_match') && @preg_match('/^.$/u', 'ñ') && @preg_match('/^\\pL$/u', 'ñ'), 'Multibyte Encoding' => extension_loaded('mbstring'), 'Mcrypt' => extension_loaded('mcrypt')); /* |-------------------------------------------------------------------------- | Recommended Bits |-------------------------------------------------------------------------- | | You don't *have* to have these things to run Statamic, but certain | features will be broken, like image resizing/manipulation, or your | URLs won't be able to hide the "index.php" in them if you're missing | Mod Rewrite. Also, Mod Rewrite is a tricky thing to detect if you're | running PHP as CGI. A fail doesn't necessarily mean it's missing. | */ $recommended = array('Mod Rewrite' => hasModRewrite('mod_rewrite'), 'Timezone Set' => ini_get('date.timezone') !== '', 'GD Library for image manipulation' => extension_loaded('gd') && function_exists('gd_info'), 'FileInfo Extension for image manipulation' => extension_loaded('fileinfo'), 'cURL' => function_exists('curl_version')); foreach ($required as $feature => $pass) { if ($pass === FALSE) { $is_ready = FALSE; } } ?> <!doctype html> <html> <head> <title>Statamic Server Check</title> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:300,400,700"> <style> /*! normalize.css v3.0.1 | MIT License | git.io/normalize */ html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0} body {
if ($mAlert == "error") { echo '<tr><td class="hc_item">' . $mTitle . '</td><td><span class="ERRmsg" >' . i18n_r('NOT_INSTALLED') . '</span></td><td><span class="label label-error">' . i18n_r('ERROR') . '</span></td></tr>'; $errorCnt++; } } } } if (!function_exists('chmod')) { echo '<tr><td>chmod</td><td>' . i18n_r('NOT_INSTALLED') . '</td><td><span class="label label-warn">' . i18n_r('ERROR') . '</span></td></tr>'; } else { echo '<tr><td>chmod</td><td>' . i18n_r('INSTALLED') . '</td><td><span class="label label-ok">' . i18n_r('OK') . '</span></td></tr>'; } if (server_is_apache()) { echo '<tr><td>Apache web server*</td><td>' . i18n_r('INSTALLED') . '</td><td><span class="label label-ok">' . i18n_r('OK') . '</span></td></tr>'; // check mod_rewrite $moderewritestatus = hasModRewrite(); if ($moderewritestatus === false) { echo '<tr><td>Apache Mod Rewrite</td><td><span class="WARNmsg" >' . i18n_r('NOT_INSTALLED') . '</span></td><td><span class="label label-warn">' . i18n_r('WARNING') . '</span></td></tr>'; } else { if ($moderewritestatus === true) { echo '<tr><td>Apache Mod Rewrite</td><td>' . i18n_r('INSTALLED') . '</td><td><span class="label label-ok">' . i18n_r('OK') . '</span></td></tr>'; } else { echo '<tr><td>Apache Mod Rewrite</td><td>' . i18n_r('NA') . '</td><td><span class="label label-info">' . i18n_r('NA') . '</span></td></tr>'; } } } else { if (!getDef('GSNOAPACHECHECK', true) || GSNOAPACHECHECK == false) { echo '<tr><td>Apache web server*</td><td><span class="ERRmsg" >' . i18n_r('NOT_INSTALLED') . '</span></td><td><span class="label label-error">' . i18n_r('ERROR') . '</span></td></tr>'; $errorCnt++; } }