<?

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



	// ========================================================================================
	// counter prefs
	// ========================================================================================
	
	$PageTitle = '<img src="'.$ImagesURL.'/admin/admincp_stats.gif" width="24" height="18"> '.$MsgText[4][8];
	$BrowserTitle = $MsgText[4][8];
	$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="' . $MainURL . '/options.html">'.$MsgText[0][4].'</a> > '.$MsgText[4][8];
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[402] == 'y') {
		
			$query = "select * from `".$Settings['DBPrefix']."cs-Settings`";
			$result = mysql_query($query) or die (mysql_error());
			while ($row = mysql_fetch_array($result)) {
				$csSettings[$row['Name']] = $row['Value'];
			}
			
								
				
			$PageContents = '<form action="'.$MainURL.'/admin/stats_prefs_save" method="post">
									
			<br><b>'.$MsgText[4][40].':</b> <input type="text" name="MaxRecent" size="5" value="'.$csSettings['MaxRecent'].'">
			<font size="1"><br>'.$MsgText[4][41].'<br></font>
			
			<br><b>'.$MsgText[4][68].':</b><br><textarea name="TrackingURLs" cols="40" rows="3" wrap="virtual">'.str_replace('$$$',"\n",$csSettings['TrackingURLs']).'</textarea><font size="1"><br>'.$MsgText[4][69].'<br></font>
			
			<br><br><br>
			<input type="submit" value="'.$MsgText[0][123].'">
			</form>';
			
			
	
	
		}
		else {
		
			$PageContents = $MsgText[0][97];
		
		}

	}
	else {
	
		RedirectToLogin();
	
	}
	

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




?>
