|
From: Paul S. O. <ps...@us...> - 2002-01-28 02:44:53
|
Update of /cvsroot/phpbb/phpBB2/admin
In directory usw-pr-cvs1:/tmp/cvs-serv15441/admin
Modified Files:
admin_forumauth.php
Log Message:
Added translation support for forumauth levels + re-added one of the sanity checks
Index: admin_forumauth.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/admin/admin_forumauth.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** admin_forumauth.php 2002/01/24 02:51:00 1.19
--- admin_forumauth.php 2002/01/28 02:44:50 1.20
***************
*** 119,123 ****
for($i = 0; $i < count($forum_auth_fields); $i++)
{
! $sql .= $forum_auth_fields[$i] . " = " . $HTTP_POST_VARS[$forum_auth_fields[$i]];
if($i < count($forum_auth_fields) - 1)
{
--- 119,133 ----
for($i = 0; $i < count($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)
{
***************
*** 273,285 ****
for($k = 0; $k < count($forum_auth_levels); $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] .= "</option>";
}
else
{
! $custom_auth[$j] .= "<option value=\"" . $forum_auth_const[$k] . "\">". $forum_auth_levels[$k] . "</option>";
}
}
--- 283,295 ----
for($k = 0; $k < count($forum_auth_levels); $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] .= $lang['Forum_' . $forum_auth_levels[$k]];
$custom_auth[$j] .= "</option>";
}
else
{
! $custom_auth[$j] .= "<option value=\"" . $forum_auth_const[$k] . "\">". $lang['Forum_' . $forum_auth_levels[$k]] . "</option>";
}
}
|