<?

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



	// ========================================================================================
	// Manage Modules
	// ========================================================================================
	
	$PageTitle = '<img src="'.$ImagesURL.'/admin/admincp_modules.gif" width="21" height="20"> '.$MsgText[0][49];
	$BrowserTitle = $MsgText[0][49];
	$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="' . $MainURL . '/options.html">'.$MsgText[0][4].'</a> > '.$MsgText[0][49];
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[14] == 'y') {
		
			$LicenseLevels[1] = $MsgText[0][23];
			$LicenseLevels[2] = $MsgText[0][24];
			$LicenseLevels[3] = $MsgText[0][25];
			$LicenseLevels[4] = 'Special';
			
			$MCA = $Settings[rc('115103101',4)];
			$MCB = $Settings[rc('077067066',5)];
			
			$ModulesRemaining = ($MCA-$MCB);
			
			$ModulesArray = array('cl','mb','pg','cs','nl','gb','na','lm','ec');
			
			for ($i = 0; $i < count($ModulesArray); $i++) {
			
				if ($IM[$ModulesArray[$i]] == 'y') {
					$StatusPrint[$ModulesArray[$i]]	= '<font color="#00cc33">'.$MsgText[0][487].'</font><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="1" height="6" alt=""><br>[<a href="'.$MainURL.'/admin/modules-uninstall/'.$ModulesArray[$i].'">'.$MsgText[0][490].'</a>]';		
				}
				else {
				
					if ($ModulesRemaining > 0) {
					
						$StatusPrint[$ModulesArray[$i]]	= '<font color="#ff3300">'.$MsgText[0][488].'</font><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="1" height="6" alt=""><br>[<a href="'.$MainURL.'/admin/modules-install/'.$ModulesArray[$i].'">'.$MsgText[0][489].'</a>]';		
					
					}
					else {
					
						$StatusPrint[$ModulesArray[$i]]	= '<font color="#ff3300">'.$MsgText[0][488].'</font>';
					
					}
								
				}
			
			}
			
			
			if ($MCA == 1) {
				$MCASuffixPrint = $MsgText[0][491];
			}
			else {
				$MCASuffixPrint = $MsgText[0][492];
			}
			
												
			$PageContents = '<br><b>'.$MsgText[0][21].': '.$LicenseLevels[$Settings['l'.'v'.'l']].' ('.$MCA.' '.$MCASuffixPrint.')<br><br>'.$MsgText[0][493].': '.$MCB.'<br>'.$MsgText[0][494].': '.$ModulesRemaining.'</b><br><br><br><b>'.$MsgText[0][495].':</b><br><br><table border="0" cellpadding="3" cellspacing="0">
    <tr>
      <td width="135" align="center"><font face="'.$FontFace.'" size="'.$FontSize.'">'.$StatusPrint['cl'].'</font></td>
	  <td>&nbsp;&nbsp;&nbsp;</td>
      <td><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[1][1].'</b><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br><font size="'.$FontSize.'">'.$MsgText[1][5].'</font></font></td>
    </tr>
	 <tr>
      <td colspan="3">&nbsp;</td>
    </tr>
	<tr>
      <td align="center"><font face="'.$FontFace.'" size="'.$FontSize.'">'.$StatusPrint['mb'].'</font></td>
	  <td>&nbsp;&nbsp;&nbsp;</td>
      <td><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[2][1].'</b><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br><font size="'.$FontSize.'">'.$MsgText[2][136].'</font></font></td>
    </tr>
	<tr>
      <td colspan="3">&nbsp;</td>
    </tr>
	<tr>
      <td align="center"><font face="'.$FontFace.'" size="'.$FontSize.'">'.$StatusPrint['pg'].'</font></td>
	  <td>&nbsp;&nbsp;&nbsp;</td>
      <td><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[3][1].'</b><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br><font size="'.$FontSize.'">'.$MsgText[3][5].'</font></font></td>
    </tr>
	<tr>
      <td colspan="3">&nbsp;</td>
    </tr>
	<tr>
      <td align="center"><font face="'.$FontFace.'" size="'.$FontSize.'">'.$StatusPrint['cs'].'</font></td>
	  <td>&nbsp;&nbsp;&nbsp;</td>
      <td><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[4][1].'</b><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br><font size="'.$FontSize.'">'.$MsgText[4][9].'</font></font></td>
    </tr>
	<tr>
      <td colspan="3">&nbsp;</td>
    </tr>
	<tr>
      <td align="center"><font face="'.$FontFace.'" size="'.$FontSize.'">'.$StatusPrint['nl'].'</font></td>
	  <td>&nbsp;&nbsp;&nbsp;</td>
      <td><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[5][1].'</b><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br><font size="'.$FontSize.'">'.$MsgText[5][9].'</font></font></td>
    </tr>
	<tr>
      <td colspan="3">&nbsp;</td>
    </tr>
	<tr>
      <td align="center"><font face="'.$FontFace.'" size="'.$FontSize.'">'.$StatusPrint['gb'].'</font></td>
	  <td>&nbsp;&nbsp;&nbsp;</td>
      <td><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[6][1].'</b><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br><font size="'.$FontSize.'">'.$MsgText[6][3].'</font></font></td>
    </tr>
	<tr>
      <td colspan="3">&nbsp;</td>
    </tr>
	<tr>
      <td align="center"><font face="'.$FontFace.'" size="'.$FontSize.'">'.$StatusPrint['na'].'</font></td>
	  <td>&nbsp;&nbsp;&nbsp;</td>
      <td><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[7][1].'</b><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br><font size="'.$FontSize.'">'.$MsgText[7][4].'</font></font></td>
    </tr>
	<tr>
      <td colspan="3">&nbsp;</td>
    </tr>
	<tr>
      <td align="center"><font face="'.$FontFace.'" size="'.$FontSize.'">'.$StatusPrint['lm'].'</font></td>
	  <td>&nbsp;&nbsp;&nbsp;</td>
      <td><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[8][1].'</b><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br><font size="'.$FontSize.'">'.$MsgText[8][5].'</font></font></td>
    </tr>
	<tr>
      <td colspan="3">&nbsp;</td>
    </tr>
	<tr>
      <td align="center"><font face="'.$FontFace.'" size="'.$FontSize.'">'.$StatusPrint['ec'].'</font></td>
	  <td>&nbsp;&nbsp;&nbsp;</td>
      <td><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[9][1].'</b><br><img src="'.$ImagesURL.'/admin/spacer.gif" border="0" width="1" height="2" alt=""><br><font size="'.$FontSize.'">'.$MsgText[9][5].'</font></font></td>
    </tr>
	
</table><br><br><b>'.$MsgText[0][496].'</b>';
				
	
		}
		else {
		
			$PageContents = $MsgText[0][97];
		
		}

	}
	else {
	
		RedirectToLogin();
	
	}
	

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




?>
