The Control Panel for the Administrator is a separate file, cpanel.php, that is included with the template. It is a separate file to allow for customisation of this area as different sites and users are likely to have different needs for this valuable piece of screen real estate.
The Control Panel file does not need to be included but if it is included it will simply display any Administrator Modules published in the "cpanel" position.
The cpanel.php file could be as simple as the following example:<?php
/**
- @version $ Id: cpanel.php,v 1.3 2004/08/12 08:29:21 rcastley Exp $
- @package Mambo_4.5
- @copyright (C) 2000 - 2006 Mambo Foundation, Inc.
- @license http://www.gnu.org/copyleft/gpl.html
GNU/GPL
- Mambo is Free Software
*/
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
?>
<table class="adminform">
<tr>
<td width="100%" valign="top">
<?php mosLoadAdminModules( 'cpanel', 1 ); ?>
</td>
</tr>
</table>
NOTE: This example relates to versions <=4.6.