diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-03 00:33:20 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-03 00:33:20 +0000 |
| commit | 36411723ad1622009257b40bbaac406a81ca0e67 (patch) | |
| tree | 99b178e3ce228310a4197ae674e84e59d6c173c5 /phpBB/viewforum.php | |
| parent | da5f117fcbe82cf92317421aa9c8f15aed96f79c (diff) | |
| download | forums-36411723ad1622009257b40bbaac406a81ca0e67.tar forums-36411723ad1622009257b40bbaac406a81ca0e67.tar.gz forums-36411723ad1622009257b40bbaac406a81ca0e67.tar.bz2 forums-36411723ad1622009257b40bbaac406a81ca0e67.tar.xz forums-36411723ad1622009257b40bbaac406a81ca0e67.zip | |
Demos of message_die use
git-svn-id: file:///svn/phpbb/trunk@541 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
| -rw-r--r-- | phpBB/viewforum.php | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 06a0a1734c..cd8e3e37a4 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -100,15 +100,8 @@ if(!$is_auth['auth_read'] || !$is_auth['auth_view']) $msg = $lang['Sorry_auth'] . $is_auth['auth_read_type'] . $lang['can_read'] . $lang['this_forum']; - $template->set_filenames(array( - "reg_header" => "error_body.tpl" - )); - $template->assign_vars(array( - "ERROR_MESSAGE" => $msg - )); - $template->pparse("reg_header"); + message_die(GENERAL_MESSAGE, $msg); - include('includes/page_tail.'.$phpEx); } // // End of auth check @@ -424,14 +417,11 @@ if($total_topics) ); } - $s_auth_can = ""; - $s_auth_can .= "You " . (($is_auth['auth_read']) ? "<b>can</b>" : "<b>cannot</b>" ) . " read posts in this forum<br>"; + $s_auth_can = "You " . (($is_auth['auth_read']) ? "<b>can</b>" : "<b>cannot</b>" ) . " read posts in this forum<br>"; $s_auth_can .= "You " . (($is_auth['auth_post']) ? "<b>can</b>" : "<b>cannot</b>") . " add new topics to this forum<br>"; $s_auth_can .= "You " . (($is_auth['auth_reply']) ? "<b>can</b>" : "<b>cannot</b>") . " reply to posts in this forum<br>"; $s_auth_can .= "You " . (($is_auth['auth_edit']) ? "<b>can</b>" : "<b>cannot</b>") . " edit your posts in this forum<br>"; $s_auth_can .= "You " . (($is_auth['auth_delete']) ? "<b>can</b>" : "<b>cannot</b>") . " delete your posts in this forum<br>"; - $s_auth_can .= ($is_auth['auth_mod']) ? "You are a moderator of this forum<br>" : ""; - $s_auth_can .= ($userdata['user_level'] == ADMIN) ? "You are a board admin<br>" : ""; $template->assign_vars(array( "PAGINATION" => generate_pagination("viewforum.$phpEx?".POST_FORUM_URL."=$forum_id&postdays=$post_days", $topics_count, $board_config['topics_per_page'], $start), @@ -454,7 +444,7 @@ else // at some future point when if...else // constructs are available // - error_die(NO_POSTS); + message_die(NO_POSTS); } include('includes/page_tail.'.$phpEx); |
