<style type="text/css"><!--
body {background-color: #ffffff; color: #000000;}
body, td, th, h1, h2 {font-family: sans-serif;}
pre {margin: 0px; font-family: monospace;}
table {border-collapse: collapse;}
.center {text-align: center;}
.center table { margin-left: auto; margin-right: auto; text-align: left;}
.center th { text-align: center; !important }
td, th { border: 0px solid #000000; font-size: 75%; vertical-align: baseline;}
.phpinfo { border: 1px solid #999999; font-size: 11px; }
.p {text-align: left;}
.e {background-color: #ccccff; font-weight: bold;}
.h {background-color: #9999cc; font-weight: bold;}
.v {background-color: #cccccc;}
i {color: #666666;}
img {float: right; border: 0px;}
//--></style>
<?php


$SPADE['template']->_tpl_vars['pgLayout'] = 'file:layouts/admin.tpl';


ob_start();
phpinfo();
$php_info = ob_get_contents();
ob_end_clean();

$php_info = preg_replace("/<!doctype.*?[>].*?<body.*?[>]/is", '', $php_info);
$php_info = preg_replace("/<\/body>.*/is", '', $php_info);
$php_info = preg_replace("/<(t[dh])/i", '<$1 class="phpinfo"', $php_info);

echo $php_info;
//echo '<pre>'.htmlspecialchars($php_info).'</pre>';
?>