mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
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
This commit is contained in:
parent
20bcba226a
commit
f2a0e0ea43
1 changed files with 14 additions and 4 deletions
|
@ -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> ";
|
||||
|
|
Loading…
Add table
Reference in a new issue