summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/admin/ueber.phtml62
1 files changed, 37 insertions, 25 deletions
diff --git a/views/admin/ueber.phtml b/views/admin/ueber.phtml
index 020141e..be7d8f7 100644
--- a/views/admin/ueber.phtml
+++ b/views/admin/ueber.phtml
@@ -139,31 +139,43 @@
<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'phpinfo') { ?>
<?php echo wpsg_drawForm_AdminboxStart(__('PHP-Info', 'wpsg')); ?>
- <div id="phpinfo" class="form-horizontal" style="max-width:100% !important; height:500px !important; ">
-
- <?php
- //echo phpinfo();
- ob_start();
- phpinfo();
- $pinfo = ob_get_contents();
- ob_end_clean();
-
- //$pinfo = preg_replace ( '%^.*<body>(.*)</body>.*$%ms', '$1', $pinfo );
- //echo $pinfo;
-
- $pinfo = htmlentities($pinfo);
- //$pinfo = htmlspecialchars($pinfo, ENT_HTML5, 'ISO-8859-1');
-
- echo '<iframe id="pinfo" style="width:100%; height:100% !important;" sandbox seamless srcdoc="'.$pinfo.'"></iframe>';
-
- //$pinfo = preg_replace("/(width):\".*?\"/", "\${1}=\"100%\"", $pinfo);
- //$pinfo = preg_replace('/(width)(:)"([\d]+)"/', '${1}${2}"100%"', $pinfo);
- //$pinfo = str_replace('width: 934px;', 'width:100%;', $pinfo);
-
- ?>
- <script>
- pinfo2 = document.getElementById("pinfo").srcdoc
- </script>
+ <div id="phpinfo" class="form-horizontal">
+
+ <style>
+
+ #phpinfo {background-color: #fff; color: #222; font-family: sans-serif;}
+ #phpinfo pre {margin: 0; font-family: monospace;}
+ #phpinfo a:link {color: #009; text-decoration: none; background-color: #fff;}
+ #phpinfo a:hover {text-decoration: underline;}
+ #phpinfo table {border-collapse: collapse; border: 0; width:750px; box-shadow: 1px 2px 3px #ccc;}
+ #phpinfo .center {text-align: center;}
+ #phpinfo .center table {margin: 1em auto; text-align: left;}
+ #phpinfo .center th {text-align: center !important;}
+ #phpinfo td, #phpinfo th {border: 1px solid #666; font-size: 75%; vertical-align: baseline; padding: 4px 5px;}
+ #phpinfo h1 {font-size: 150%;}
+ #phpinfo h2 {font-size: 125%;}
+ #phpinfo .p {text-align: left;}
+ #phpinfo .e {background-color: #ccf; width: 300px; font-weight: bold;}
+ #phpinfo .h {background-color: #99c; font-weight: bold;}
+ #phpinfo .v {background-color: #ddd; max-width: 300px; overflow-x: auto; word-wrap: break-word;}
+ #phpinfo .v i {color: #999;}
+ #phpinfo img {float: right; border: 0;}
+ #phpinfo hr {width: 534px; background-color: #ccc; border: 0; height: 1px;}
+
+ </style>
+
+ <?php
+
+ ob_start();
+ phpinfo(); $pi = ob_get_contents();
+ ob_end_clean();
+
+ $pi = preg_replace('/<style(.*)<\/style>/is', '', $pi);
+
+ echo $pi;
+
+ ?>
+
</div>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
<?php } ?>