Skip to content

Instantly share code, notes, and snippets.

Created January 23, 2012 14:30
What would you like to do?
Awesome error function
function errorpage($message, $cuscon = false, $goBack = true, $exit = true) {
if (!$cuscon) {
echo "
<table width=\"100%\">
<table width=\"100%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
<td align=\"center\">
<img src=\"linghead.jpg\" alt=\"Wahh!\" title=\"Wahh!\" /><br /><span class=\"title_red\" style=\"font-size: 36px;\">WAHHH!!!<br />{$message}</span>
" . ($goBack ? "<br /><br /><a href=\"javascript: history.go(-1)\"><span style=\"font-size: 16px; font-weight: bold;\">&lt;-- Go Back</span></a>" : "") . "
} else {
echo $cuscon;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment