function all_on_one () {
	if(!is_user_logged_in() && !current_user_can('administrator')){
		if(!strstr($_SERVER['PHP_SELF'], 'feed/')) {
			include TEMPLATEPATH ."/maintenance.php";
			exit();    
		} else if(strstr($_SERVER['PHP_SELF'], 'feed/') || strstr($_SERVER['PHP_SELF'], 'trackback/')) {
			$retry_after = $retry_after * 60;
			header("HTTP/1.0 503 Service Unavailable"); 
			header("Retry-After: $retry_after"); 
			exit();    
		}
	}
}

add_action('template_redirect', 'all_on_one');