亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
久久精品国产精品亚洲精品 | 精品国产污网站| 久久免费精品国产久精品久久久久| 中文字幕二三区不卡| 日韩精品成人一区二区三区| 福利一区福利二区| 日韩欧美在线网站| 亚洲一区二区三区美女| 丰满亚洲少妇av| 久久久综合精品| 日本va欧美va精品发布| 色婷婷综合久久久中文字幕| 精品粉嫩aⅴ一区二区三区四区| 亚洲午夜视频在线观看| 成人a区在线观看| 日韩欧美一二区| 性欧美大战久久久久久久久| 91麻豆swag| 国产精品热久久久久夜色精品三区| 美日韩黄色大片| 欧美日韩免费视频| 一区二区理论电影在线观看| 国产不卡在线一区| 久久蜜桃香蕉精品一区二区三区| 亚洲成人动漫一区| 欧美日韩久久久| 亚洲自拍另类综合| 日本电影亚洲天堂一区| 国产精品国产三级国产| 成人动漫一区二区在线| 国产日韩欧美一区二区三区综合 | 亚洲少妇30p| 成人午夜短视频| 亚洲国产成人一区二区三区| 国产美女娇喘av呻吟久久| 日韩欧美一区在线观看| 青娱乐精品在线视频| 6080午夜不卡| 美国三级日本三级久久99| 日韩一区二区中文字幕| 美女爽到高潮91| 亚洲精品在线电影| 国产麻豆成人精品| 国产精品家庭影院| 色噜噜狠狠一区二区三区果冻| 一区二区三区在线观看国产| 在线观看视频欧美| 蜜桃视频免费观看一区| 精品国产第一区二区三区观看体验| 精品一区二区免费在线观看| 日韩欧美第一区| 岛国一区二区在线观看| 日韩美女久久久| 欧美三级乱人伦电影| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美刺激脚交jootjob| 国产成人午夜电影网| 自拍偷在线精品自拍偷无码专区| 91福利国产成人精品照片| 免费精品视频在线| 国产精品午夜在线观看| 在线观看av不卡| 久久机这里只有精品| 国产精品欧美经典| 51久久夜色精品国产麻豆| 9i在线看片成人免费| 国产精品嫩草99a| 欧美日韩国产不卡| 国产盗摄一区二区三区| 亚洲一区二区三区视频在线播放| 欧美一区二区三区电影| 国产91精品露脸国语对白| 亚洲最新视频在线观看| 精品国产乱码久久久久久老虎| 欧美在线一区二区| 激情综合五月天| 亚洲乱码国产乱码精品精可以看 | 久久亚洲私人国产精品va媚药| gogo大胆日本视频一区| 日本午夜精品视频在线观看| 国产精品国产自产拍高清av王其| 欧美日韩精品一区视频| 成人高清视频在线| 久久99精品久久久久久动态图 | 99r精品视频| 日本vs亚洲vs韩国一区三区| 亚洲日本青草视频在线怡红院| 欧美电影免费观看高清完整版在线 | 91精品国产麻豆国产自产在线 | 欧美日韩你懂得| 国产成人精品午夜视频免费| 午夜久久久久久电影| 国产精品高潮呻吟| 亚洲精品在线一区二区| 欧美丰满嫩嫩电影| 日本韩国欧美一区| 成人av免费在线播放| 国产美女精品一区二区三区| 日韩国产欧美在线视频| 亚洲女与黑人做爰| 久久精品无码一区二区三区| 日韩一级精品视频在线观看| 在线这里只有精品| 色偷偷久久一区二区三区| 成人毛片老司机大片| 国产一区二区三区不卡在线观看| 日韩中文字幕91| 亚洲一区二区在线免费观看视频| 亚洲不卡一区二区三区| 亚洲国产日韩a在线播放性色| 中文字幕一区二区三区色视频| 日本一二三不卡| 欧美国产日韩在线观看| 国产日韩欧美综合在线| 国产三级一区二区| 国产亚洲综合性久久久影院| 国产亚洲欧美一级| 国产亚洲一区二区在线观看| 日韩欧美中文字幕一区| 精品久久久久香蕉网| xnxx国产精品| 久久精品欧美日韩| 国产精品国产a级| 亚洲另类春色校园小说| 亚洲综合丁香婷婷六月香| 亚洲欧美日本在线| 亚洲综合色成人| 日本中文字幕一区二区视频| 欧美aa在线视频| 国产在线精品国自产拍免费| 国产成人小视频| 日本乱码高清不卡字幕| 欧美亚洲国产一区二区三区| 欧美日韩国产首页在线观看| 欧美一区三区四区| 久久久久国产精品麻豆| 国产精品久久久久久久裸模| 依依成人综合视频| 看片的网站亚洲| 成人少妇影院yyyy| 欧美性感一区二区三区| 91精品国产综合久久久久久| 精品欧美久久久| 国产精品午夜在线| 精品一区二区三区免费| 国产精品亚洲综合一区在线观看| av午夜一区麻豆| 91麻豆精品国产91| 国产精品另类一区| 午夜精品久久久久久久99樱桃| 国产乱理伦片在线观看夜一区| 99r精品视频| 日韩三区在线观看| 最新欧美精品一区二区三区| 亚洲国产精品嫩草影院| 国产不卡在线视频| 91精品午夜视频| 中文字幕欧美三区| 免费看日韩精品| 色94色欧美sute亚洲线路一ni | 久久亚洲免费视频| 亚洲黄色免费电影| 国产麻豆日韩欧美久久| 欧美亚洲一区三区| 中文子幕无线码一区tr| 免费观看91视频大全| 高清成人免费视频| 91精品国产综合久久蜜臀| 亚洲欧洲国产日本综合| 国产一区二区三区久久悠悠色av| 色婷婷激情综合| 欧美96一区二区免费视频| 成人毛片在线观看| 久久亚洲一区二区三区明星换脸| 婷婷夜色潮精品综合在线| 亚洲chinese男男1069| 国产一区日韩二区欧美三区| 欧美色电影在线| 国产精品福利一区二区三区| 狠狠色伊人亚洲综合成人| 欧美色精品在线视频| 亚洲人精品一区| 成人免费毛片嘿嘿连载视频| 久久亚洲免费视频| 狠狠色综合日日| 欧美激情艳妇裸体舞| 国产一区二区在线免费观看| 欧美一区二区三区四区久久 | 91视频91自| 欧美高清在线视频| 国产另类ts人妖一区二区| 日韩一卡二卡三卡| 麻豆专区一区二区三区四区五区| 欧洲激情一区二区| 亚洲一区免费视频| 91成人在线观看喷潮| 亚洲视频一区在线| 色婷婷久久一区二区三区麻豆| 久久精品一区蜜桃臀影院| 国产精品一区二区x88av|