Rename errorpage() to util_show_error_page() and move util_show_error_page() into include/util.php

This commit is contained in:
Jonathan Ernst
2006-06-29 16:13:35 +00:00
committed by WineHQ
parent 6b89df82a5
commit 6d019b918a
38 changed files with 68 additions and 72 deletions

View File

@@ -164,23 +164,6 @@ function apidb_image($name)
}
/**
* display an error page
*/
function errorpage($text = null, $message = null)
{
if (!$text) {
$text = "You must be logged in to perform that operation.";
}
header("HTTP/1.0 404 Object not found or user is not logged in");
apidb_header("Oops");
echo "<div align=center><font color=red><b>$text</b></font></div>\n";
echo "<p>$message</p>\n";
apidb_footer();
}
/**
* redirect to $url
*/