diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-06-01 00:28:50 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-06-01 00:28:50 +0000 |
commit | 99a804bb343a603cd6b008bef95d34574bda298e (patch) | |
tree | 99a01c41b63e08e237babab150c183de4134e7f7 /phpBB/posting.php | |
parent | b8758abd1733db955b1d47bb1200f5931748e702 (diff) | |
download | forums-99a804bb343a603cd6b008bef95d34574bda298e.tar forums-99a804bb343a603cd6b008bef95d34574bda298e.tar.gz forums-99a804bb343a603cd6b008bef95d34574bda298e.tar.bz2 forums-99a804bb343a603cd6b008bef95d34574bda298e.tar.xz forums-99a804bb343a603cd6b008bef95d34574bda298e.zip |
Updated for latest auth
git-svn-id: file:///svn/phpbb/trunk@399 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 5e76326359..8e16e57eb4 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -94,24 +94,29 @@ init_userprefs($userdata); switch($mode) { case 'newtopic': - $auth_type = POST; + $auth_type = AUTH_POST; + $is_auth_type = "auth_post"; break; case 'reply': - $auth_type = REPLY; + $auth_type = AUTH_REPLY; + $is_auth_type = "auth_replt"; break; case 'editpost': - $auth_type = EDIT; + $auth_type = AUTH_EDIT; + $is_auth_type = "auth_edit"; break; case 'delete': - $auth_type = DELETE; + $auth_type = AUTH_DELETE; + $is_auth_type = "auth_delete"; break; default: - $auth_type = POST; + $auth_type = AUTH_POST; + $is_auth_type = "auth_post"; break; } $is_auth = auth($auth_type, $forum_id, $userdata); -if(!$is_auth) +if(!$is_auth[$is_auth_type]) { // // Ooopss, user is not authed @@ -773,7 +778,7 @@ if($error) error_die(GENERAL_ERROR, "Sorry, no there is no such forum"); } - $sql = "SELECT forum_name, forum_access + $sql = "SELECT forum_name FROM ".FORUMS_TABLE." WHERE forum_id = $forum_id"; if(!$result = $db->sql_query($sql)) |