<?

/*
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 Category
	// ========================================================================================
	
	$PageTitle = '<img src="'.$ImagesURL.'/admin/admincp_messageboard.gif" width="26" height="18"> '.$MsgText[2][34];
	$BrowserTitle = $MsgText[2][34];
	$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="' . $MainURL . '/options.html">'.$MsgText[0][4].'</a> > <a href="' . $MainURL . '/admin/messageboard_boardsandcats.html">'.$MsgText[2][4].'</a> > '.$MsgText[2][34];
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[204] == 'y') {
				
			$query = "select * from `".$Settings['DBPrefix']."mb-Categories` where RecordNumber=".intval($Arguments3)." limit 1";
			$result = mysql_query($query) or die (mysql_error());
			
			$row = mysql_fetch_array($result);			
			
						
			
			$PageContents .= '<form action="'.$MainURL.'/admin/messageboard_catdeleteconfirm" method="post">'.$MsgText[2][35].' "'.$row['Title'].'" ?  <br>'.$MsgText[2][36].'<br><br><br><input type="hidden" name="CatToDelete" value="'.$row['RecordNumber'].'"><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/messageboard_boardsandcats.html\'" style="'.$FormStyle.'"></form>';
			
	
	
		}
		else {
		
			$PageContents = $MsgText[0][97];
		
		}

	}
	else {
	
		RedirectToLogin();
	
	}
	

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




?>
