<?

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



	// ========================================================================================
	// admin add subscribers page
	// ========================================================================================
	
	$query = "select * from `".$Settings['DBPrefix']."nl-Settings`";
	$result = mysql_query($query) or die (mysql_error());
	while ($row = mysql_fetch_array($result)) {
		$nlSettings[$row['Name']] = $row['Value'];
	}
	
	
	$PageTitle = '<img src="'.$ImagesURL.'/admin/admincp_newsletter.gif" width="22" height="21"> '.$MsgText[5][32];
	$BrowserTitle = $MsgText[5][32];
	$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="' . $MainURL . '/options.html">'.$MsgText[0][4].'</a> > <a href="'.$MainURL.'/admin/newsletter_subscribers.html">'.$MsgText[5][3].'</a>  > '.$MsgText[5][32];
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[502] == 'y') {
							
		
			$PageContents = '<br>'.$MsgText[5][38].'<br><br><form action="'.$MainURL.'/admin/newsletter_subscribers_add_save" method="post">
<b>'.$MsgText[5][39].':</b><br>
<textarea name="EmailAddresses" cols="50" rows="10" wrap="virtual" style="'.$FormStyle.'"></textarea>
<br><br>
	<input type="radio" name="SubscriberAction" value="confirm"> '.$MsgText[5][40].'<br>
	<input type="radio" name="SubscriberAction" value="welcome"> '.$MsgText[5][41].'<br>
	<input type="radio" name="SubscriberAction" value="nothing" checked> '.$MsgText[5][42].'<br>
<br>
<br><br>
<input type="submit" value="'.$MsgText[5][32].'" style="'.$FormStyle.'">
</form>';
			
			
		}
		else {
		
			$PageContents = $MsgText[0][97];
		
		}

	}
	else {
	
		RedirectToLogin();
	
	}
		


?>
