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

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

?? controller.php

?? 沒什么功能
?? 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一区二区三区免费野_久草精品视频
欧美系列在线观看| 色悠悠亚洲一区二区| 亚洲欧美日韩中文播放 | 91精品国产色综合久久不卡蜜臀| 国模娜娜一区二区三区| 亚洲综合成人在线视频| 久久久久国产精品免费免费搜索| 欧美色图第一页| 粉嫩av亚洲一区二区图片| 日韩av电影一区| 一区二区三区在线视频播放| 日本一区二区三区四区在线视频| 欧美一区二区三区视频在线观看| 91视频.com| 国产91精品精华液一区二区三区| 日本不卡一二三| 天堂一区二区在线免费观看| 亚洲欧美中日韩| 中文字幕欧美激情一区| 久久亚洲综合色| 欧美大片在线观看| 91精品国产品国语在线不卡| 在线视频中文字幕一区二区| www.性欧美| 波多野结衣中文字幕一区| 国产呦萝稀缺另类资源| 九九**精品视频免费播放| 日韩成人免费看| 亚洲成人动漫精品| 亚洲成人免费电影| 亚洲成av人片www| 亚洲欧美aⅴ...| 亚洲欧美偷拍另类a∨色屁股| 国产女人18毛片水真多成人如厕 | 色系网站成人免费| 不卡av在线网| 91一区二区在线观看| 不卡电影免费在线播放一区| 北条麻妃国产九九精品视频| 国产91在线观看| 国产宾馆实践打屁股91| 国产suv精品一区二区883| 国产很黄免费观看久久| 国产精品一二一区| 国产a久久麻豆| 成人av在线观| 色婷婷狠狠综合| 欧美日韩精品福利| 欧美一区二区视频在线观看2022| 在线不卡免费欧美| 久久综合国产精品| 久久网站热最新地址| 国产午夜精品一区二区三区视频 | 亚洲欧洲无码一区二区三区| 中文字幕亚洲一区二区av在线 | 色视频一区二区| 在线观看欧美精品| 在线播放亚洲一区| 日韩精品一区在线| 国产日韩一级二级三级| 亚洲视频综合在线| 亚洲成人免费看| 久草这里只有精品视频| 丰满亚洲少妇av| 在线一区二区视频| 6080亚洲精品一区二区| 精品乱码亚洲一区二区不卡| 亚洲国产成人私人影院tom| 亚洲综合在线免费观看| 男女视频一区二区| 成人黄色免费短视频| 欧美日韩激情一区二区三区| 精品国产伦一区二区三区免费| 国产精品无圣光一区二区| 亚洲成人免费在线| 国产精品羞羞答答xxdd| 欧美性一级生活| 精品国产乱码久久久久久久久 | 欧美一区二区三区思思人| 国产亚洲视频系列| 亚洲一卡二卡三卡四卡五卡| 免费黄网站欧美| 91色在线porny| 欧美日韩国产经典色站一区二区三区| 日韩欧美一区电影| 日本一区二区电影| 中文字幕一区二区三| 亚洲精品日产精品乱码不卡| 午夜av一区二区三区| 韩国毛片一区二区三区| av在线这里只有精品| 欧美丰满美乳xxx高潮www| 亚洲国产高清aⅴ视频| 亚洲女爱视频在线| 蜜臀99久久精品久久久久久软件| 国产高清在线观看免费不卡| 91视频在线观看| 日韩区在线观看| 成人欧美一区二区三区白人 | 国产精品天美传媒| 日韩 欧美一区二区三区| 国产成人免费在线视频| 在线免费观看一区| 久久在线免费观看| 亚洲大型综合色站| 精品夜夜嗨av一区二区三区| 成人精品一区二区三区四区 | 日韩国产在线一| 成人国产精品免费观看视频| 国产亚洲综合色| 日韩电影在线观看一区| 成人精品国产福利| 日韩一区二区免费在线电影| 亚洲色图视频网站| 国产精品69毛片高清亚洲| 99国产精品久久久久久久久久久 | 亚洲天堂2014| 老鸭窝一区二区久久精品| 国产69精品久久久久777| 欧美一区二区三区免费视频 | 欧美日韩免费在线视频| 国产欧美综合在线| 日韩av不卡在线观看| 欧洲一区二区三区免费视频| 国产精品美女久久久久久| 国产真实乱子伦精品视频| 欧美三级视频在线| 亚洲天堂网中文字| 国产不卡免费视频| xfplay精品久久| 日韩激情一区二区| 日韩一区二区视频在线观看| 一区二区三区成人| av成人免费在线观看| 国产人成亚洲第一网站在线播放| 美女视频一区在线观看| 欧美日韩国产综合久久 | 中文字幕乱码一区二区免费| 久久99精品久久久久| 91麻豆精品国产91久久久久久久久| 亚洲视频一二三区| 国产原创一区二区三区| 国产日韩欧美麻豆| 国产成人精品在线看| 精品日韩av一区二区| 免费在线观看一区| 欧美一级二级在线观看| 日韩中文字幕一区二区三区| 日韩女优av电影| 麻豆成人免费电影| 日韩美女视频在线| 另类小说视频一区二区| 日韩欧美亚洲一区二区| 美女国产一区二区三区| 久久久久99精品一区| 国产成人三级在线观看| 欧美高清一级片在线观看| 成人黄色777网| 亚洲男人的天堂一区二区| 不卡的av网站| 肉丝袜脚交视频一区二区| 欧美一级欧美三级| 久久国产福利国产秒拍| 欧美大片在线观看一区二区| 国产在线一区二区| 国产亚洲一二三区| 9色porny自拍视频一区二区| 中文字幕一区二区不卡| 色网综合在线观看| 日精品一区二区| 久久先锋影音av鲁色资源网| 国产白丝网站精品污在线入口| 一区二区激情视频| 欧美久久久久久久久| 韩国欧美国产1区| 国产精品国产三级国产aⅴ中文 | 色综合天天狠狠| 亚洲福利视频导航| 日韩一区二区三区免费看| 婷婷国产在线综合| 国产精品免费网站在线观看| 欧美在线一二三四区| 成人综合激情网| 亚洲精品国产一区二区三区四区在线| 欧美日韩精品一二三区| 蜜臀精品一区二区三区在线观看 | 2021中文字幕一区亚洲| 国产91精品精华液一区二区三区| 亚洲综合丝袜美腿| 日韩欧美激情一区| 成人av资源在线观看| 午夜精品福利在线| 久久嫩草精品久久久精品| 国产99久久久久久免费看农村| 天堂久久久久va久久久久| 久久九九全国免费| 欧美日韩国产高清一区二区| 国产精品综合在线视频| 亚洲大型综合色站| 亚洲色图在线视频|