<?
/*
   -------------------------------------------------------------------
   credit to Jeff Ballard <ballard@NOSPAMcs.wisc.edu> for the original
   bofh excuse server: http://www.cs.wisc.edu/~ballard/bofh/
   -------------------------------------------------------------------
*/

// $excusefile can either be a local file like this:
$excusefile    'excuses.txt';

// or you can use a url to make sure you're using the latest excuses file:
#$excusefile     = 'http://www.cs.wisc.edu/~ballard/bofh/excuses';

// netscape 4 breaks when style files disappear, plus we save an extra
// header if the stylesheet is included:
$stylefile     'style.inc';

function 
excuse($excusefile) {
    if (!
$excuses = @file($excusefile)) return "couldn't read excuse file
'$excusefile'"
;
    
mt_srand((double)microtime()*1000000);
    return 
$excuses[mt_rand(0count($excuses)-1)];
    }
?>
<html>

<head>
<meta name="author" content="peter lowe">
<meta name="description" content="bofh excuse server that doesn't require
mysql, perl or any other unnecessary crap.">
<meta name="keywords" content="bofh, bofh excuse server, bofh excuse
generator, excuse, excuses">

<title>
Bofh excuse server
</title>
<center>

<font size=" +3">
Bofh excuse server

<? @include $stylefile?>
</head>

<body>
<hr noshade>
</font>
<p>The cause of the problem is: <br>
</font>
<font size=" +2">
<?=excuse($excusefile)?>
</font>
<hr noshade>
<p>[ <a href="shellscript.php">bourne shell
version</a> | <a href=<?=$PHP_SELF?>>another excuse</a> | <a
href=bofh.phps>source</a> | <a href=excuses.txt>excuses.txt</a> | 
<a href="http://www.cs.wisc.edu/~ballard/bofh/">bofh excuse server
homepage</a> ]

</body>

</html>