2010-02-17, 05:38 PM
Pages: 1 2
2010-02-17, 05:52 PM
hmm, ya I wouldn't be surprised if it did. I know it's a small change but well idk .
2010-02-18, 10:00 PM
I completely agree with it
2010-02-19, 10:31 AM
This is a great idea. In my opinion this http code should also send when you close the board. Only 10 min and Google may index dozens of sites which just say that the board is closed...
Ok, this could also done with a plugin that hooks at global_start:
But it would be nice to set the time in Admin CP and MyBB sends the 503 header.
Ok, this could also done with a plugin that hooks at global_start:
function offline_header()
{
global $mybb,$current_page;
$closed_bypass=array
(
'member.php'=>array
(
'login',
'do_login',
'logout',
),
'captcha.php',
);
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])))
{
header('Status: 503 Service Unavailable');
header('Retry-After: 600');
}
}
But it would be nice to set the time in Admin CP and MyBB sends the 503 header.
Pages: 1 2