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

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

?? controller.php

?? Joomla!除了具有新聞/文章管理
?? PHP
?? 第 1 頁 / 共 2 頁
字號:
<?php/** * @version		$Id: controller.php 10878 2008-08-30 17:29:13Z willebil $ * @package		Joomla * @subpackage	Modules * @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. */// no direct accessdefined( '_JEXEC' ) or die( 'Restricted access' );jimport( 'joomla.application.component.controller' );$client	= JRequest::getVar('client', 0, '', 'int');if ($client == 1) {	JSubMenuHelper::addEntry(JText::_('Site'), 'index.php?option=com_modules&client_id=0');	JSubMenuHelper::addEntry(JText::_('Administrator'), 'index.php?option=com_modules&client=1', true );} else {	JSubMenuHelper::addEntry(JText::_('Site'), 'index.php?option=com_modules&client_id=0', true );	JSubMenuHelper::addEntry(JText::_('Administrator'), 'index.php?option=com_modules&client=1');}class ModulesController extends JController{	/**	 * Constructor	 */	function __construct( $config = array() )	{		parent::__construct( $config );		// Register Extra tasks		$this->registerTask( 'apply', 			'save' );		$this->registerTask( 'unpublish', 		'publish' );		$this->registerTask( 'orderup', 		'reorder' );		$this->registerTask( 'orderdown', 		'reorder' );		$this->registerTask( 'accesspublic', 	'access' );		$this->registerTask( 'accessregistered','access' );		$this->registerTask( 'accessspecial',	'access' );	}	/**	 * Compiles a list of installed or defined modules	 */	function view()	{		global $mainframe;		// Initialize some variables		$db		=& JFactory::getDBO();		$client	=& JApplicationHelper::getClientInfo(JRequest::getVar('client', '0', '', 'int'));		$option	= 'com_modules';		$filter_order		= $mainframe->getUserStateFromRequest( $option.'filter_order',		'filter_order',		'm.position',	'cmd' );		$filter_order_Dir	= $mainframe->getUserStateFromRequest( $option.'filter_order_Dir',	'filter_order_Dir',	'',				'word' );		$filter_state		= $mainframe->getUserStateFromRequest( $option.'filter_state',		'filter_state',		'',				'word' );		$filter_position	= $mainframe->getUserStateFromRequest( $option.'filter_position',	'filter_position',	'',				'cmd' );		$filter_type		= $mainframe->getUserStateFromRequest( $option.'filter_type',		'filter_type',		'',				'cmd' );		$filter_assigned	= $mainframe->getUserStateFromRequest( $option.'filter_assigned',	'filter_assigned',	'',				'cmd' );		$search				= $mainframe->getUserStateFromRequest( $option.'search',			'search',			'',				'string' );		$search				= JString::strtolower( $search );		$limit		= $mainframe->getUserStateFromRequest( 'global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int' );		$limitstart	= $mainframe->getUserStateFromRequest( $option.'.limitstart', 'limitstart', 0, 'int' );		$where[] = 'm.client_id = '.(int) $client->id;		$joins[] = 'LEFT JOIN #__users AS u ON u.id = m.checked_out';		$joins[] = 'LEFT JOIN #__groups AS g ON g.id = m.access';		$joins[] = 'LEFT JOIN #__modules_menu AS mm ON mm.moduleid = m.id';		// used by filter		if ( $filter_assigned ) {			$joins[] = 'LEFT JOIN #__templates_menu AS t ON t.menuid = mm.menuid';			$where[] = 't.template = '.$db->Quote($filter_assigned);		}		if ( $filter_position ) {			$where[] = 'm.position = '.$db->Quote($filter_position);		}		if ( $filter_type ) {			$where[] = 'm.module = '.$db->Quote($filter_type);		}		if ( $search ) {			$where[] = 'LOWER( m.title ) LIKE '.$db->Quote( '%'.$db->getEscaped( $search, true ).'%', false );		}		if ( $filter_state ) {			if ( $filter_state == 'P' ) {				$where[] = 'm.published = 1';			} else if ($filter_state == 'U' ) {				$where[] = 'm.published = 0';			}		}		$where 		= ' WHERE ' . implode( ' AND ', $where );		$join 		= ' ' . implode( ' ', $joins );		$orderby 	= ' ORDER BY '. $filter_order .' '. $filter_order_Dir .', m.ordering ASC';		// get the total number of records		$query = 'SELECT COUNT(DISTINCT m.id)'		. ' FROM #__modules AS m'		. $join		. $where		;		$db->setQuery( $query );		$total = $db->loadResult();		jimport('joomla.html.pagination');		$pageNav = new JPagination( $total, $limitstart, $limit );		$query = 'SELECT m.*, u.name AS editor, g.name AS groupname, MIN(mm.menuid) AS pages'		. ' FROM #__modules AS m'		. $join		. $where		. ' GROUP BY m.id'		. $orderby		;		$db->setQuery( $query, $pageNav->limitstart, $pageNav->limit );		$rows = $db->loadObjectList();		if ($db->getErrorNum()) {			echo $db->stderr();			return false;		}		// get list of Positions for dropdown filter		$query = 'SELECT m.position AS value, m.position AS text'		. ' FROM #__modules as m'		. ' WHERE m.client_id = '.(int) $client->id		. ' GROUP BY m.position'		. ' ORDER BY m.position'		;		$positions[] = JHTML::_('select.option',  '0', '- '. JText::_( 'Select Position' ) .' -' );		$db->setQuery( $query );		$positions = array_merge( $positions, $db->loadObjectList() );		$lists['position']	= JHTML::_('select.genericlist',   $positions, 'filter_position', 'class="inputbox" size="1" onchange="this.form.submit()"', 'value', 'text', "$filter_position" );		// get list of Positions for dropdown filter		$query = 'SELECT module AS value, module AS text'		. ' FROM #__modules'		. ' WHERE client_id = '.(int) $client->id		. ' GROUP BY module'		. ' ORDER BY module'		;		$db->setQuery( $query );		$types[] 		= JHTML::_('select.option',  '0', '- '. JText::_( 'Select Type' ) .' -' );		$types 			= array_merge( $types, $db->loadObjectList() );		$lists['type']	= JHTML::_('select.genericlist',   $types, 'filter_type', 'class="inputbox" size="1" onchange="this.form.submit()"', 'value', 'text', "$filter_type" );		// state filter		$lists['state']	= JHTML::_('grid.state',  $filter_state );		// template assignment filter		$query = 'SELECT DISTINCT(template) AS text, template AS value'.				' FROM #__templates_menu' .				' WHERE client_id = '.(int) $client->id;		$db->setQuery( $query );		$assigned[]		= JHTML::_('select.option',  '0', '- '. JText::_( 'Select Template' ) .' -' );		$assigned 		= array_merge( $assigned, $db->loadObjectList() );		$lists['assigned']	= JHTML::_('select.genericlist',   $assigned, 'filter_assigned', 'class="inputbox" size="1" onchange="this.form.submit()"', 'value', 'text', "$filter_assigned" );		// table ordering		$lists['order_Dir']	= $filter_order_Dir;		$lists['order']		= $filter_order;		// search filter		$lists['search']= $search;		require_once( JApplicationHelper::getPath( 'admin_html' ) );		HTML_modules::view( $rows, $client, $pageNav, $lists );	}	/**	* Compiles information to add or edit a module	* @param string The current GET/POST option	* @param integer The unique id of the record to edit	*/	function copy()	{		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize some variables		$db 	=& JFactory::getDBO();		$client	=& JApplicationHelper::getClientInfo(JRequest::getVar('client', '0', '', 'int'));		$this->setRedirect( 'index.php?option=com_modules&client='.$client->id );		$cid	= JRequest::getVar( 'cid', array(), 'post', 'array' );		$n		= count( $cid );		if ($n == 0) {			return JError::raiseWarning( 500, JText::_( 'No items selected' ) );		}		$row 	=& JTable::getInstance('module');		$tuples	= array();		foreach ($cid as $id)		{			// load the row from the db table			$row->load( (int) $id );			$row->title 		= JText::sprintf( 'Copy of', $row->title );			$row->id 			= 0;			$row->iscore 		= 0;			$row->published 	= 0;			if (!$row->check()) {				return JError::raiseWarning( 500, $row->getError() );			}			if (!$row->store()) {				return JError::raiseWarning( 500, $row->getError() );			}			$row->checkin();			$row->reorder( 'position='.$db->Quote( $row->position ).' AND client_id='.(int) $client->id );			$query = 'SELECT menuid'			. ' FROM #__modules_menu'			. ' WHERE moduleid = '.(int) $cid[0]			;			$db->setQuery( $query );			$rows = $db->loadResultArray();			foreach ($rows as $menuid) {				$tuples[] = '('.(int) $row->id.','.(int) $menuid.')';			}		}		if (!empty( $tuples ))		{			// Module-Menu Mapping: Do it in one query			$query = 'INSERT INTO #__modules_menu (moduleid,menuid) VALUES '.implode( ',', $tuples );			$db->setQuery( $query );			if (!$db->query()) {				return JError::raiseWarning( 500, $db->getError() );			}		}		$msg = JText::sprintf( 'Items Copied', $n );		$this->setRedirect( 'index.php?option=com_modules&client='. $client->id, $msg );	}	/**	 * Saves the module after an edit form submit	 */	function save()	{		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		global $mainframe;		$cache = & JFactory::getCache();		$cache->clean( 'com_content' );		// Initialize some variables		$db		=& JFactory::getDBO();		$client	=& JApplicationHelper::getClientInfo(JRequest::getVar('client', '0', '', 'int'));		$this->setRedirect( 'index.php?option=com_modules&client='.$client->id );		$post	= JRequest::get( 'post' );		// fix up special html fields		$post['content']   = JRequest::getVar( 'content', '', 'post', 'string', JREQUEST_ALLOWRAW );		$post['client_id'] = $client->id;		$row =& JTable::getInstance('module');		if (!$row->bind( $post, 'selections' )) {			return JError::raiseWarning( 500, $row->getError() );		}		if (!$row->check()) {			return JError::raiseWarning( 500, $row->getError() );		}		// if new item, order last in appropriate group		if (!$row->id) {			$where = 'position='.$db->Quote( $row->position ).' AND client_id='.(int) $client->id ;			$row->ordering = $row->getNextOrder( $where );		}		if (!$row->store()) {			return JError::raiseWarning( 500, $row->getError() );		}		$row->checkin();		$menus = JRequest::getVar( 'menus', '', 'post', 'word' );		$selections = JRequest::getVar( 'selections', array(), 'post', 'array' );		JArrayHelper::toInteger($selections);		// delete old module to menu item associations		$query = 'DELETE FROM #__modules_menu'		. ' WHERE moduleid = '.(int) $row->id		;		$db->setQuery( $query );		if (!$db->query()) {			return JError::raiseWarning( 500, $db->getError() );		}		// check needed to stop a module being assigned to `All`		// and other menu items resulting in a module being displayed twice		if ( $menus == 'all' ) {			// assign new module to `all` menu item associations			$query = 'INSERT INTO #__modules_menu'			. ' SET moduleid = '.(int) $row->id.' , menuid = 0'			;			$db->setQuery( $query );			if (!$db->query()) {				return JError::raiseWarning( 500, $db->getError() );			}		}		else		{			foreach ($selections as $menuid)			{				// this check for the blank spaces in the select box that have been added for cosmetic reasons				if ( (int) $menuid >= 0 ) {					// assign new module to menu item associations					$query = 'INSERT INTO #__modules_menu'					. ' SET moduleid = '.(int) $row->id .', menuid = '.(int) $menuid					;					$db->setQuery( $query );					if (!$db->query()) {						return JError::raiseWarning( 500, $db->getError() );					}				}			}		}		$this->setMessage( JText::_( 'Item saved' ) );		switch ($this->getTask())		{			case 'apply':				$this->setRedirect( 'index.php?option=com_modules&client='. $client->id .'&task=edit&id='. $row->id );				break;		}	}	/**	* Compiles information to add or edit a module	* @param string The current GET/POST option	* @param integer The unique id of the record to edit	*/	function edit( )	{		// Initialize some variables		$db 	=& JFactory::getDBO();		$user 	=& JFactory::getUser();		$client	=& JApplicationHelper::getClientInfo(JRequest::getVar('client', '0', '', 'int'));		$module = JRequest::getVar( 'module', '', '', 'cmd' );		$id 	= JRequest::getVar( 'id', 0, 'method', 'int' );		$cid 	= JRequest::getVar( 'cid', array( $id ), 'method', 'array' );		JArrayHelper::toInteger($cid, array(0));		$model	= &$this->getModel('module');		$model->setState( 'id',			$cid[0] );		$model->setState( 'clientId',	$client->id );		$lists 	= array();		$row 	=& JTable::getInstance('module');		// load the row from the db table		$row->load( (int) $cid[0] );		// fail if checked out not by 'me'		if ($row->isCheckedOut( $user->get('id') )) {			$this->setRedirect( 'index.php?option=com_modules&client='.$client->id );			return JError::raiseWarning( 500, JText::sprintf( 'DESCBEINGEDITTED', JText::_( 'The module' ), $row->title ) );		}		$row->content = htmlspecialchars( str_replace( '&amp;', '&', $row->content ), ENT_COMPAT, 'UTF-8' );		if ( $cid[0] ) {			$row->checkout( $user->get('id') );		}		// if a new record we must still prime the JTableModel object with a default		// position and the order; also add an extra item to the order list to		// place the 'new' record in last position if desired		if ($cid[0] == 0) {			$row->position 	= 'left';			$row->showtitle = true;			$row->published = 1;			//$row->ordering = $l;			$row->module 	= $module;		}		if ($client->id == 1)		{			$where 				= 'client_id = 1';			$lists['client_id'] = 1;			$path				= 'mod1_xml';		}		else		{			$where 				= 'client_id = 0';			$lists['client_id'] = 0;			$path				= 'mod0_xml';		}		$query = 'SELECT position, ordering, showtitle, title'		. ' FROM #__modules'		. ' WHERE '. $where		. ' ORDER BY ordering'		;		$db->setQuery( $query );		if ( !($orders = $db->loadObjectList()) ) {			echo $db->stderr();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人一区二区| 99久久综合国产精品| 国产一区中文字幕| 91国产免费观看| 久久日一线二线三线suv| 亚洲最新在线观看| 国产一区二区三区久久悠悠色av| 色屁屁一区二区| 国产清纯白嫩初高生在线观看91 | 另类综合日韩欧美亚洲| 成人av资源站| 国产片一区二区| 久久精品国产久精国产| 欧美综合一区二区三区| 国产日韩欧美不卡在线| 国产在线不卡视频| 欧美精品xxxxbbbb| 亚洲国产精品一区二区久久 | 日韩视频不卡中文| 一区二区三区不卡在线观看| 成人自拍视频在线| 久久久久久久综合狠狠综合| 日本大胆欧美人术艺术动态| 91久久国产综合久久| 国产精品免费久久久久| 极品美女销魂一区二区三区免费| 欧美日本在线播放| 亚洲电影在线播放| 欧美午夜片在线观看| 自拍偷拍国产亚洲| 91社区在线播放| 亚洲另类色综合网站| 色偷偷88欧美精品久久久| 国产精品福利影院| aaa国产一区| 一个色综合网站| 在线观看中文字幕不卡| 亚洲大片在线观看| 欧美日本韩国一区| 久久99国产精品久久99| 2019国产精品| 大桥未久av一区二区三区中文| 国产日韩欧美精品一区| 成人av影院在线| 亚洲视频 欧洲视频| 欧美婷婷六月丁香综合色| 亚洲国产日韩一区二区| 91精品国产综合久久久久久| 日本va欧美va瓶| 国产午夜精品一区二区三区视频| 国产剧情一区二区三区| 亚洲视频在线观看一区| 欧美唯美清纯偷拍| 久久成人免费电影| 中文字幕av一区 二区| 在线观看日韩毛片| 蜜臀av在线播放一区二区三区| 精品国产乱码久久久久久免费| 国产麻豆9l精品三级站| 亚洲色图一区二区| 69堂成人精品免费视频| 国产精品99精品久久免费| 中文字幕一区二区不卡| 欧美精品1区2区3区| 狠狠色狠狠色合久久伊人| 国产精品的网站| 欧美精品日韩综合在线| 高清久久久久久| 亚洲一区二区欧美激情| 亚洲精品一区二区三区蜜桃下载 | 亚洲日韩欧美一区二区在线| 欧美日韩视频不卡| 国产精品69久久久久水密桃| 亚洲免费色视频| 精品国产污污免费网站入口 | 欧美成人一区二区三区| 91麻豆自制传媒国产之光| 亚洲国产成人av| 国产婷婷一区二区| 91精品国产综合久久蜜臀| 99re在线视频这里只有精品| 久久精品噜噜噜成人88aⅴ | 欧美色图天堂网| 成人小视频在线| 久久精品99久久久| 亚洲国产综合视频在线观看| 国产精品久久综合| 日韩精品一区在线| 欧美专区日韩专区| zzijzzij亚洲日本少妇熟睡| 久久超级碰视频| 午夜视频一区在线观看| √…a在线天堂一区| 久久久www成人免费毛片麻豆| 69久久99精品久久久久婷婷| 91麻豆国产福利在线观看| 国产高清不卡二三区| 日本午夜精品一区二区三区电影| 亚洲靠逼com| 国产欧美一区二区精品性色| 欧美一区二区黄色| 欧美日韩中文字幕一区二区| 91浏览器打开| 波多野结衣91| 成人污污视频在线观看| 精品影视av免费| 免费人成网站在线观看欧美高清| 亚洲成人一区二区| 亚洲一区二区av在线| 亚洲精品国产高清久久伦理二区| 国产蜜臀97一区二区三区| 欧美成人一区二区三区| 精品国产乱码久久久久久蜜臀| 欧美日韩一级二级三级| 欧美日韩国产综合视频在线观看| 欧美色视频一区| 欧美日韩三级一区| 欧美女孩性生活视频| 欧美日韩在线免费视频| 在线观看亚洲精品| 欧美日韩一区二区在线观看| 欧美性猛交一区二区三区精品| 欧美亚洲国产一区二区三区| 欧美午夜电影一区| 欧美一区二区三区视频在线观看 | 精品在线一区二区三区| 韩国av一区二区三区在线观看| 国产一区二区免费在线| 国产成人在线色| 色婷婷久久久亚洲一区二区三区| 一本久道中文字幕精品亚洲嫩| 91国模大尺度私拍在线视频| 在线不卡欧美精品一区二区三区| 欧美一区二区三区四区高清| 精品国产123| 亚洲图片另类小说| 丝袜脚交一区二区| 国产福利一区在线| 9色porny自拍视频一区二区| 精品视频1区2区| 337p粉嫩大胆噜噜噜噜噜91av| 国产女同性恋一区二区| 亚洲欧美另类久久久精品2019| 亚洲bt欧美bt精品| 国产一区999| 在线影视一区二区三区| 欧美成人高清电影在线| 中文字幕乱码一区二区免费| 亚洲成a人片综合在线| 国产精品综合二区| 色国产综合视频| 精品嫩草影院久久| 亚洲一区欧美一区| 国产在线日韩欧美| 91黄色免费版| 久久久久久久电影| 亚洲国产日韩综合久久精品| 久久av老司机精品网站导航| 成人免费视频视频在线观看免费| 99久久精品国产麻豆演员表| 欧美日本在线播放| 中文字幕一区二区三区色视频| 奇米精品一区二区三区四区 | 国产精品第四页| 午夜亚洲国产au精品一区二区| 国产精品一区二区在线观看网站| 粉嫩一区二区三区性色av| 欧美一区日本一区韩国一区| 中文字幕不卡的av| 麻豆精品一区二区| 欧美三级电影精品| 中文字幕欧美激情| 国产在线精品一区二区| 91麻豆精东视频| 国产精品乱人伦一区二区| 国产精品乱码一区二三区小蝌蚪| 天堂成人国产精品一区| 91精品91久久久中77777| 精品人伦一区二区色婷婷| 日韩影院在线观看| av动漫一区二区| 国产欧美日韩不卡免费| 免费美女久久99| 欧美午夜影院一区| 一区二区三区资源| 高潮精品一区videoshd| 精品国产精品网麻豆系列| 日本视频免费一区| 在线观看一区二区精品视频| 中文字幕在线免费不卡| 韩国av一区二区三区在线观看| 日韩一区二区精品| 日韩电影一区二区三区四区| 色香色香欲天天天影视综合网| 国产精品久久久久影院亚瑟| 国产一区二区精品久久99 | 国产专区综合网| 精品国产网站在线观看| 裸体健美xxxx欧美裸体表演| 欧美日韩午夜在线视频|