<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Server Environment Variables</title>
<style type="text/css">
<!--
html,body {
   margin: 0; padding: 0;
   font-family: arial, sans-serif;
   color: #000;
   background-color: #ADD8E6;
   height: 100%;
}
a { color: grey; }
a:hover { text-decoration: none; }
.envtable { padding: .25em; background-color: grey; }
.keycol {
   text-align: right;
   padding: .1em;
   padding-right: .5em;
   border-right: .25em solid grey;
}
.valcol {
   text-align: left;
   padding: .1em;
   padding-left: .5em;
}
.even { background-color: #fff; }
.odd  { background-color: #f0f8ff; }
.hilite  { background-color: grey; color: white; }
-->
</style>
</head>
<body>

<table width="100%" border="0" cellpadding="0" cellspacing="0" style="height: 100%"><tr valign="middle"><td align="center">
<table border="0" cellpadding="0" cellspacing="0" class="envtable">
<?php
$i
=0;
ksort($_SERVER);
foreach (
$_SERVER as $key => $val) {
   if (
is_array($val)) { $val=implode(',',$val); }
   
$evenodd = (($i++%2)?'even':'odd');
   echo 
'<tr class="' $evenodd '" ' .
      
'onmouseover="this.className=\'hilite\';"' .
      
'onmouseout="this.className=\'' $evenodd '\'">';
   
printf("<td class=\"keycol\">%s</td><td class=\"valcol\">%s</td>\n"$keyhtmlspecialchars($val));
   echo 
'</tr>';
}
?>
</table>
<?php if(file_exists($_SERVER['SCRIPT_FILENAME'].'s')){echo '<a href="' $_SERVER['PHP_SELF'] . 's">source</a>';} ?>
</td></tr></table>

</body>
</html>