亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? controller.php

?? Joomla!是一套獲得過多個獎項的內容管理系統(Content Management System, CMS)。Joomla!采用PHP+MySQL數據庫開發
?? PHP
?? 第 1 頁 / 共 2 頁
字號:
<?php/*** @version		$Id: controller.php 10910 2008-09-05 19:41:09Z willebil $* @package		Joomla.Framework* @subpackage	Application* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.* @license		GNU/GPL, see LICENSE.php* Joomla! is free software. This version may have been modified pursuant* to the GNU General Public License, and as distributed it includes or* is derivative of works licensed under the GNU General Public License or* other free or open source software licenses.* See COPYRIGHT.php for copyright notices and details.*/// Check to ensure this file is within the rest of the frameworkdefined('JPATH_BASE') or die();/** * Base class for a Joomla Controller * * Controller (controllers are where you put all the actual code) Provides basic * functionality, such as rendering views (aka displaying templates). * * @abstract * @package		Joomla.Framework * @subpackage	Application * @since		1.5 */class JController extends JObject{	/**	 * The base path of the controller	 *	 * @var		string	 * @access 	protected	 */	var $_basePath = null;	/**	 * The name of the controller	 *	 * @var		array	 * @access	protected	 */	var $_name = null;	/**	 * Array of class methods	 *	 * @var	array	 * @access	protected	 */	var $_methods 	= null;	/**	 * Array of class methods to call for a given task.	 *	 * @var	array	 * @access	protected	 */	var $_taskMap 	= null;	/**	 * Current or most recent task to be performed.	 *	 * @var	string	 * @access	protected	 */	var $_task 		= null;	/**	 * The mapped task that was performed.	 *	 * @var	string	 * @access	protected	 */	var $_doTask 	= null;	/**	 * The set of search directories for resources (views).	 *	 * @var array	 * @access	protected	 */	var $_path = array(		'view'	=> array()	);	/**	 * URL for redirection.	 *	 * @var	string	 * @access	protected	 */	var $_redirect 	= null;	/**	 * Redirect message.	 *	 * @var	string	 * @access	protected	 */	var $_message 	= null;	/**	 * Redirect message type.	 *	 * @var	string	 * @access	protected	 */	var $_messageType 	= null;	/**	 * ACO Section for the controller.	 *	 * @var	string	 * @access	protected	 */	var $_acoSection 		= null;	/**	 * Default ACO Section value for the controller.	 *	 * @var	string	 * @access	protected	 */	var $_acoSectionValue 	= null;	/**	 * Constructor.	 *	 * @access	protected	 * @param	array An optional associative array of configuration settings.	 * Recognized key values include 'name', 'default_task', 'model_path', and	 * 'view_path' (this list is not meant to be comprehensive).	 * @since	1.5	 */	function __construct( $config = array() )	{		//Initialize private variables		$this->_redirect	= null;		$this->_message		= null;		$this->_messageType = 'message';		$this->_taskMap		= array();		$this->_methods		= array();		$this->_data		= array();		// Get the methods only for the final controller class		$thisMethods	= get_class_methods( get_class( $this ) );		$baseMethods	= get_class_methods( 'JController' );		$methods		= array_diff( $thisMethods, $baseMethods );		// Add default display method		$methods[] = 'display';		// Iterate through methods and map tasks		foreach ( $methods as $method )		{			if ( substr( $method, 0, 1 ) != '_' ) {				$this->_methods[] = strtolower( $method );				// auto register public methods as tasks				$this->_taskMap[strtolower( $method )] = $method;			}		}		//set the view name		if (empty( $this->_name ))		{			if (array_key_exists('name', $config))  {				$this->_name = $config['name'];			} else {				$this->_name = $this->getName();			}		}		// Set a base path for use by the controller		if (array_key_exists('base_path', $config)) {			$this->_basePath	= $config['base_path'];		} else {			$this->_basePath	= JPATH_COMPONENT;		}		// If the default task is set, register it as such		if ( array_key_exists( 'default_task', $config ) ) {			$this->registerDefaultTask( $config['default_task'] );		} else {			$this->registerDefaultTask( 'display' );		}		// set the default model search path		if ( array_key_exists( 'model_path', $config ) ) {			// user-defined dirs			$this->addModelPath($config['model_path']);		} else {			$this->addModelPath($this->_basePath.DS.'models');		}		// set the default view search path		if ( array_key_exists( 'view_path', $config ) ) {			// user-defined dirs			$this->_setPath( 'view', $config['view_path'] );		} else {			$this->_setPath( 'view', $this->_basePath.DS.'views' );		}	}	/**	 * Execute a task by triggering a method in the derived class.	 *	 * @access	public	 * @param	string The task to perform. If no matching task is found, the	 * '__default' task is executed, if defined.	 * @return	mixed|false The value returned by the called method, false in	 * error case.	 * @since	1.5	 */	function execute( $task )	{		$this->_task = $task;		$task = strtolower( $task );		if (isset( $this->_taskMap[$task] )) {			$doTask = $this->_taskMap[$task];		} elseif (isset( $this->_taskMap['__default'] )) {			$doTask = $this->_taskMap['__default'];		} else {			return JError::raiseError( 404, JText::_('Task ['.$task.'] not found') );		}		// Record the actual task being fired		$this->_doTask = $doTask;		// Make sure we have access		if ($this->authorize( $doTask ))		{			$retval = $this->$doTask();			return $retval;		}		else		{			return JError::raiseError( 403, JText::_('Access Forbidden') );		}	}	/**	 * Authorization check	 *	 * @access	public	 * @param	string	$task	The ACO Section Value to check access on	 * @return	boolean	True if authorized	 * @since	1.5	 */	function authorize( $task )	{		// Only do access check if the aco section is set		if ($this->_acoSection)		{			// If we have a section value set that trumps the passed task ???			if ($this->_acoSectionValue) {				// We have one, so set it and lets do the check				$task = $this->_acoSectionValue;			}			// Get the JUser object for the current user and return the authorization boolean			$user = & JFactory::getUser();			return $user->authorize( $this->_acoSection, $task );		}		else		{			// Nothing set, nothing to check... so obviously its ok :)			return true;		}	}	/**	 * Typical view method for MVC based architecture	 *	 * This function is provide as a default implementation, in most cases	 * you will need to override it in your own controllers.	 *	 * @access	public	 * @param	string	$cachable	If true, the view output will be cached	 * @since	1.5	 */	function display($cachable=false)	{		$document =& JFactory::getDocument();		$viewType	= $document->getType();		$viewName	= JRequest::getCmd( 'view', $this->getName() );		$viewLayout	= JRequest::getCmd( 'layout', 'default' );		$view = & $this->getView( $viewName, $viewType, '', array( 'base_path'=>$this->_basePath));		// Get/Create the model		if ($model = & $this->getModel($viewName)) {			// Push the model into the view (as default)			$view->setModel($model, true);		}		// Set the layout		$view->setLayout($viewLayout);		// Display the view		if ($cachable && $viewType != 'feed') {			global $option;			$cache =& JFactory::getCache($option, 'view');			$cache->get($view, 'display');		} else {			$view->display();		}	}	/**	 * Redirects the browser or returns false if no redirect is set.	 *	 * @access	public	 * @return	boolean	False if no redirect exists.	 * @since	1.5	 */	function redirect()	{		if ($this->_redirect) {			global $mainframe;			$mainframe->redirect( $this->_redirect, $this->_message, $this->_messageType );		}		return false;	}	/**	 * Method to get a model object, loading it if required.	 *	 * @access	public	 * @param	string	The model name. Optional.	 * @param	string	The class prefix. Optional.	 * @param	array	Configuration array for model. Optional.	 * @return	object	The model.	 * @since	1.5	 */	function &getModel( $name = '', $prefix = '', $config = array() )	{		if ( empty( $name ) ) {			$name = $this->getName();		}		if ( empty( $prefix ) ) {			$prefix = $this->getName() . 'Model';		}		if ( $model = & $this->_createModel( $name, $prefix, $config ) )		{			// task is a reserved state			$model->setState( 'task', $this->_task );			// Lets get the application object and set menu information if its available			$app	= &JFactory::getApplication();			$menu	= &$app->getMenu();			if (is_object( $menu ))			{				if ($item = $menu->getActive())				{

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩女优电影在线观看| 制服丝袜亚洲播放| 伦理电影国产精品| 一区二区国产盗摄色噜噜| 中文字幕免费在线观看视频一区| 欧美日韩高清在线播放| 欧美性大战xxxxx久久久| 色综合视频一区二区三区高清| 成人亚洲精品久久久久软件| 国产成人精品亚洲777人妖| 国产**成人网毛片九色 | 精品精品国产高清一毛片一天堂| 4438成人网| 91精品欧美一区二区三区综合在| 欧美精品第1页| 欧美一区二区三区播放老司机| 欧美日韩情趣电影| 这里只有精品99re| 5858s免费视频成人| 欧美v国产在线一区二区三区| ww亚洲ww在线观看国产| 欧美经典一区二区三区| 国产精品午夜免费| 最新日韩在线视频| 亚洲国产精品综合小说图片区| 一区二区三区在线高清| 日韩中文字幕亚洲一区二区va在线| 日韩av在线免费观看不卡| 韩国女主播一区| 成人动漫一区二区在线| 欧美日韩免费视频| 久久久www成人免费毛片麻豆| 亚洲欧洲av在线| 日韩精品一二三| 国产精品一二二区| 欧美三区在线观看| 久久色中文字幕| 亚洲va欧美va天堂v国产综合| 久久99精品久久久久婷婷| av不卡免费电影| 91精品国产91久久久久久一区二区 | 精品国产不卡一区二区三区| 国产欧美日韩久久| 午夜精品aaa| 99久久精品国产麻豆演员表| 欧美一级搡bbbb搡bbbb| 最新国产精品久久精品| 天堂一区二区在线免费观看| 夫妻av一区二区| 欧美一级在线免费| 欧美激情一区二区| 一区二区三区加勒比av| 国产一本一道久久香蕉| 欧美一区二区三区视频| 亚洲美女一区二区三区| 国产真实乱偷精品视频免| 欧美三级三级三级| 亚洲欧洲av在线| 国产在线不卡一卡二卡三卡四卡| 欧美性猛交xxxx黑人交| 欧美韩国日本不卡| 国产在线日韩欧美| 日韩欧美二区三区| 亚洲大尺度视频在线观看| 91在线视频观看| 18成人在线观看| 国产成人午夜视频| 久久综合九色综合欧美就去吻| 婷婷六月综合网| 精品视频资源站| 亚洲国产一区二区视频| 日本高清免费不卡视频| 亚洲日本乱码在线观看| 国产99久久久国产精品免费看| 精品美女在线观看| 国产在线一区观看| 久久免费国产精品| 国产精品亚洲一区二区三区妖精| 欧美videofree性高清杂交| 欧美aaaaaa午夜精品| 91精品国产综合久久香蕉的特点| 亚洲国产一区视频| 在线电影院国产精品| 视频一区视频二区中文字幕| 91.com视频| 久久爱另类一区二区小说| 日韩一区二区精品葵司在线| 免费视频最近日韩| 久久综合av免费| 激情综合网激情| 国产精品欧美经典| 日本久久一区二区三区| 午夜精品在线看| 日韩欧美的一区| 成人午夜精品一区二区三区| 亚洲人成人一区二区在线观看| 99视频在线观看一区三区| 亚洲日本在线a| 在线一区二区三区做爰视频网站| 一区二区成人在线视频| 欧美乱妇20p| 91在线免费视频观看| 亚洲黄网站在线观看| 欧美二区在线观看| 国产成人精品三级| 亚洲精品视频在线| 欧美一二三区在线观看| 国产999精品久久| 一区二区三区欧美| 欧美成人精精品一区二区频| 成人不卡免费av| 亚洲国产日产av| 日韩欧美一区二区在线视频| 国产**成人网毛片九色 | 91精品久久久久久久91蜜桃| 国产尤物一区二区| 亚洲午夜在线电影| 久久女同精品一区二区| 972aa.com艺术欧美| 日韩电影一区二区三区| 国产精品第13页| 69av一区二区三区| 成人国产精品免费观看动漫| 亚洲一区二区综合| 精品国产凹凸成av人网站| av在线播放不卡| 久久精品72免费观看| 亚洲欧美视频在线观看视频| 精品福利一二区| 欧美日韩国产综合一区二区三区| 裸体一区二区三区| 亚洲妇女屁股眼交7| 中文字幕一区二区三区四区| 久久一区二区三区四区| 欧美精品色综合| 色哟哟精品一区| 成人在线综合网| 国产一区视频网站| 日韩不卡一二三区| 亚洲1区2区3区视频| 欧美国产一区视频在线观看| 欧美电影精品一区二区 | 国产一区二区毛片| 亚洲一区在线电影| 综合久久久久久| 国产精品白丝在线| 中文字幕不卡在线| 国产喷白浆一区二区三区| 欧美v日韩v国产v| 日韩欧美资源站| 91精品国产综合久久精品麻豆| 91在线观看免费视频| av电影在线观看完整版一区二区| 国产成人av电影在线| 国产精品 欧美精品| 精品一区二区国语对白| 蜜臀久久99精品久久久久宅男| 丝袜美腿亚洲一区二区图片| 婷婷亚洲久悠悠色悠在线播放| 亚洲bt欧美bt精品| 蜜桃视频第一区免费观看| 美脚の诱脚舐め脚责91 | 欧美在线不卡视频| 一本到不卡精品视频在线观看| 99国产一区二区三精品乱码| 97精品视频在线观看自产线路二| av男人天堂一区| 欧美日韩卡一卡二| 制服.丝袜.亚洲.另类.中文| 精品国精品自拍自在线| 久久亚洲春色中文字幕久久久| 久久精品日韩一区二区三区| 1000精品久久久久久久久| 亚洲免费观看高清| 日韩黄色免费网站| 国产精品99久久久久久宅男| 成人h精品动漫一区二区三区| 欧洲色大大久久| 日韩精品一区二区三区中文精品| 精品国产乱码91久久久久久网站| 国产欧美日韩麻豆91| 亚洲欧洲日韩综合一区二区| 亚洲在线视频免费观看| 国模少妇一区二区三区| 99国产精品久久久久久久久久 | 成人开心网精品视频| 色94色欧美sute亚洲线路二| 欧美一区二区视频观看视频| 国产精品免费aⅴ片在线观看| 激情综合网天天干| 日本韩国欧美国产| 精品99999| 一区二区三国产精华液| 激情小说欧美图片| 欧美亚一区二区| 久久女同性恋中文字幕| 亚洲h动漫在线| 91性感美女视频| 久久无码av三级| 天天色综合天天|