Ok, as lame as it is, I can't find the original source for the following, however its interesting none-the-less. When I dig up the URL for where I got the PHP code from, I'll post it in a comment.
A random fortune or quote of the moment block is a nice addition to a page.
First, you will need to take whichever fortune text files you want to use and combine them into a single quotefile in /path/to/geeklog. These are usually in /usr/share/games/fortune/.
Add the following to system/lib-custom.php:
//*********************************************
function phpblock_randquote($infile = "/path/to/geeklog/quotefile", $delim = "\n%\n"

{
// error trapping!
if(!IsSet($infile))
{
die ("You didn't specify a parameter for $infile!"

;
}
// attempt to open $infile
if(!file_exists($infile))
{
die ("$infile was not found! check your paths!"

;
}
else
{
$fp = fopen($infile, "r"

or die ("Error opening file!"

;
}
// okay, let's get going.
$contents = fread($fp, filesize($infile));
$quote_arr = explode($delim,$contents);
fclose($fp);
// feed the Randomness Monster (tm)
srand((double)microtime()*1000000);
// generate random quote index
$quote_index = (rand(1, sizeof($quote_arr)) - 1);
// get quote at $quote_index and return it
$herequote = $quote_arr[$quote_index];
return $herequote;
}
//*********************************************
Now you'll need to create a PHP block that calls this function: phpblock_randquote. You don't need to specify variables in the block function itself, they are part of the function code in lib-custom.php.
Voila!