From 175d4a049fb71b7e3cc56d467411bcac5aa2f3d1 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 19 Apr 2001 13:18:57 +0000 Subject: Moved all included files to includes git-svn-id: file:///svn/phpbb/trunk@182 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/error.php | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 phpBB/includes/error.php (limited to 'phpBB/includes/error.php') diff --git a/phpBB/includes/error.php b/phpBB/includes/error.php new file mode 100644 index 0000000000..76acc188e5 --- /dev/null +++ b/phpBB/includes/error.php @@ -0,0 +1,96 @@ +sql_error(); + $error_msg .= "
SQL connect error - " . $db_error["message"]; + break; + + case BANNED: + $error_msg = "You have been banned from this forum."; + break; + + case SQL_QUERY: + $db_error = $db->sql_error(); + $error_msg .= "
SQL query error - ".$db_error["message"]; + break; + + case SESSION_CREATE: + $error_msg = "Error creating session. Could not log you in. Please go back and try again."; + break; + + case NO_POSTS: + $error_msg = "There are no posts in this forum. Click on the Post New Topic link on this page to post one."; + break; + + case LOGIN_FAILED: + $error_msg = "Login Failed. You have specified an incorrect/inactive username or invalid password, please go back and try again."; + break; + } + } + if(DEBUG) + { + if($line != "" && $file != "") + $error_msg .= "

DEBUG INFO

Line: ".$line."
File: ".$file; + } + + $template->set_filenames(array("error_body" => "error_body.tpl")); + $template->assign_vars(array("ERROR_MESSAGE" => $error_msg)); + $template->pparse("error_body"); + + include('includes/page_tail.'.$phpEx); + + exit(); +} + +?> -- cgit v1.2.1