<?

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



	// ========================================================================================
	// main control panel display
	// ========================================================================================

	$PageTitle = $MsgText[0][4];
	$BrowserTitle = $MsgText[0][4];
	$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > '.$MsgText[0][4];
	
			
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;		
		
		
					
		
		$PageContents .= $MsgText[0][5].'<br><br>';


		if ($Settings['ManualLinkLevel'] == '') {
			$Settings['ManualLinkLevel'] = 1;
		}
		if ($UserLevel > $Settings['ManualLinkLevel']) {
			$PageContents .= $MsgText[0][6].' <a href="'.$Settings['MLink'].'" target="_blank">'.str_replace('{PackageName}',$Settings['SPN'],$MsgText[0][647]).'</a><br><br><br>';
		}


		
		
		if ($IM['mb'] == 'y') {
			$NotificationsPrint = '&nbsp;- <a href="'.$MainURL.'/notifications.html">'.$MsgText[0][18].'</a><br>';
		}
		
		
		if ($Permissions[1] == 'y') {
		
		$LicenseLevels[1] = $MsgText[0][23];
		$LicenseLevels[2] = $MsgText[0][24];
		$LicenseLevels[3] = $MsgText[0][25];
		$LicenseLevels[4] = 'Special';
		
		
		if ($UserLevel >= 50) {
			$SyncKeysLink = '<br><br><a href="'.$MainURL . '/admin/settings-baseurl2.html">'.$MsgText[0][19].'</a><br>';
		}
										
		$GeneralInformation = '<br><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_general.gif" width="20" height="20"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[0][26].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->

		<table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td width="50%" valign="top"><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$Settings['SPN'].' v'.$Settings['iv'].'</b><br><br><b>'.$MsgText[0][20].':</b><br>'.date('F j, Y',$Settings['id']).'</td><td width="50%" valign="top"><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[0][21].':</b><br>'.$LicenseLevels[$Settings['l'.'v'.'l']].$SyncKeysLink.'</td></tr></table>
		
		<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table>';
		
		} // end if permission to view runtime/license info
					
							
				if ($IM['cl'] == 'y' && ($Permissions[100] == 'y' || $Permissions[101] == 'y')) {
					$ModulesList .= '&nbsp;- '.$MsgText[1][1].'<br>';
					
					if ($Permissions[100] == 'y') {
						$CLOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/calendar.html">'.$MsgText[1][2].'</a><br>';
					}
					if ($Permissions[101] == 'y') {
						$CLOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/calendar_prefs.html">'.$MsgText[1][3].'</a><br>';
					
						$CLOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/calendar_colors.html">'.$MsgText[1][4].'</a><br>';
					}
					
					$ModuleOptions .= '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_calendar.gif" width="28" height="18"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[1][1].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->
		
		'.$CLOptions.'
		
		<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table><br>';
							
				}
				if ($IM['mb'] == 'y' && ($Permissions[204] == 'y')) {
					$ModulesList .= '&nbsp;- '.$MsgText[2][1].'<br>';
					
					
					if ($Permissions[204] == 'y') {
						$MBOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/messageboard_boardsandcats.html">'.$MsgText[2][4].'</a><br>';
						
						$MBOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/messageboard_prefs.html">'.$MsgText[2][2].'</a><br>';
					
						$MBOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/messageboard_colors.html">'.$MsgText[2][3].'</a><br>';
												
					}
					
					if ($Permissions[15] == 'y') {
						$MBOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/smilies.html">'.$MsgText[0][60].'</a><br>';
					}
					
					$ModuleOptions .= '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_messageboard.gif" width="26" height="18"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[2][1].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->
		
		'.$MBOptions.'
		
		<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table><br>';
								
				}
				if ($IM['pg'] == 'y' && ($Permissions[301] == 'y' || $Permissions[302] == 'y')) {
					$ModulesList .= '&nbsp;- '.$MsgText[3][1].'<br>';
					
					if ($Permissions[301] == 'y') {
						$PGOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/photos.html">'.$MsgText[3][2].'</a><br>';
						$PGOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/photos_galleries.html">'.$MsgText[3][3].'</a><br>';
					}
					if ($Permissions[302] == 'y') {
						$PGOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/photos_prefs.html">'.$MsgText[3][4].'</a><br>';
					}
					
					$ModuleOptions .= '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_photo.gif" width="28" height="22"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[3][1].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->
		
		'.$PGOptions.'
		
		<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table><br>';
							
				}
				if ($IM['cs'] == 'y' && ($Permissions[401] == 'y' || $Permissions[402] == 'y')) {
					$ModulesList .= '&nbsp;- '.$MsgText[4][1].'<br>';
					
					if ($Permissions[401] == 'y') {
						$CSOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/stats.html">'.$MsgText[4][2].'</a><br>';
						$CSOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/stats_pageviews.html">'.$MsgText[4][3].'</a><br>';
						$CSOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/stats_pages.html">'.$MsgText[4][4].'</a><br>';
						$CSOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/stats_referrals.html">'.$MsgText[4][5].'</a><br>';
						$CSOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/stats_users.html">'.$MsgText[4][6].'</a><br>';
						$CSOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/stats_systems.html">'.$MsgText[4][7].'</a><br>';
					}
					if ($Permissions[402] == 'y') {
						if ($CSOptions != '') {
							$CSOptions .= '<img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="1" height="8" alt=""><br>';
						}
						$CSOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/stats_prefs.html">'.$MsgText[4][8].'</a><br>';
					}
					
					$ModuleOptions .= '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_stats.gif" width="24" height="18"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[4][1].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->
		
		'.$CSOptions.'
		
		<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table><br>';
							
				}
				if ($IM['nl'] == 'y' && ($Permissions[501] == 'y' || $Permissions[502] == 'y' || $Permissions[503] == 'y')) {
					$ModulesList .= '&nbsp;- '.$MsgText[5][1].'<br>';
					
					if ($Permissions[501] == 'y') {
						$NLOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/newsletter_compose.html">'.$MsgText[5][2].'</a><br>';
					}
					if ($Permissions[502] == 'y') {
						$NLOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/newsletter_subscribers.html">'.$MsgText[5][3].'</a><br>';
						$NLOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/newsletter_archived.html">'.$MsgText[5][4].'</a><br>';
					}
					if ($Permissions[503] == 'y') {
						$NLOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/newsletter_prefs.html">'.$MsgText[5][5].'</a><br>';
					}
					
					$ModuleOptions .= '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_newsletter.gif" width="22" height="21"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[5][1].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->
		
		'.$NLOptions.'
		
		<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table><br>';
							
				}
				if ($IM['gb'] == 'y' && ($Permissions[601] == 'y' || $Permissions[602] == 'y')) {
					$ModulesList .= '&nbsp;- '.$MsgText[6][1].'<br>';
					
					if ($Permissions[601] == 'y') {
						$GBOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/guestbook_manage.html">'.$MsgText[6][2].'</a><br>';
					}
					if ($Permissions[602] == 'y') {
						$GBOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/guestbook_prefs.html">'.$MsgText[6][19].'</a><br>';
					}
										
					$ModuleOptions .= '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_guestbook.gif" width="22" height="21"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[6][1].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->
		
		'.$GBOptions.'
		
		<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table><br>';
							
				}
				if ($IM['na'] == 'y' && ($Permissions[701] == 'y' || $Permissions[704] == 'y')) {
					$ModulesList .= '&nbsp;- '.$MsgText[7][1].'<br>';
					
					if ($Permissions[701] == 'y') {
						$NAOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/articles.html">'.$MsgText[7][2].'</a><br>';
					}
					if ($Permissions[703] == 'y') {
						$NAOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/articles-generate.html">'.$MsgText[7][5].'</a><br>';
					}
					if ($Permissions[704] == 'y') {
						$NAOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/articles-prefs.html">'.$MsgText[7][3].'</a><br>';
					}
										
					$ModuleOptions .= '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_articles.gif" width="22" height="21"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[7][1].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->
		
		'.$NAOptions.'
		
		<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table><br>';
							
				}
				if ($IM['lm'] == 'y' && ($Permissions[801] == 'y')) {
					$ModulesList .= '&nbsp;- '.$MsgText[8][1].'<br>';
					
					if ($Permissions[801] == 'y') {
						$LMOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/links.html">'.$MsgText[8][2].'</a><br>';
						$LMOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/links-prefs.html">'.$MsgText[8][3].'</a><br>';
					}
										
					$ModuleOptions .= '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_links.gif" width="20" height="21"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[8][1].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->
		
		'.$LMOptions.'
		
		<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table><br>';
							
				}
				if ($IM['ec'] == 'y' && ($Permissions[901] == 'y' || $Permissions[902] == 'y' || $Permissions[903] == 'y' || $Permissions[904] == 'y' || $Permissions[905] == 'y' || $Permissions[906] == 'y' || $Permissions[21] == 'y')) {
					$ModulesList .= '&nbsp;- '.$MsgText[9][1].'<br>';
					
					if ($Permissions[901] == 'y') {
						$ECOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/store-categories.html">'.$MsgText[9][2].'</a><br>';
						$ECOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/store-products.html">'.$MsgText[9][3].'</a><br>';
					}
					if ($Permissions[21] == 'y') {
						$ECOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/countries.html">'.$MsgText[0][581].'</a><br>';
					}
					if ($Permissions[903] == 'y') {
						$ECOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/store-shipping.html">'.$MsgText[9][72].'</a><br>';
					}
					if ($Permissions[904] == 'y') {
						$ECOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/store-taxes.html">'.$MsgText[9][116].'</a><br>';
					}
					if ($Permissions[902] == 'y') {
						$ECOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/store-prefs.html">'.$MsgText[9][129].'</a><br>';
					}
					if ($Permissions[905] == 'y') {
						$ECOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/store-orders.html">'.$MsgText[9][174].'</a><br>';
					}
					if ($Permissions[906] == 'y') {
						$ECOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/store-reports.html">'.$MsgText[9][175].'</a><br>';
					}
										
					$ModuleOptions .= '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_ecom.gif" width="20" height="21"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[9][1].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->
		
		'.$ECOptions.'
		
		<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table><br>';
							
				}
				
				
			if ($Permissions[14] == 'y') {
			
				if ($ModulesList == '') {
					$ModulesList = '['.$MsgText[0][47].']<br>';
				}
			
			
				$ModulesSummary = '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_modules.gif" width="21" height="20"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[0][46].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->

		<table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td width="100%" valign="top"><font face="'.$FontFace.'" size="'.$FontSize.'">
		
		'.$MsgText[0][48].':<br>
		'.$ModulesList.'<br><a href="'.$MainURL.'/admin/modules.html">'.$MsgText[0][49].'</a>
		
		</font></td></tr></table>
		
		<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table>';
		
		}
		
		
		
		
		
		
		if ($Permissions[2] == 'y') {
			$SiteContentOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/blocks.html">'.$MsgText[0][50].'</a><br>';
		}
		if ($Permissions[18] == 'y') {
			$SiteContentOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/pages.html">'.$MsgText[0][51].'</a><br>';
		}
		if ($Permissions[26] == 'y') {
			$SiteContentOptions .= '&nbsp;- <a href="javascript:LaunchFileManager();">'.$MsgText[0][697].'</a><br>
			
			<script language="Javascript">
					
			function LaunchFileManager() {
				var iLeft = ( screen.width * .3 ) / 2 ;
				var iTop  = ( screen.height * .3 ) / 2 ;
				
				var WindowWidth = ( screen.width * .7 );
				var WindowHeight = ( screen.height * .7 );

				var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes,scrollbars=yes" ;
				sOptions += ",width=" + WindowWidth ;
				sOptions += ",height=" + WindowHeight ;
				sOptions += ",left=" + iLeft ;
				sOptions += ",top=" + iTop ;
			
				window.open("'.$MainURL.'/admin/filemanager", "FileManager", sOptions ) ;
			}			
			</script>';
		}
		if ($Permissions[100] == 'y' && $IM['cl'] == 'y') {
			$SiteContentOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/calendar.html">'.$MsgText[1][2].'</a><br>';
		}
		if ($Permissions[301] == 'y' && $IM['pg'] == 'y') {
			$SiteContentOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/photos.html">'.$MsgText[3][2].'</a> / <a href="'.$MainURL . '/admin/photos_galleries.html">'.$MsgText[3][3].'</a><br>';
		}
		if ($Permissions[501] == 'y' && $IM['nl'] == 'y') {
			$SiteContentOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/newsletter_compose.html">'.$MsgText[5][2].'</a><br>';
		}
		if ($Permissions[701] == 'y' && $IM['na'] == 'y') {
			$SiteContentOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/articles.html">'.$MsgText[7][2].'</a><br>';
		}
		if ($Permissions[801] == 'y' && $IM['lm'] == 'y') {
			$SiteContentOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/links.html">'.$MsgText[8][2].'</a><br>';
		}
		
		
		if ($Permissions[10] == 'y') {
			$UsersAndPermissionsOptions .= '&nbsp;- <a href="'.$MainURL . '/register.html">'.$MsgText[0][53].'</a><br>';
		}
		if ($Permissions[5] == 'y') {
			$UsersAndPermissionsOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/users.html">'.$MsgText[0][54].'</a><br>';
		}				
		if ($Permissions[4] == 'y') {
			$UsersAndPermissionsOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/permissions.html">'.$MsgText[0][55].'</a><br>';
		}
		if ($Permissions[6] == 'y') {
			$UsersAndPermissionsOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/levels.html">'.$MsgText[0][56].'</a><br>';
		}
		
		
		if ($Permissions[1] == 'y') {
			$InformationOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/info.html">'.$MsgText[0][57].'</a><br>';
		}
		if ($Permissions[11] == 'y') {
			$InformationOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/where.html">'.$MsgText[0][58].'</a><br>';
		}
		if ($Permissions[12] == 'y') {
			$InformationOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/users.html">'.$MsgText[0][59].'</a><br>';
		}
		
				
		if ($Permissions[13] == 'y') {
			$SettingsOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/registration.html">'.$MsgText[0][61].'</a><br>';
		}
		if ($Permissions[21] == 'y') {
			$SettingsOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/countries.html">'.$MsgText[0][581].'</a><br>';
		}
		if ($Permissions[7] == 'y') {
			$SettingsOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/preferences.html">'.$MsgText[0][62].'</a><br>';
		}
		if ($Permissions[16] == 'y') {
			$SettingsOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/templates.html">'.$MsgText[0][63].'</a><br>';
		}
		if ($Permissions[8] == 'y') {
			$SettingsOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/settings.html">'.$MsgText[0][64].'</a><br>';
		}
		if ($Permissions[25] == 'y') {
			$SettingsOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/maintenancemode.html">'.$MsgText[0][685].'</a><br>';
		}
		
		
		if ($Permissions[22] == 'y') {
			$BackupOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/backup.html">'.$MsgText[0][583].'</a><br>';
		}
		if ($Permissions[23] == 'y') {
			$BackupOptions .= '&nbsp;- <a href="'.$MainURL . '/admin/backup-restore.html">'.$MsgText[0][584].'</a><br>';
		}
		
		
		
		if ($Permissions[2] == 'y' || $Permissions[18] == 'y' || $Permissions[100] == 'y') {
		
			$SiteContentSection = '<br><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_content.gif" width="23" height="20"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[0][67].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->

'.$SiteContentOptions.'

<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table>';
	
		}
		if ($Permissions[4] == 'y' || $Permissions[5] == 'y' || $Permissions[6] == 'y' || $Permissions[10] == 'y') { 
		
			$UsersAndPermissionsSection = '<br><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_usersandpermissions.gif" width="19" height="20"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[0][68].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->

'.$UsersAndPermissionsOptions.'

<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table>';
		
		}
		if ($Permissions[1] == 'y' || $Permissions[11] == 'y' || $Permissions[12] == 'y') { 
		
			$InformationSection = '<br><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_info.gif" width="21" height="20"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[0][69].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->

'.$InformationOptions.'

<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table>';		
		
		}
		if ($Permissions[15] == 'y' || $Permissions[13] == 'y' || $Permissions[7] == 'y' || $Permissions[8] == 'y') {
		
			$SettingsSection = '<br><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_settings.gif" width="23" height="20"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[0][70].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->

'.$SettingsOptions.'

<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table>';	
		
		}		
		if ($Permissions[22] == 'y' || $Permissions[23] == 'y') {
		
			$BackupSection = '<br><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_backup.gif" width="20" height="21"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[0][582].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->

'.$BackupOptions.'

<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table>';	
		
		}
		
		
		
		$PageContents .= '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="49%" height="100%" valign="top"><!-- left column -->
		
		
		<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td bgcolor="'.$Colors['Text'].'"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="'.$Colors['BG'].'"><table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td bgcolor="#ffffff"><div align="center"><img src="'.$ImagesURL.'/admin/admincp_account.gif" width="26" height="20"><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="36" height="1" alt=""></div></td><td width="100%" bgcolor="#ffffff"><font face="'.$FontFace.'" size="'.$FontSize.'" color="#000000"><b>'.$MsgText[0][65].'</b></font></td></tr><tr><td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr><td bgcolor="'.$Colors['BG'].'"><font face="'.$FontFace.'" size="'.$FontSize.'"><!-- contents -->

&nbsp;- <a href="'.$MainURL . '/profile-edit.html">'.$MsgText[0][66].'</a><br>
'.$NotificationsPrint.'

<!-- end contents --></font></td></tr></table></td></tr></table></td></tr></table></td></tr></table>


'.$SiteContentSection.'


'.$UsersAndPermissionsSection.'


'.$InformationSection.'


'.$SettingsSection.'


'.$BackupSection.'


'.$GeneralInformation.'	


<br><br><br>
		
		
		<!-- end left column --></td><td width="2%" height="100%"><!-- spacer column -->&nbsp;</td><td width="49%" height="100%" valign="top"><!-- right column -->

		
		'.$ModuleOptions.'
			
		'.$ModulesSummary.'
		
			


		<!-- end right column --></td></tr></table>
		
		
		
		';


		
		
		$PageContents .= '<br><br><br>';
		
		
	}
	else {
	
		RedirectToLogin();
		
	}				

	

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




?>
