<?

/*
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 Existing Photo
	// ========================================================================================
	
	$PageTitle = '<img src="'.$ImagesURL.'/admin/admincp_content.gif" width="23" height="20"> '.$MsgText[0][325];
	$BrowserTitle = $MsgText[0][325];
	$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="'.$MainURL.'/options.html">'.$MsgText[0][4].'</a> > <a href="'.$MainURL.'/admin/images.html">'.$MsgText[0][302].'</a> > '.$MsgText[0][325];
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[17] == 'y') {
		
					
			if (is_file('./images/uploaded/'.$Arguments3)) {
												
				$PageContents .= '<b>'.$MsgText[0][326].' "'.$Arguments3.'" ?</b><br><img src="'.$BaseURL.'/images/uploaded/'.$Arguments3.'" alt="" border="0"><br><br><br><br><form action="'.$MainURL.'/admin/images_delete_confirm" method="post">
<input type="hidden" name="Filename" 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/images.html\'" style="'.$FormStyle.'"></form>';
				
		
			}
			else {
				$PageContents .= '<br>['.$MsgText[0][327].']<br>';
			}
	
				
	
	
		}
		else {
		
			$PageContents = $MsgText[0][97];
		
		}

	}
	else {
	
		RedirectToLogin();
	
	}
	

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




?>
