<?

/*
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
*/



	// ========================================================================================
	// delete block
	// ========================================================================================
	
	$PageTitle = '<img src="'.$ImagesURL.'/admin/admincp_content.gif" width="23" height="20"> '.$MsgText[0][235];
	$BrowserTitle = $MsgText[0][235];
	$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="'.$MainURL.'/options.html">'.$MsgText[0][4].'</a> > <a href="'.$MainURL.'/admin/blocks.html">'.$MsgText[0][151].'</a> > '.$MsgText[0][235];
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[2] == 'y') {
	
						
		if ($Arguments3 != '') {
		
			$Arguments3 = intval($Arguments3);
		
			
			$query = "select * from `".$Settings['DBPrefix']."core-Blocks` where RecordNumber='".$Arguments3."' LIMIT 1";
            $result = mysql_query($query) or die (mysql_error());
			
			$row = mysql_fetch_array($result);
			
			
			
			$PageContents = '<b>'.$MsgText[0][236].' "'.$row['AdminLabel'].'" / "'.$row['BlockTitle'].'" ?</b><br><br><br><form name="PostForm" action="'.$MainURL.'/admin/blocks-delete-confirm" method="post">
<input type="hidden" name="BlockID" value="'.$Arguments3.'">
<input type="submit" value="'.$MsgText[0][237].'" style="'.$FormStyle.'"><br><br><br><input type="button" value="'.$MsgText[0][238].'" onClick="window.location.href=\''.$MainURL.'/admin/blocks.html\'" style="'.$FormStyle.'"></form>';
			
		
		}
			

	} // end if permission exists
	else {
		
		$PageContents = $MsgText[0][97];
		
	}

	} // end if logged in
	else {
	
		RedirectToLogin();
	
	}

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




?>
