MyBB Community Forums

Full Version: 503 for errors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2010-02-17, 03:45 PM)NetSage Wrote: [ -> ]I doubt it since 1.6 is featured locked. Although I'm not staff.

Technically not a feature.
hmm, ya I wouldn't be surprised if it did. I know it's a small change but well idk Toungue.
I completely agree with it
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:

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