Annotation of /mambo/trunk/administrator/components/com_admin/admin.admin.php
Parent Directory
|
Revision Log
Revision 1 - (view) (download)
| 1 : | root | 1 | <?php |
| 2 : | /** | ||
| 3 : | * @version $Id: admin.admin.php,v 1.1 2005/07/22 01:51:58 eddieajau Exp $ | ||
| 4 : | * @package Mambo | ||
| 5 : | * @subpackage Admin | ||
| 6 : | * @copyright (C) 2000 - 2005 Miro International Pty Ltd | ||
| 7 : | * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | ||
| 8 : | * Mambo is Free Software | ||
| 9 : | */ | ||
| 10 : | |||
| 11 : | /** ensure this file is being included by a parent file */ | ||
| 12 : | defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); | ||
| 13 : | require_once( $mainframe->getPath( 'admin_html' ) ); | ||
| 14 : | |||
| 15 : | switch ($task) { | ||
| 16 : | |||
| 17 : | case 'redirect': | ||
| 18 : | $goto = trim( strtolower( mosGetParam( $_REQUEST, 'link' ) ) ); | ||
| 19 : | if ($goto == 'null') { | ||
| 20 : | $msg = 'There is no link associated with this item'; | ||
| 21 : | mosRedirect( 'index2.php?option=com_admin&task=listcomponents', $msg ); | ||
| 22 : | exit(); | ||
| 23 : | } | ||
| 24 : | $goto = str_replace( "'", '', $goto ); | ||
| 25 : | mosRedirect($goto); | ||
| 26 : | break; | ||
| 27 : | |||
| 28 : | case 'listcomponents': | ||
| 29 : | HTML_admin_misc::ListComponents(); | ||
| 30 : | break; | ||
| 31 : | |||
| 32 : | case 'sysinfo': | ||
| 33 : | HTML_admin_misc::system_info( $version, $option ); | ||
| 34 : | break; | ||
| 35 : | |||
| 36 : | case 'help': | ||
| 37 : | HTML_admin_misc::help(); | ||
| 38 : | break; | ||
| 39 : | |||
| 40 : | case 'preview': | ||
| 41 : | HTML_admin_misc::preview(); | ||
| 42 : | break; | ||
| 43 : | |||
| 44 : | case 'preview2': | ||
| 45 : | HTML_admin_misc::preview( 1 ); | ||
| 46 : | break; | ||
| 47 : | |||
| 48 : | case 'cpanel': | ||
| 49 : | default: | ||
| 50 : | HTML_admin_misc::controlPanel(); | ||
| 51 : | break; | ||
| 52 : | |||
| 53 : | } | ||
| 54 : | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

