#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" => PHP_LAN_1, "allow_url_include" => PHP_LAN_2, "display_errors" => PHP_LAN_3, "expose_php" => PHP_LAN_4, "register_globals" => PHP_LAN_5 ); foreach($security_risks as $risk=>$diz) { if(ini_get($risk)) { $srch = '
'.$risk.''; $repl = '
'.$risk.''; $phpinfo = str_replace($srch,$repl,$phpinfo); $mes->addWarning("".$risk.": ".$diz); } } $sessionSaveMethod = ini_get('session.save_handler'); if($sessionSavePath = ini_get('session.save_path')) { if(!is_writable($sessionSavePath) && $sessionSaveMethod === 'files') { $mes->addError(e107::getParser()->toHTML(PHP_LAN_6, true)); } } // $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"); ?>