1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

View forum page is started. Need private forum checking

git-svn-id: file:///svn/phpbb/trunk@34 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson
2001-02-23 20:34:43 +00:00
parent fb2ae00b71
commit 52544a7385
4 changed files with 95 additions and 5 deletions

View File

@@ -24,6 +24,7 @@
function error_die($db, $error_code = "", $error_msg = "")
{
global $template, $phpEx;
if(!$error_msg)
{
switch($error_code)
@@ -42,10 +43,15 @@ function error_die($db, $error_code = "", $error_msg = "")
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.";
}
}
die($error_msg);
$template->set_file(array("error_body" => "error_body.tpl"));
$template->set_var(array("ERROR_MESSAGE" => $error_msg));
$template->pparse("output", "error_body");
include('page_tail.'.$phpEx);
exit();
}