-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathview_php.php
executable file
·30 lines (29 loc) · 1.26 KB
/
view_php.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/*
"View" to show PHP software information
Part of Liquidsoap requester by Quinn Ebert
<http://www.quinnebert.net>
*/
if (isset($_SERVER) && is_array($_SERVER)) {
?>
<tr><td colspan="2" valign="top" align="center">
<h3>Web Server Information:</h3>
<table width="75%" border="4" cellspacing="1" cellpadding="4"><?php
foreach ($_SERVER as $key => $val) {
// weed out some stuff that looks crappy...
if (is_array($val) || (stl($key) == $key)) continue;
// handle some stuff from Apache $_SERVER's that breaks HTML/4.01
$val = str_replace('</address>','',$val);
$val = str_replace('</ADDRESS>','',$val);
$val = str_replace('<address>','',$val);
$val = str_replace('<ADDRESS>','',$val);
?>
<tr>
<td width="15%" valign="middle" align="center"><b><?php echo($key); ?></b></td>
<td width="85%" valign="middle" align="center"><font face="Lucida Console, Courier New, Courier, Monaco"><?php echo($val); ?></font></td>
</tr><?php } ?>
</table>
<h3> </h3>
</td></tr>
<?php
}