<?

///////////////////////////////////////
//
// Hand built in VIM by Void Main
//
///////////////////////////////////////

if (isset($_GET['show'])) {show_source(ereg_replace("(^.+/|/)"""$_SERVER['PHP_SELF'])); exit;}

function 
box_top() {
?>

<!-- Begin Top of Box -->
                                                                                
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="15" height="15" class="tl"><img src="/i/box/15x15.gif" width="15" height="15" alt="none"></td>
    <td height="15" class="t"><img src="/i/box/15x15.gif" width="15" height="15" alt="none"></td>
    <td width="15" height="15" class="tr"><img src="/i/box/15x15.gif" width="15" height="15" alt="none"></td>
  </tr>
  <tr>
   <td width="15" class="l"><img src="/i/box/15x15.gif" width="15" height="15" alt="none"></td>
   <td>
                                                                                
<!-- End Top of Box -->

<?
}

function 
box_bottom() {
?>

<!-- Begin Bottom of Box -->
                                                                                
   </td>
   <td width="15" class="r"><img src="/i/box/15x15.gif" width="15" height="15" alt="none"></td>
  </tr>
  <tr>
    <td width="15" height="15" class="bl"><img src="/i/box/15x15.gif" width="15" height="15" alt="none"></td>
    <td height="15" class="b"><img src="/i/box/15x15.gif" width="15" height="15" alt="none"></td>
    <td width="15" height="15" class="br"><img src="/i/box/15x15.gif" width="15" height="15" alt="none"></td>
  </tr>
</table>
                                                                                
<!-- End Bottom of Box -->

<?
}

function 
box($text,$width) {

  
box_top();

?>
    <table bgcolor=0b0b0b border=0 cellpadding=20 cellspacing=0 width=<?=$width?>>
     <tr>
      <td align=center>
       <b><?=$text?></b>
      </td>
     </tr>
    </table>


<?
  box_bottom
();

}

function 
w3_tag() {
?>
<p>
&nbsp;&nbsp;&nbsp;<a href="http://validator.w3.org/check/referer"><img border="0" src="http://www.w3.org/Icons/valid-html401.gif" alt="Valid HTML 4.01!" height="31" width="88"></a><a href="http://jigsaw.w3.org/css-validator/"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a>
</p>
<?
}

function 
browser_tag($ua) {

  if (
preg_match("/compatible; MSIE/i","$ua") && ! preg_match("/Opera/","$ua")) {
    if (
preg_match("/Windows/i","$ua")) {
      
$brstr .= "Your browser and your OS suck!<br>$ua\n";
    } else {
      
$brstr .= "Your browser sucks:<br>$ua\n";
    }
  } else {
    if (
preg_match("/Windows/i","$ua")) {
      
$brstr .= "Your browser is OK but your OS sucks:<br>$ua\n";
    } else {
      
$brstr .= "Your browser and your OS are OK:<br>$ua\n";
    }
  }

  if (
getenv(REMOTE_ADDR)) {
     
$ipaddress getenv(REMOTE_ADDR);
     
$addrstr $ipaddress;
  }
  if (
getenv(HTTP_X_FORWARDED_FOR)) {
     
$internaladdress getenv(HTTP_X_FORWARDED_FOR);
     
$addrstr .= " [" $internaladdress "]";
  }

  
$brstr .= "<br>Your IP: " $addrstr;

  echo 
"<p><font color=\"44FF44\" size=\"-1\">$brstr</font></p>\n";

}

function 
void_mains($text$width) {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Void Main's <?=$text?></title>
<meta name="Keywords" content="void, main, linux, forums, voidmain, beautiful, site, support">
<meta name="Abstract" content="Void Main's Beautiful Site and Linux forums">
<meta name="Description" content="Void Main's Beautiful Site and Linux forums">
<link rel="stylesheet"    href="/css/box.css"    type="text/css">
</head>
<body bgcolor="Black" text="White" link="Red" alink="Red" vlink="Red">
<center>
<?

  box_top
();

?>

    <table bgcolor=0b0b0b border=0 cellpadding=20 cellspacing=0 width=<?=$width?>>
     <tr>
      <td align=center>
       <h2><font color=blue>/*</font> <font color=red>V</font><font color=44FF44>o</font><font color=cyan>i</font><font color=yellow>d</font><font color=blue> M</font><font color=red>a</font><font color=44FF44>i</font><font color=cyan>n</font>'s <?=$text?> <font color=blue>*/</font></h2>
      </td>
     </tr>
    </table>

<?

  box_bottom
();

}

function 
finish($file) {
?>
<p>
<a href="<?=$file "?show=yes"?>">View Source</a><br>
<a href="/s/functions.php?show=yes">View Functions Source</a>
</p>
                                                                                
<? w3_tag(); ?>

</center>
</body>
</html>
<?
}
?>