|
From: Florin C B. <ory...@us...> - 2011-03-14 18:46:10
|
Update of /cvsroot/mxbb/core/includes/sessions/phpbb3
In directory vz-cvs-4.sog:/tmp/cvs-serv7761
Modified Files:
session.php
Log Message:
portal_config strings insted of board_config strings for portal
Index: session.php
===================================================================
RCS file: /cvsroot/mxbb/core/includes/sessions/phpbb3/session.php,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** session.php 5 Nov 2008 06:23:35 -0000 1.41
--- session.php 14 Mar 2011 18:46:08 -0000 1.42
***************
*** 1601,1609 ****
// Is board disabled and user not an admin or moderator?
! if ($board_config['board_disable'] && !defined('IN_LOGIN') && !$phpbb_auth->acl_gets('a_', 'm_') && !$phpbb_auth->acl_getf_global('m_'))
{
! header('HTTP/1.1 503 Service Unavailable');
! $message = (!empty($board_config['board_disable_msg'])) ? $board_config['board_disable_msg'] : 'BOARD_DISABLE';
trigger_error($message);
}
--- 1601,1609 ----
// Is board disabled and user not an admin or moderator?
! if ($portal_config['board_disable'] && !defined('IN_LOGIN') && !$phpbb_auth->acl_gets('a_', 'm_') && !$phpbb_auth->acl_getf_global('m_'))
{
! @header('HTTP/1.1 503 Service Unavailable');
! $message = (!empty($portal_config['board_disable_msg'])) ? $portal_config['board_disable_msg'] : 'BOARD_DISABLE';
trigger_error($message);
}
***************
*** 1615,1623 ****
{
// Set board disabled to true to let the admins/mods get the proper notification
! $board_config['board_disable'] = '1';
if (!$phpbb_auth->acl_gets('a_', 'm_') && !$phpbb_auth->acl_getf_global('m_'))
{
! header('HTTP/1.1 503 Service Unavailable');
trigger_error('BOARD_UNAVAILABLE');
}
--- 1615,1623 ----
{
// Set board disabled to true to let the admins/mods get the proper notification
! $portal_config['board_disable'] = '1';
if (!$phpbb_auth->acl_gets('a_', 'm_') && !$phpbb_auth->acl_getf_global('m_'))
{
! @header('HTTP/1.1 503 Service Unavailable');
trigger_error('BOARD_UNAVAILABLE');
}
|