" );
echo( "$quotearray[$i] \n" );
echo( "" );
}
/* page body functions */
function bodyopen()
{
echo( "
\n" );
echo( "
" );
echo( "
\n" );
navbar();
echo( "
\n" );
echo( "
\n" );
}
function bodyclose()
{
echo( "
\n" );
echo( "
\n" );
echo( "
\n" );
}
/* death and destruction functions */
function crap_out( $msg )
{
echo( "
Error, grasshopper disassemble
\n" );
echo( "
\n" );
echo( "Something has really screwed up. Some part of this web site most\n" );
echo( "likely, but it could be anything...think about it.\n" );
echo( "Well, anyways, here's the error message that was handed to me.\n" );
echo( "Maybe you can make some sense of it?
\n" );
echo( "\n" );
echo( "$msg\n" );
echo( "\n" );
bodyclose();
sitefooter();
exit;
}
/* MySQL functions */
function opendb( $from )
{
/* opens a persistent connection to mysql */
include( "/var/www/php_includes/mysql.inc" );
mysql_connect( "$mysql_server", "$mysql_username", "$mysql_password" )
or crap_out( "$from: cannot connect to database\n" );
mysql_select_db( "$mysql_database" )
or crap_out( "$from: cannot select database\n" );
}
?>