diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-09-06 00:29:07 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-09-06 00:29:07 +0000 |
commit | ef36331c3e4201f36c3ff76a0d450e11292c2bea (patch) | |
tree | c16a511dc7173edad0e349a95d3c9dd6e0b4e340 /phpBB/includes/auth.php | |
parent | 620e60adbb21fcbae5d330900183f66a32f6a746 (diff) | |
download | forums-ef36331c3e4201f36c3ff76a0d450e11292c2bea.tar forums-ef36331c3e4201f36c3ff76a0d450e11292c2bea.tar.gz forums-ef36331c3e4201f36c3ff76a0d450e11292c2bea.tar.bz2 forums-ef36331c3e4201f36c3ff76a0d450e11292c2bea.tar.xz forums-ef36331c3e4201f36c3ff76a0d450e11292c2bea.zip |
Numerous updates and additions for polling and assorted fixes ... or bugs, whichever they turn out to be
git-svn-id: file:///svn/phpbb/trunk@987 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/auth.php')
-rw-r--r-- | phpBB/includes/auth.php | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/phpBB/includes/auth.php b/phpBB/includes/auth.php index 575574f9e1..5fcbe0eb4f 100644 --- a/phpBB/includes/auth.php +++ b/phpBB/includes/auth.php @@ -1,15 +1,15 @@ <?php /*************************************************************************** * auth.php - * ------------------- - * begin : Saturday, Feb 13, 2001 - * copyright : (C) 2001 The phpBB Group - * email : support@phpbb.com - * - * $Id$ - * - * - ***************************************************************************/ + * ------------------- + * begin : Saturday, Feb 13, 2001 + * copyright : (C) 2001 The phpBB Group + * email : support@phpbb.com + * + * $Id$ + * + * + ***************************************************************************/ /*************************************************************************** * @@ -59,8 +59,8 @@ function auth($type, $forum_id, $userdata, $f_access = -1) switch($type) { case AUTH_ALL: - $a_sql = "a.auth_view, a.auth_read, a.auth_post, a.auth_reply, a.auth_edit, a.auth_delete, a.auth_sticky, a.auth_announce"; - $auth_fields = array("auth_view", "auth_read", "auth_post", "auth_reply", "auth_edit", "auth_delete", "auth_sticky", "auth_announce"); + $a_sql = "a.auth_view, a.auth_read, a.auth_post, a.auth_reply, a.auth_edit, a.auth_delete, a.auth_sticky, a.auth_announce, a.auth_vote, a.auth_pollcreate"; + $auth_fields = array("auth_view", "auth_read", "auth_post", "auth_reply", "auth_edit", "auth_delete", "auth_sticky", "auth_announce", "auth_vote", "auth_pollcreate"); break; case AUTH_VIEW: @@ -98,9 +98,13 @@ function auth($type, $forum_id, $userdata, $f_access = -1) $auth_fields = array("auth_sticky"); break; - case AUTH_VOTECREATE: + case AUTH_POLLCREATE: + $a_sql = "a.auth_pollcreate"; + $auth_fields = array("auth_pollcreate"); break; case AUTH_VOTE: + $a_sql = "a.auth_vote"; + $auth_fields = array("auth_vote"); break; case AUTH_ATTACH: break; |