<?

/*
FlexCMS (http://www.flexcms.com)
Flexible, Powerful, Affordable.

Contents of this file are protected by the copyright
notice found at http://www.flexcms.com/flex/pages/copyright.html,
and its usage is subject to the terms of the licensing agreement 
available at http://www.flexcms.com/flex/pages/license.html
*/


		
	$PageTitle = '<img src="'.$ImagesURL.'/admin/admincp_settings.gif" width="23" height="20"> '.$MsgText[0][685];
	$BrowserTitle = $MsgText[0][685];
	$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="'.$MainURL.'/options.html">'.$MsgText[0][4].'</a> > '.$MsgText[0][685];
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[25] == 'y') {
		
			if ($Settings['MaintenanceMode'] == '') {
				$Settings['MaintenanceMode'] = 'n';
			}
			$StatusChecked[$Settings['MaintenanceMode']] = ' checked';
			
				
			$PageContents = '<br><form name="PostForm" action="'.$MainURL . '/admin/maintenancemode-save" method="post">
<b>'.$MsgText[0][686].':</b>&nbsp;&nbsp;&nbsp;<input type="radio" name="MaintenanceMode" value="y"'.$StatusChecked['y'].'> '.$MsgText[0][118].' &nbsp;<input type="radio" name="MaintenanceMode" value="n"'.$StatusChecked['n'].'> '.$MsgText[0][119].'<br><font size="1">'.$MsgText[0][687].'<br></font>
<br><b>'.$MsgText[0][688].':</b><br><textarea name="MaintenanceModeMessage" cols="50" rows="8" wrap="virtual">'.str_replace('<','&lt;',$Settings['MaintenanceModeMessage']).'</textarea>
<br><br>

<br><div align="center"><input type="submit" value="'.$MsgText[0][123].'">
</div>

</form>';



		}
		else {
		
			$PageContents = $MsgText[0][97];
		
		}

	}
	else {
	
		RedirectToLogin();
	
	}

	// ========================================================================================




?>
