| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: helper.php 22952 2012-03-27 00:40:16Z dextercowley $ 4 * @package Joomla 5 * @copyright Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved. 6 * @license GNU/GPL, see LICENSE.php 7 * Joomla! is free software. This version may have been modified pursuant 8 * to the GNU General Public License, and as distributed it includes or 9 * is derivative of works licensed under the GNU General Public License or 10 * other free or open source software licenses. 11 * See COPYRIGHT.php for copyright notices and details. 12 */ 13 14 // no direct access 15 defined( '_JEXEC' ) or die( 'Restricted access' ); 16 17 /** 18 * Joomla! Administrator Application helper class 19 * 20 * Provide many supporting API functions 21 * 22 * @package Joomla 23 * @final 24 */ 25 class JAdministratorHelper 26 { 27 /** 28 * Return the application option string [main component] 29 * 30 * @access public 31 * @return string Option 32 * @since 1.5 33 */ 34 function findOption() 35 { 36 $option = strtolower(JRequest::getCmd('option')); 37 38 $user =& JFactory::getUser(); 39 if (!$user->authorize('login', 'administrator')) { 40 $option = 'com_login'; 41 } 42 43 if(empty($option)) { 44 $option = 'com_cpanel'; 45 } 46 47 JRequest::setVar('option', $option); 48 return $option; 49 } 50 } 51 52 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |