<?php
if(!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE != 'true') exit();
if(!$modx->hasPermission('logs')) exit;
?>

<style type="text/css">
    body {padding:20px;}
    pre {margin: 0px; font-family: monospace;}
    a:link {color: #000099; text-decoration: none; background-color: #f7f7f7;}
    a:hover {text-decoration: underline;}
    table {margin-top:20px;border-collapse: collapse;background-color:#ffffff;}
    .center {text-align: center;}
    .center table { margin-left: auto; margin-right: auto; text-align: left;}
    .center th { text-align: center !important; }
    td, th { border: 1px solid #999999; vertical-align: baseline;padding:4px;}
    h1 {text-align:left;margin:10px auto;}
    h2 {text-align:left;margin:10px auto;}
    .p {text-align: left;}
    .e {width:150px;background-color: #eeeeee; color: #333333;}
    .h {background-color: #bcbcd6; font-weight: bold; color: #333333;}
    .h h1 {width:90%;font-size:20px;}
    .v {width:400px;color: #333333;}
    .vr {background-color: #cccccc; text-align: right; color: #333333;}
    img {float: right; border: 0px;}
    hr {background-color: #cccccc; border: 0px; height: 1px; color: #333333;}
</style>

<div id="actions">
  <ul class="actionButtons">
      <li id="Button5"><a href="#" onclick="documentDirty=false;document.location.href='index.php?a=53';"><img alt="icons_cancel" src="<?php echo $_style["icons_cancel"] ?>" /> <?php echo $_lang['cancel']?></a></li>
  </ul>
</div>

<?php
ob_start();
phpinfo();
$pinfo = ob_get_contents();
ob_end_clean();
$pinfo = preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $pinfo);
$pinfo = str_replace('<div class="center">', '<div>', $pinfo);
$pinfo = str_replace('width="600"', 'width="90%"', $pinfo);
$pinfo = str_replace('src,input', 'src, input', $pinfo);
echo $pinfo;
?>