<?

/*
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 Smilie
	// ========================================================================================
	
	$PageTitle = $MsgText[0][411];
	$BrowserTitle = $MsgText[0][411];
	$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="' . $MainURL . '/options.html">'.$MsgText[0][4].'</a> > <a href="' . $MainURL . '/admin/smilies.html">'.$MsgText[0][60].'</a> > '.$MsgText[0][411];
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[15] == 'y') {
				
			$query = "select * from `".$Settings['DBPrefix']."core-Smilies` where RecordNumber=".intval($Arguments3)." limit 1";
			$result = mysql_query($query) or die (mysql_error());
			
			$row = mysql_fetch_array($result);			
			
						
			
			$PageContents .= '<form action="'.$MainURL.'/admin/smilies-deleteconfirm" method="post">'.$MsgText[0][156].' "'.$row['Description'].'" ?<br><br><input type="hidden" name="SmilieToDelete" 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/smilies.html\'" style="'.$FormStyle.'"></form>';
			
	
	
		}
		else {
		
			$PageContents = $MsgText[0][97];
		
		}

	}
	else {
	
		RedirectToLogin();
	
	}
	

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




?>
