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

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

?? controller.php

?? 簡介:一款免費開源的內容管理系統(CMS)
?? PHP
?? 第 1 頁 / 共 2 頁
字號:
<?php/*** @version		$Id: controller.php 10381 2008-06-01 03:35:53Z pasamio $* @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) {			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爽爽久久 | 亚洲午夜视频在线观看| 久久久久久久久蜜桃| 91精选在线观看| 欧洲av一区二区嗯嗯嗯啊| 9i看片成人免费高清| va亚洲va日韩不卡在线观看| 国产盗摄一区二区三区| 成人一区二区三区视频在线观看 | 国产精品成人在线观看| 国产亚洲一区二区三区在线观看| 欧美成人精精品一区二区频| 日韩女同互慰一区二区| 日韩三级免费观看| 欧美mv和日韩mv的网站| 久久先锋影音av| 国产色产综合色产在线视频| 国产三级欧美三级| 欧美激情自拍偷拍| 国产精品系列在线| 亚洲视频一二三| 亚洲在线视频一区| 午夜视频在线观看一区| 免费看欧美女人艹b| 狠狠色2019综合网| av在线不卡观看免费观看| 91麻豆国产福利在线观看| 欧美午夜精品理论片a级按摩| fc2成人免费人成在线观看播放 | 国产日韩在线不卡| 亚洲日本在线a| 日本特黄久久久高潮| 国产精品中文字幕欧美| 99国产欧美另类久久久精品| 99久久精品免费看国产| 亚洲制服欧美中文字幕中文字幕| 男女激情视频一区| 国产suv精品一区二区三区| 91玉足脚交白嫩脚丫在线播放| 在线精品视频一区二区三四| 国产精品私房写真福利视频| 久久午夜色播影院免费高清| 亚洲图片激情小说| 免费国产亚洲视频| 国产成人av网站| 在线免费观看视频一区| 欧美色精品天天在线观看视频| 欧美一级高清片| 中文字幕一区二区三区在线不卡 | 日韩vs国产vs欧美| 丁香一区二区三区| 欧美日韩精品欧美日韩精品| 国产婷婷色一区二区三区四区| 亚洲精品乱码久久久久久久久 | 亚洲在线中文字幕| 美腿丝袜亚洲一区| 国产一区免费电影| 555夜色666亚洲国产免| 国产精品久久三区| 久久aⅴ国产欧美74aaa| 国产99久久久国产精品| 91精品国产乱码| 一个色综合网站| jlzzjlzz欧美大全| 国产麻豆视频精品| 自拍视频在线观看一区二区| 欧美午夜宅男影院| 精品人伦一区二区色婷婷| 国产精品国产三级国产专播品爱网| 亚洲成人av中文| 国产传媒日韩欧美成人| 欧美夫妻性生活| 亚洲免费视频成人| 老色鬼精品视频在线观看播放| 成人app网站| 精品国产凹凸成av人网站| 丝袜美腿高跟呻吟高潮一区| 色综合久久九月婷婷色综合| 欧美一级日韩免费不卡| 亚洲乱码日产精品bd| 久久精品99国产精品日本| 色伊人久久综合中文字幕| 国产精品欧美一级免费| 蜜桃精品视频在线| 欧美日韩国产精选| 6080国产精品一区二区| 亚洲国产精品一区二区久久| 91国产成人在线| 亚洲另类春色国产| 色8久久精品久久久久久蜜| 亚洲视频一区二区免费在线观看| 懂色av一区二区夜夜嗨| 国产欧美日韩激情| 99这里都是精品| 亚洲欧美一区二区视频| 91黄视频在线观看| 亚洲成人自拍偷拍| 67194成人在线观看| 美女一区二区三区在线观看| 日韩精品一区二区三区中文精品| 久久精品国产99久久6| 亚洲精品一区二区三区在线观看| 精品一区免费av| 国产喷白浆一区二区三区| 懂色av噜噜一区二区三区av| 亚洲欧美国产高清| 欧美日韩精品综合在线| 蜜桃视频在线观看一区二区| 国产婷婷一区二区| 欧美综合亚洲图片综合区| 日韩福利电影在线| 国产无遮挡一区二区三区毛片日本| 不卡的av电影在线观看| 亚洲高清在线视频| 精品国产免费一区二区三区香蕉| 国产91丝袜在线播放0| 亚洲一级电影视频| 国产精品国产三级国产aⅴ中文 | 欧美精品自拍偷拍| 日本美女视频一区二区| 国产日韩视频一区二区三区| 色综合天天视频在线观看| 日韩国产精品91| 中日韩av电影| 日韩视频一区二区| 在线免费观看不卡av| 老鸭窝一区二区久久精品| 亚洲日本成人在线观看| 欧美电影免费观看高清完整版在线 | 中文字幕一区av| 美女久久久精品| 日本一区二区视频在线| 欧美色手机在线观看| 国产一区二区日韩精品| 亚洲一区二区免费视频| 国产人成一区二区三区影院| 欧美日韩国产片| av不卡在线播放| 国产精品18久久久| 日本不卡一区二区| 亚洲一线二线三线久久久| 国产视频一区在线播放| 日韩精品在线一区二区| 欧美日韩高清影院| 一本大道av一区二区在线播放| 国产馆精品极品| 日本不卡高清视频| 偷窥国产亚洲免费视频| 亚洲欧美另类综合偷拍| 中文字幕精品一区二区精品绿巨人 | 粉嫩av一区二区三区粉嫩| 91精品国产综合久久福利软件 | 亚洲你懂的在线视频| 欧美精品一区二| 91精品国产色综合久久久蜜香臀| 91亚洲精品一区二区乱码| 国产精品一区在线| 亚洲午夜久久久久久久久久久 | 午夜激情一区二区| 中文字幕字幕中文在线中不卡视频| 久久久三级国产网站| 欧美日韩精品一区二区三区| 欧美午夜精品理论片a级按摩| 91看片淫黄大片一级| av激情亚洲男人天堂| 成人午夜在线免费| 成人高清视频在线| 波波电影院一区二区三区| 国产精品午夜春色av| 日本亚洲最大的色成网站www| 亚洲一卡二卡三卡四卡无卡久久| 一区二区三区美女视频| 亚洲午夜国产一区99re久久| 亚洲香蕉伊在人在线观| 亚洲综合色自拍一区| 亚洲国产aⅴ成人精品无吗| 亚洲国产成人91porn| 日本亚洲电影天堂| 久久国产欧美日韩精品| 国产一区二区三区国产| 大陆成人av片| 在线欧美日韩精品| 91精品国产综合久久久蜜臀粉嫩 | 亚洲美女屁股眼交| 日韩精品亚洲一区二区三区免费| 国产美女在线观看一区| 欧美中文字幕久久| 国产视频911| 秋霞电影一区二区| 91官网在线免费观看| 中文字幕国产一区二区| 日本成人在线视频网站| 在线国产亚洲欧美| 中文字幕第一区第二区|