#is", "", $phpinfo); $phpinfo = str_replace("font","span",$phpinfo); $phpinfo = str_replace("","",$phpinfo); $phpinfo = str_replace('border="0"','',$phpinfo); //$phpinfo = str_replace(']*>/i', '
', $phpinfo); $mes = e107::getMessage(); $security_risks = array( "allow_url_fopen" => 'If you have Curl enabled, you should consider disabling this feature.', "allow_url_include" => 'This is a security risk and is not needed by e107.', "display_errors" => 'On a production server, it is better to disable the displaying of errors in the browser.', "expose_php" => 'Disabling this will hide your PHP version from browsers.', "register_globals" => 'This is a security risk and should be disabled.' ); foreach($security_risks as $risk=>$diz) { if(ini_get($risk)) { $srch = '
'.$risk.''; $repl = '
'.$risk.''; $phpinfo = str_replace($srch,$repl,$phpinfo); $mes->addWarning("".$risk.": ".$diz); } } if($sessionSavePath = ini_get('session.save_path')) { if(!is_writable($sessionSavePath)) { $mes->addError("session.save_path is not writable! That can cause major issues with your site."); } } // $phpinfo = preg_replace("#^.*#is", "", $phpinfo); ob_end_clean(); if(deftrue('e_DEBUG')) { $mes->addDebug("Session ID: ".session_id()); } $ns->tablerender("PHPInfo", $mes->render(). $phpinfo); require_once("footer.php"); ?>