<?

/*
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 page
	// ========================================================================================
	
	$PageTitle = '<img src="'.$ImagesURL.'/admin/admincp_content.gif" width="23" height="20"> '.$MsgText[0][298];
	$BrowserTitle = $MsgText[0][298];
	$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="'.$MainURL.'/options.html">'.$MsgText[0][4].'</a> > <a href="'.$MainURL.'/admin/pages.html">'.$MsgText[0][244].'</a> > '.$MsgText[0][298];
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[18] == 'y') {
							
			if ($Arguments3 != '') {
			
				$Arguments3 = intval($Arguments3);
							
				$query = "select * from `".$Settings['DBPrefix']."core-Pages` where RecordNumber='".$Arguments3."' limit 1";
				$result = mysql_query($query) or die (mysql_error());
				$row = mysql_fetch_array($result);
						
				
				$PageContents = '<b>'.$MsgText[0][299].' "'.$row['AdminLabel'].'" / "'.$row['PageTitle'].'" ?</b><br><br><br><form name="PostForm" action="'.$MainURL.'/admin/pages-delete-confirm" method="post">
<input type="hidden" name="PageID" 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/pages.html\'" style="'.$FormStyle.'"></form>';
				
		
			}
		
		}
			

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

	}
	else {
	
		RedirectToLogin();
	
	}

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




?>
