Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: global.php 4369 2009-05-11 08:48:32Z Tomm $
| * $Id: global.php 4430 2009-08-22 23:27:11Z RyanGordon $
|
*/ $working_dir = dirname(__FILE__);
| */ $working_dir = dirname(__FILE__);
|
Zeile 75 | Zeile 75 |
---|
{ my_setcookie("mybblang", $mybb->settings['bblanguage']); }
|
{ my_setcookie("mybblang", $mybb->settings['bblanguage']); }
|
| $mybb->user['language'] = $mybb->settings['bblanguage'];
|
} // Cookied language! else if($mybb->cookies['mybblang'] && $lang->language_exists($mybb->cookies['mybblang']))
| } // Cookied language! else if($mybb->cookies['mybblang'] && $lang->language_exists($mybb->cookies['mybblang']))
|
Zeile 520 | Zeile 521 |
---|
} error($lang->error_banned); }
|
} error($lang->error_banned); }
|
| $closed_bypass = array( "member.php" => array( "login", "do_login", "logout", ), "captcha.php", );
|
// If the board is closed, the user is not an administrator and they're not trying to login, show the board closed message
|
// If the board is closed, the user is not an administrator and they're not trying to login, show the board closed message
|
if($mybb->settings['boardclosed'] == 1 && $mybb->usergroup['cancp'] != 1 && !($current_page == "member.php" && ($mybb->input['action'] == "login" || $mybb->input['action'] == "do_login" || $mybb->input['action'] == "logout")))
| if($mybb->settings['boardclosed'] == 1 && $mybb->usergroup['cancp'] != 1 && !in_array($current_page, $closed_bypass) && (!is_array($closed_bypass[$current_page]) || !in_array($mybb->input['action'], $closed_bypass[$current_page])))
|
{ // Show error $lang->error_boardclosed .= "<blockquote>{$mybb->settings['boardclosed_reason']}</blockquote>";
| { // Show error $lang->error_boardclosed .= "<blockquote>{$mybb->settings['boardclosed_reason']}</blockquote>";
|