Subversion Repositories wpShopGermany4

Rev

Rev 7069 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7069 Rev 7662
Line 137... Line 137...
137
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
137
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
138
<?php } ?>
138
<?php } ?>
139
 
139
 
140
<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'phpinfo') { ?>
140
<?php if (isset($_REQUEST['subaction']) && $_REQUEST['subaction'] == 'phpinfo') { ?>
141
<?php echo wpsg_drawForm_AdminboxStart(__('PHP-Info', 'wpsg')); ?>
141
<?php echo wpsg_drawForm_AdminboxStart(__('PHP-Info', 'wpsg')); ?>
142
	<div id="phpinfo" class="form-horizontal" style="max-width:100% !important; height:500px !important; ">
142
	<div id="phpinfo" class="form-horizontal">
143
 
143
		
144
	<?php
144
		<style>
-
 
145
 
-
 
146
			#phpinfo {background-color: #fff; color: #222; font-family: sans-serif;}
-
 
147
			#phpinfo pre {margin: 0; font-family: monospace;}
-
 
148
			#phpinfo a:link {color: #009; text-decoration: none; background-color: #fff;}
-
 
149
			#phpinfo a:hover {text-decoration: underline;}
-
 
150
			#phpinfo table {border-collapse: collapse; border: 0; width:750px; box-shadow: 1px 2px 3px #ccc;}
-
 
151
			#phpinfo .center {text-align: center;}
-
 
152
			#phpinfo .center table {margin: 1em auto; text-align: left;}
-
 
153
			#phpinfo .center th {text-align: center !important;}
-
 
154
			#phpinfo td, #phpinfo th {border: 1px solid #666; font-size: 75%; vertical-align: baseline; padding: 4px 5px;}
-
 
155
			#phpinfo h1 {font-size: 150%;}
145
	//echo phpinfo();
156
			#phpinfo h2 {font-size: 125%;}
146
	ob_start();
157
			#phpinfo .p {text-align: left;}
-
 
158
			#phpinfo .e {background-color: #ccf; width: 300px; font-weight: bold;}
-
 
159
			#phpinfo .h {background-color: #99c; font-weight: bold;}
-
 
160
			#phpinfo .v {background-color: #ddd; max-width: 300px; overflow-x: auto; word-wrap: break-word;}
147
	phpinfo();
161
			#phpinfo .v i {color: #999;}
148
	$pinfo = ob_get_contents();
162
			#phpinfo img {float: right; border: 0;}
-
 
163
			#phpinfo hr {width: 534px; background-color: #ccc; border: 0; height: 1px;}
-
 
164
			
149
	ob_end_clean();
165
		</style>
150
 
166
		
151
	//$pinfo = preg_replace ( '%^.*<body>(.*)</body>.*$%ms', '$1', $pinfo );
-
 
152
	//echo $pinfo;
167
		<?php 
153
 
168
		
154
	$pinfo = htmlentities($pinfo);
169
			ob_start(); 	
155
	//$pinfo = htmlspecialchars($pinfo, ENT_HTML5, 'ISO-8859-1');
170
			phpinfo(); $pi = ob_get_contents();
-
 
171
			ob_end_clean();
156
	
172
			
157
	echo '<iframe id="pinfo" style="width:100%; height:100% !important;" sandbox seamless srcdoc="'.$pinfo.'"></iframe>';
173
			$pi = preg_replace('/<style(.*)<\/style>/is', '', $pi);
158
	
174
						
159
	//$pinfo = preg_replace("/(width):\".*?\"/", "\${1}=\"100%\"", $pinfo);
-
 
160
	//$pinfo = preg_replace('/(width)(:)"([\d]+)"/', '${1}${2}"100%"', $pinfo);
-
 
161
	//$pinfo = str_replace('width: 934px;', 'width:100%;', $pinfo);
175
			echo $pi;
162
 
176
			 			
163
	?>
177
		?>
164
	<script>
178
		
165
	pinfo2 = document.getElementById("pinfo").srcdoc
-
 
166
	</script>
-
 
167
	</div>
179
	</div>
168
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
180
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
169
<?php } ?>
181
<?php } ?>
170
 
182
 
171
 
183