|
From: Bart v. B. <ba...@us...> - 2002-01-21 15:15:14
|
Update of /cvsroot/phpbb/phpBB2/admin
In directory usw-pr-cvs1:/tmp/cvs-serv16094
Modified Files:
admin_forumauth.php
Log Message:
Removed some sanity checks that caused unexpected behaviour
Index: admin_forumauth.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/admin/admin_forumauth.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** admin_forumauth.php 2002/01/17 10:48:29 1.17
--- admin_forumauth.php 2002/01/21 15:15:10 1.18
***************
*** 119,141 ****
for($i = 0; $i < count($forum_auth_fields); $i++)
{
! $value = $HTTP_POST_VARS[$forum_auth_fields[$i]];
!
! if($forum_auth_fields[$i] != 'auth_view')
! {
! if($HTTP_POST_VARS['auth_view'] > $value)
! {
! $value = $HTTP_POST_VARS['auth_view'];
! }
! }
!
! 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)
{
--- 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)
{
***************
*** 166,170 ****
message_die(GENERAL_MESSAGE, $message);
! }
//
--- 148,152 ----
message_die(GENERAL_MESSAGE, $message);
! } // End of submit
//
|