From 6b2915c0a2470c012cabf490b7c95021f04ea7d8 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 17 Oct 2001 23:05:46 +0000 Subject: [PATCH] Removed remaining elements of global announcements to prevent confusion git-svn-id: file:///svn/phpbb/trunk@1235 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index a6fdb1436d..84d4e2ca12 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -525,11 +525,7 @@ else if( $topic_status == TOPIC_LOCKED ) // if( isset($HTTP_POST_VARS['topictype']) ) { - if( $HTTP_POST_VARS['topictype'] == "global" ) - { - $topic_type = POST_ANNOUNCE_GLOBAL; - } - else if( $HTTP_POST_VARS['topictype'] == "announce" ) + if( $HTTP_POST_VARS['topictype'] == "announce" ) { $topic_type = POST_ANNOUNCE; } @@ -554,7 +550,7 @@ $auth_type = AUTH_ALL; switch( $mode ) { case 'newtopic': - if( $topic_type == POST_ANNOUNCE || $topic_type == POST_GLOBAL_ANNOUNCE ) + if( $topic_type == POST_ANNOUNCE ) { $is_auth_type = "auth_announce"; $auth_string = $lang['can_post_announcements']; @@ -642,11 +638,6 @@ if( !$is_auth[$is_auth_type] ) message_die(GENERAL_MESSAGE, $message); } -else if( $topic_type == POST_GLOBAL_ANNOUNCE && $userdata['user_level'] != ADMIN ) -{ - $message = $lang['Sorry_auth'] . $lang['Administrators'] . $auth_string . $lang['this_forum']; - message_die(GENERAL_MESSAGE, $message); -} // // End Auth // @@ -944,10 +935,6 @@ if( ( $submit || $confirm || $mode == "delete" ) && !$error ) $sql .= " WHERE forum_id = $forum_id"; -/* if( $topic_type != POST_GLOBAL_ANNOUNCE ) - { - } -*/ if($db->sql_query($sql)) { $sql = "UPDATE " . USERS_TABLE . " @@ -2254,16 +2241,6 @@ if( $mode == 'newtopic' || ( $mode == 'editpost' && $is_first_post_topic ) ) { $template->assign_block_vars("type_toggle", array()); - if( $userdata['user_level'] == ADMIN ) - { - $global_announce_toggle = '