From 852573b1985b220638aa68df89faf086a7d62fc3 Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Wed, 21 Feb 2001 07:38:38 +0000 Subject: Added more needed files. Error handling functions file and PHPLib templates lib git-svn-id: file:///svn/phpbb/trunk@7 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/functions/error.php | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 phpBB/functions/error.php (limited to 'phpBB/functions/error.php') diff --git a/phpBB/functions/error.php b/phpBB/functions/error.php new file mode 100644 index 0000000000..e4277883a2 --- /dev/null +++ b/phpBB/functions/error.php @@ -0,0 +1,54 @@ +sql_error(); + $error_msg = "Error: phpBB could not connect to the database. Reason: " . $db_error["message"]; + break; + case BANNED: + $error_msg = "You have been banned from this forum."; + break; + case QUERY_ERROR: + $db_error = $db->sql_error(); + $error_msg = "Error: phpBB could not query the database. Reason: " . $db_error["message"]; + break; + case SESSION_CREATE: + $error_msg = "Error creating session. Could not log you in. Please go back and try again."; + break; + } + } + + die($error_msg); +} + + + + +?> -- cgit v1.2.1