aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin/admin_forumauth.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-01-28 02:44:50 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-01-28 02:44:50 +0000
commitf2a0e0ea43aa7b33921ccddb052c1d5707d6af8e (patch)
treebe0673d6780dc5e6d196446e3debd4402fbd8bef /phpBB/admin/admin_forumauth.php
parent20bcba226a5a552172cd238009d540f5fc9209bf (diff)
downloadforums-f2a0e0ea43aa7b33921ccddb052c1d5707d6af8e.tar
forums-f2a0e0ea43aa7b33921ccddb052c1d5707d6af8e.tar.gz
forums-f2a0e0ea43aa7b33921ccddb052c1d5707d6af8e.tar.bz2
forums-f2a0e0ea43aa7b33921ccddb052c1d5707d6af8e.tar.xz
forums-f2a0e0ea43aa7b33921ccddb052c1d5707d6af8e.zip
Added translation support for forumauth levels + re-added one of the sanity checks
git-svn-id: file:///svn/phpbb/trunk@1986 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_forumauth.php')
-rw-r--r--phpBB/admin/admin_forumauth.php18
1 files changed, 14 insertions, 4 deletions
diff --git a/phpBB/admin/admin_forumauth.php b/phpBB/admin/admin_forumauth.php
index e45a94aab9..d735b802f5 100644
--- a/phpBB/admin/admin_forumauth.php
+++ b/phpBB/admin/admin_forumauth.php
@@ -118,7 +118,17 @@ if( isset($HTTP_POST_VARS['submit']) )
{
for($i = 0; $i < count($forum_auth_fields); $i++)
{
- $sql .= $forum_auth_fields[$i] . " = " . $HTTP_POST_VARS[$forum_auth_fields[$i]];
+ $value = $HTTP_POST_VARS[$forum_auth_fields[$i]];
+
+ if($forum_auth_fields[$i] == 'auth_vote')
+ {
+ if( $HTTP_POST_VARS['auth_vote'] == AUTH_ALL )
+ {
+ $value = AUTH_REG;
+ }
+ }
+
+ $sql .= $forum_auth_fields[$i] . " = " . $value;
if($i < count($forum_auth_fields) - 1)
{
$sql .= ", ";
@@ -272,15 +282,15 @@ else
for($k = 0; $k < count($forum_auth_levels); $k++)
{
- if($forum_rows[0][$forum_auth_fields[$j]] == $forum_auth_const[$k])
+ if ( $forum_rows[0][$forum_auth_fields[$j]] == $forum_auth_const[$k] )
{
$custom_auth[$j] .= "<option value=\"" . $forum_auth_const[$k] . "\" selected>";
- $custom_auth[$j] .= $forum_auth_levels[$k];
+ $custom_auth[$j] .= $lang['Forum_' . $forum_auth_levels[$k]];
$custom_auth[$j] .= "</option>";
}
else
{
- $custom_auth[$j] .= "<option value=\"" . $forum_auth_const[$k] . "\">". $forum_auth_levels[$k] . "</option>";
+ $custom_auth[$j] .= "<option value=\"" . $forum_auth_const[$k] . "\">". $lang['Forum_' . $forum_auth_levels[$k]] . "</option>";
}
}
$custom_auth[$j] .= "</select>&nbsp;";