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

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

?? controller.php

?? Joomla!是一套獲得過多個獎項的內容管理系統(Content Management System, CMS)。Joomla!采用PHP+MySQL數據庫開發
?? PHP
?? 第 1 頁 / 共 3 頁
字號:
<?php/** * @version		$Id: controller.php 11633 2009-02-19 23:59:09Z willebil $ * @package		Joomla * @subpackage	Content * @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 included in Joomla!defined('_JEXEC') or die( 'Restricted access' );jimport('joomla.application.component.controller');/** * Content Component Controller * * @package		Joomla * @subpackage	Content * @since 1.5 */class ContentController extends JController{	/**	 * Articles element	 */	function element()	{		$model	= &$this->getModel( 'element' );		$view	= &$this->getView( 'element');		$view->setModel( $model, true );		$view->display();	}	/**	* Compiles a list of installed or defined modules	* @param database A database connector object	*/	function viewContent()	{		global $mainframe;		// Initialize variables		$db			=& JFactory::getDBO();		$filter		= null;		// Get some variables from the request		$sectionid			= JRequest::getVar( 'sectionid', -1, '', 'int' );		$redirect			= $sectionid;		$option				= JRequest::getCmd( 'option' );		$context			= 'com_content.viewcontent';		$filter_order		= $mainframe->getUserStateFromRequest( $context.'filter_order',		'filter_order',		'',	'cmd' );		$filter_order_Dir	= $mainframe->getUserStateFromRequest( $context.'filter_order_Dir',	'filter_order_Dir',	'',	'word' );		$filter_state		= $mainframe->getUserStateFromRequest( $context.'filter_state',		'filter_state',		'',	'word' );		$catid				= $mainframe->getUserStateFromRequest( $context.'catid',			'catid',			0,	'int' );		$filter_authorid	= $mainframe->getUserStateFromRequest( $context.'filter_authorid',	'filter_authorid',	0,	'int' );		$filter_sectionid	= $mainframe->getUserStateFromRequest( $context.'filter_sectionid',	'filter_sectionid',	-1,	'int' );		$search				= $mainframe->getUserStateFromRequest( $context.'search',			'search',			'',	'string' );		$search				= JString::strtolower($search);		$limit		= $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');		$limitstart	= $mainframe->getUserStateFromRequest($context.'limitstart', 'limitstart', 0, 'int');		// In case limit has been changed, adjust limitstart accordingly		$limitstart = ( $limit != 0 ? (floor($limitstart / $limit) * $limit) : 0 );		//$where[] = "c.state >= 0";		$where[] = 'c.state != -2';		if (!$filter_order) {			$filter_order = 'section_name';		}		if ($filter_order == 'c.ordering') {			$order = ' ORDER BY section_name, cc.title, c.ordering '. $filter_order_Dir;		} else {			$order = ' ORDER BY '. $filter_order .' '. $filter_order_Dir .', section_name, cc.title, c.ordering';		}		$all = 1;		if ($filter_sectionid >= 0) {			$filter = ' WHERE cc.section = '. (int) $filter_sectionid;		}		$section->title = 'All Articles';		$section->id = 0;		/*		 * Add the filter specific information to the where clause		 */		// Section filter		if ($filter_sectionid >= 0) {			$where[] = 'c.sectionid = ' . (int) $filter_sectionid;		}		// Category filter		if ($catid > 0) {			$where[] = 'c.catid = ' . (int) $catid;		}		// Author filter		if ($filter_authorid > 0) {			$where[] = 'c.created_by = ' . (int) $filter_authorid;		}		// Content state filter		if ($filter_state) {			if ($filter_state == 'P') {				$where[] = 'c.state = 1';			} else {				if ($filter_state == 'U') {					$where[] = 'c.state = 0';				} else if ($filter_state == 'A') {					$where[] = 'c.state = -1';				} else {					$where[] = 'c.state != -2';				}			}		}		// Keyword filter		if ($search) {			$where[] = '(LOWER( c.title ) LIKE '.$db->Quote( '%'.$db->getEscaped( $search, true ).'%', false ) .				' OR c.id = ' . (int) $search . ')';		}		// Build the where clause of the content record query		$where = (count($where) ? ' WHERE '.implode(' AND ', $where) : '');		// Get the total number of records		$query = 'SELECT COUNT(*)' .				' FROM #__content AS c' .				' LEFT JOIN #__categories AS cc ON cc.id = c.catid' .				' LEFT JOIN #__sections AS s ON s.id = c.sectionid' .				$where;		$db->setQuery($query);		$total = $db->loadResult();		// Create the pagination object		jimport('joomla.html.pagination');		$pagination = new JPagination($total, $limitstart, $limit);		// Get the articles		$query = 'SELECT c.*, g.name AS groupname, cc.title AS name, u.name AS editor, f.content_id AS frontpage, s.title AS section_name, v.name AS author' .				' FROM #__content AS c' .				' LEFT JOIN #__categories AS cc ON cc.id = c.catid' .				' LEFT JOIN #__sections AS s ON s.id = c.sectionid' .				' LEFT JOIN #__groups AS g ON g.id = c.access' .				' LEFT JOIN #__users AS u ON u.id = c.checked_out' .				' LEFT JOIN #__users AS v ON v.id = c.created_by' .				' LEFT JOIN #__content_frontpage AS f ON f.content_id = c.id' .				$where .				$order;		$db->setQuery($query, $pagination->limitstart, $pagination->limit);		$rows = $db->loadObjectList();		// If there is a database query error, throw a HTTP 500 and exit		if ($db->getErrorNum()) {			JError::raiseError( 500, $db->stderr() );			return false;		}		// get list of categories for dropdown filter		$query = 'SELECT cc.id AS value, cc.title AS text, section' .				' FROM #__categories AS cc' .				' INNER JOIN #__sections AS s ON s.id = cc.section ' .				$filter .				' ORDER BY s.ordering, cc.ordering';		$lists['catid'] = ContentHelper::filterCategory($query, $catid);		// get list of sections for dropdown filter		$javascript = 'onchange="document.adminForm.submit();"';		$lists['sectionid'] = JHTML::_('list.section', 'filter_sectionid', $filter_sectionid, $javascript);		// get list of Authors for dropdown filter		$query = 'SELECT c.created_by, u.name' .				' FROM #__content AS c' .				' INNER JOIN #__sections AS s ON s.id = c.sectionid' .				' LEFT JOIN #__users AS u ON u.id = c.created_by' .				' WHERE c.state <> -1' .				' AND c.state <> -2' .				' GROUP BY u.name' .				' ORDER BY u.name';		$authors[] = JHTML::_('select.option', '0', '- '.JText::_('Select Author').' -', 'created_by', 'name');		$db->setQuery($query);		$authors = array_merge($authors, $db->loadObjectList());		$lists['authorid'] = JHTML::_('select.genericlist',  $authors, 'filter_authorid', 'class="inputbox" size="1" onchange="document.adminForm.submit( );"', 'created_by', 'name', $filter_authorid);		// state filter		$lists['state'] = JHTML::_('grid.state', $filter_state, 'Published', 'Unpublished', 'Archived');		// table ordering		$lists['order_Dir']	= $filter_order_Dir;		$lists['order']		= $filter_order;		// search filter		$lists['search'] = $search;		ContentView::showContent($rows, $lists, $pagination, $redirect);	}	/**	* Shows a list of archived articles	* @param int The section id	*/	function viewArchive()	{		global $mainframe;		// Initialize variables		$db						=& JFactory::getDBO();		$sectionid				= JRequest::getVar( 'sectionid', 0, '', 'int' );		$option					= JRequest::getCmd( 'option' );		$filter_order			= $mainframe->getUserStateFromRequest("$option.$sectionid.viewarchive.filter_order",		'filter_order',		'sectname',	'cmd');		$filter_order_Dir		= $mainframe->getUserStateFromRequest("$option.$sectionid.viewarchive.filter_order_Dir",	'filter_order_Dir',	'',			'word');		$catid					= $mainframe->getUserStateFromRequest("$option.$sectionid.viewarchive.catid",				'catid',			0,			'int');		$limit					= $mainframe->getUserStateFromRequest('global.list.limit',									'limit',			$mainframe->getCfg('list_limit'), 'int');		$limitstart				= $mainframe->getUserStateFromRequest("$option.$sectionid.viewarchive.limitstart",			'limitstart',		0,			'int');		$filter_authorid		= $mainframe->getUserStateFromRequest("$option.$sectionid.viewarchive.filter_authorid",		'filter_authorid',	0,			'int');		$filter_sectionid		= $mainframe->getUserStateFromRequest("$option.$sectionid.viewarchive.filter_sectionid",	'filter_sectionid',	0,			'int');		$search					= $mainframe->getUserStateFromRequest("$option.$sectionid.viewarchive.search",				'search',			'',			'string');		$search					= JString::strtolower($search);		$redirect				= $sectionid;		// A section id of zero means view all articles [all sections]		if ($sectionid == 0)		{			$where = array ('c.state 	= -1', 'c.catid	= cc.id', 'cc.section = s.id', 's.scope  	= "content"');			$filter = ' , #__sections AS s WHERE s.id = c.section';			$all = 1;		}		else		{			 //We are viewing a specific section			$where = array ('c.state 	= -1', 'c.catid	= cc.id', 'cc.section	= s.id', 's.scope	= "content"', 'c.sectionid= '.(int) $sectionid);			$filter = ' WHERE section = '.$db->Quote($sectionid);			$all = NULL;		}		// Section filter		if ($filter_sectionid > 0)		{			$where[] = 'c.sectionid = ' . (int) $filter_sectionid;		}		// Author filter		if ($filter_authorid > 0)		{			$where[] = 'c.created_by = ' . (int) $filter_authorid;		}		// Category filter		if ($catid > 0)		{			$where[] = 'c.catid = ' . (int) $catid;		}		// Keyword filter		if ($search)		{			$where[] = 'LOWER( c.title ) LIKE '.$db->Quote( '%'.$db->getEscaped( $search, true ).'%', false );		}		// TODO: Sanitise $filter_order		$filter_order_Dir = ($filter_order_Dir == 'ASC' ? 'ASC' : 'DESC');		$orderby = ' ORDER BY '. $filter_order .' '. $filter_order_Dir .', sectname, cc.name, c.ordering';		$where = (count($where) ? ' WHERE '.implode(' AND ', $where) : '');		// get the total number of records		$query = 'SELECT COUNT(*)' .				' FROM #__content AS c' .				' LEFT JOIN #__categories AS cc ON cc.id = c.catid' .				' LEFT JOIN #__sections AS s ON s.id = c.sectionid' .				$where;		$db->setQuery($query);		$total = $db->loadResult();		jimport('joomla.html.pagination');		$pagination = new JPagination($total, $limitstart, $limit);		$query = 'SELECT c.*, g.name AS groupname, cc.name, v.name AS author, s.title AS sectname' .				' FROM #__content AS c' .				' LEFT JOIN #__categories AS cc ON cc.id = c.catid' .				' LEFT JOIN #__sections AS s ON s.id = c.sectionid' .				' LEFT JOIN #__groups AS g ON g.id = c.access' .				' LEFT JOIN #__users AS v ON v.id = c.created_by' .				$where .				$orderby;		$db->setQuery($query, $pagination->limitstart, $pagination->limit);		$rows = $db->loadObjectList();		// If there is a database query error, throw a HTTP 500 and exit		if ($db->getErrorNum())		{			JError::raiseError( 500, $db->stderr() );			return false;		}		// get list of categories for dropdown filter		$query = 'SELECT c.id AS value, c.title AS text' .				' FROM #__categories AS c' .				$filter .				' ORDER BY c.ordering';		$lists['catid'] = ContentHelper::filterCategory($query, $catid);		// get list of sections for dropdown filter		$javascript = 'onchange="document.adminForm.submit();"';		$lists['sectionid'] = JAdminMenus::SelectSection('filter_sectionid', $filter_sectionid, $javascript);		$section = & JTable::getInstance('section');		$section->load($sectionid);		// get list of Authors for dropdown filter		$query = 'SELECT c.created_by, u.name' .				' FROM #__content AS c' .				' INNER JOIN #__sections AS s ON s.id = c.sectionid' .				' LEFT JOIN #__users AS u ON u.id = c.created_by' .				' WHERE c.state = -1' .				' GROUP BY u.name' .				' ORDER BY u.name';		$db->setQuery($query);		$authors[] = JHTML::_('select.option', '0', '- '.JText::_('Select Author').' -', 'created_by', 'name');		$authors = array_merge($authors, $db->loadObjectList());		$lists['authorid'] = JHTML::_('select.genericlist',  $authors, 'filter_authorid', 'class="inputbox" size="1" onchange="document.adminForm.submit( );"', 'created_by', 'name', $filter_authorid);		// table ordering		$lists['order_Dir']	= $filter_order_Dir;		$lists['order']		= $filter_order;		// search filter		$lists['search'] = $search;		ContentView::showArchive($rows, $section, $lists, $pagination, $option, $all, $redirect);	}	/**	* Compiles information to add or edit the record	*	* @param database A database connector object	* @param integer The unique id of the record to edit (0 if new)	* @param integer The id of the content section	*/	function editContent($edit)	{		global $mainframe;		// Initialize variables		$db				= & JFactory::getDBO();		$user			= & JFactory::getUser();		$cid			= JRequest::getVar( 'cid', array(0), '', 'array' );		JArrayHelper::toInteger($cid, array(0));		$id				= JRequest::getVar( 'id', $cid[0], '', 'int' );		$option			= JRequest::getCmd( 'option' );		$nullDate		= $db->getNullDate();		$contentSection	= '';		$sectionid		= 0;		// Create and load the content table row		$row = & JTable::getInstance('content');		if($edit)			$row->load($id);		if ($id) {			$sectionid = $row->sectionid;			if ($row->state < 0) {				$mainframe->redirect('index.php?option=com_content', JText::_('You cannot edit an archived item'));			}		}		// A sectionid of zero means grab from all sections		if ($sectionid == 0) {			$where = ' WHERE section NOT LIKE "%com_%"';		} else {			// Grab from the specific section			$where = ' WHERE section = '. $db->Quote( $sectionid );		}		/*		 * If the item is checked out we cannot edit it... unless it was checked		 * out by the current user.		 */		if ( JTable::isCheckedOut($user->get ('id'), $row->checked_out ))		{			$msg = JText::sprintf('DESCBEINGEDITTED', JText::_('The item'), $row->title);			$mainframe->redirect('index.php?option=com_content', $msg);		}		if ($id)		{			$row->checkout($user->get('id'));			if (trim($row->images)) {				$row->images = explode("\n", $row->images);			} else {				$row->images = array ();			}			$query = 'SELECT name' .					' FROM #__users'.					' WHERE id = '. (int) $row->created_by;			$db->setQuery($query);			$row->creator = $db->loadResult();			// test to reduce unneeded query			if ($row->created_by == $row->modified_by) {				$row->modifier = $row->creator;			} else {				$query = 'SELECT name' .						' FROM #__users' .						' WHERE id = '. (int) $row->modified_by;				$db->setQuery($query);				$row->modifier = $db->loadResult();			}			$query = 'SELECT COUNT(content_id)' .					' FROM #__content_frontpage' .					' WHERE content_id = '. (int) $row->id;			$db->setQuery($query);			$row->frontpage = $db->loadResult();			if (!$row->frontpage) {				$row->frontpage = 0;			}		}		else		{			if (!$sectionid && JRequest::getInt('filter_sectionid')) {				$sectionid =JRequest::getInt('filter_sectionid');			}			if (JRequest::getInt('catid'))			{				$row->catid	 = JRequest::getInt('catid');				$category 	 = & JTable::getInstance('category');				$category->load($row->catid);				$sectionid = $category->section;			} else {				$row->catid = NULL;			}			$createdate =& JFactory::getDate();			$row->sectionid = $sectionid;			$row->version = 0;			$row->state = 1;			$row->ordering = 0;			$row->images = array ();			$row->publish_up = $createdate->toUnix();			$row->publish_down = JText::_('Never');			$row->creator = '';			$row->created = $createdate->toUnix();			$row->modified = $nullDate;			$row->modifier = '';			$row->frontpage = 0;		}		$javascript = "onchange=\"changeDynaList( 'catid', sectioncategories, document.adminForm.sectionid.options[document.adminForm.sectionid.selectedIndex].value, 0, 0);\"";		$query = 'SELECT s.id, s.title' .				' FROM #__sections AS s' .				' ORDER BY s.ordering';		$db->setQuery($query);		$sections[] = JHTML::_('select.option', '-1', '- '.JText::_('Select Section').' -', 'id', 'title');		$sections[] = JHTML::_('select.option', '0', JText::_('Uncategorized'), 'id', 'title');		$sections = array_merge($sections, $db->loadObjectList());		$lists['sectionid'] = JHTML::_('select.genericlist',  $sections, 'sectionid', 'class="inputbox" size="1" '.$javascript, 'id', 'title', intval($row->sectionid));		foreach ($sections as $section)		{			$section_list[] = (int) $section->id;			// get the type name - which is a special category			if ($row->sectionid) {				if ($section->id == $row->sectionid) {					$contentSection = $section->title;				}			} else {				if ($section->id == $sectionid) {					$contentSection = $section->title;				}			}		}		$sectioncategories = array ();		$sectioncategories[-1] = array ();		$sectioncategories[-1][] = JHTML::_('select.option', '-1', JText::_( 'Select Category' ), 'id', 'title');		$section_list = implode('\', \'', $section_list);		$query = 'SELECT id, title, section' .				' FROM #__categories' .				' WHERE section IN ( \''.$section_list.'\' )' .				' ORDER BY ordering';

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线成人午夜影院| 欧美国产成人在线| 日本一区二区三区国色天香 | 国产亚洲精品aa午夜观看| 亚洲精品国产a| 成人精品免费网站| 精品成人在线观看| 日本三级韩国三级欧美三级| 不卡一二三区首页| 欧美精品一区二区三区久久久| 亚洲激情综合网| 91.麻豆视频| 伊人夜夜躁av伊人久久| 国产在线一区观看| 日韩午夜在线观看| 日本亚洲电影天堂| 欧美美女网站色| 亚洲香蕉伊在人在线观| 91极品视觉盛宴| 亚洲日本一区二区三区| kk眼镜猥琐国模调教系列一区二区 | 欧美老女人在线| 亚洲一卡二卡三卡四卡无卡久久| www.欧美.com| 国产精品超碰97尤物18| k8久久久一区二区三区| 国产视频一区在线播放| 国产mv日韩mv欧美| 国产精品日产欧美久久久久| 国产一区二区在线观看视频| 精品99一区二区三区| 日本在线观看不卡视频| 韩国三级中文字幕hd久久精品| 欧美一区二区精品在线| 一区二区不卡在线播放| 97久久精品人人做人人爽| 久久久久久97三级| 国产麻豆视频精品| 亚洲精品一区二区三区蜜桃下载| 日韩电影在线观看电影| 91福利精品第一导航| 亚洲国产欧美在线| 欧美私人免费视频| 一区二区三区日本| 欧美视频一区二区在线观看| 亚洲日本成人在线观看| 99精品一区二区三区| 欧美激情一区二区三区在线| 国产成人综合亚洲91猫咪| 国产欧美一区二区三区网站| 国产一区二区精品在线观看| 精品国产乱码久久久久久浪潮| 国产一区在线观看视频| 久久精品一二三| 成人免费视频app| 久久嫩草精品久久久久| 成人av集中营| 一区二区三区免费在线观看| 色哟哟欧美精品| 亚洲国产美女搞黄色| 欧美日韩美少妇| 免费日本视频一区| 精品国产免费久久| 成人免费三级在线| 一区二区免费视频| 91精品国产品国语在线不卡 | 精品国产乱码久久久久久图片| 国产在线播精品第三| 欧美国产精品中文字幕| 国产99久久精品| 亚洲欧美日韩一区| 在线综合视频播放| 国产曰批免费观看久久久| 久久精品一区八戒影视| 久久久久久久久久久电影| 成人视屏免费看| 亚洲综合偷拍欧美一区色| 欧美日韩另类一区| 国产乱色国产精品免费视频| 最近日韩中文字幕| 欧美一区二区视频在线观看2020| 国产一区在线精品| 国产精品亲子乱子伦xxxx裸| 在线观看91av| av不卡一区二区三区| 视频一区视频二区中文字幕| 国产亚洲欧美一级| 欧美午夜片在线看| 国产精品自在欧美一区| 亚洲乱码国产乱码精品精小说 | 欧美一区二区国产| 91热门视频在线观看| 午夜精品在线看| 国产午夜亚洲精品不卡| 欧美日韩不卡在线| 成人在线视频首页| 久久精品久久精品| 一区二区三区四区不卡视频| 精品91自产拍在线观看一区| 欧美午夜精品一区二区蜜桃| 国产精品一区久久久久| 亚洲成人在线观看视频| 国产精品色婷婷久久58| 欧美mv日韩mv国产| 欧美日韩夫妻久久| 国产成人免费视| 美女在线视频一区| 亚洲国产视频a| 亚洲免费观看在线视频| 国产欧美日韩中文久久| 欧美电视剧免费全集观看| 欧美又粗又大又爽| 91丝袜国产在线播放| 国产美女视频一区| 捆绑变态av一区二区三区| 亚洲高清视频在线| 一区二区三区精品在线观看| 中文字幕欧美国产| 中文字幕一区二区三区在线观看 | 久久久久久一二三区| 欧美另类高清zo欧美| 色婷婷精品久久二区二区蜜臀av| 国产成人av一区二区三区在线 | 亚洲chinese男男1069| 国产精品黄色在线观看| 久久久99精品久久| 久久精品一区二区三区av| 久久网站热最新地址| 精品国产伦理网| 2020日本不卡一区二区视频| 欧美成人a∨高清免费观看| 在线观看日韩一区| 午夜欧美2019年伦理| 一区二区三区加勒比av| 性感美女久久精品| 日韩和欧美一区二区三区| 奇米综合一区二区三区精品视频| 国产黄色91视频| 成人午夜激情影院| 成人免费不卡视频| 在线免费不卡电影| 777xxx欧美| 欧美videossexotv100| 欧美精品一区二区蜜臀亚洲| 久久久久久日产精品| 欧美激情综合五月色丁香小说| 中文字幕精品一区二区三区精品| 国产精品妹子av| 亚洲精选视频在线| 视频一区国产视频| 日韩电影免费在线观看网站| 经典一区二区三区| 91在线观看高清| 欧美日韩国产区一| 久久综合色之久久综合| 国产精品久久久久久久久晋中| 亚洲婷婷在线视频| 偷拍一区二区三区四区| 美女视频一区在线观看| 粉嫩久久99精品久久久久久夜| 成人黄色在线网站| 欧美日韩激情一区二区| 欧美一区二区网站| 亚洲免费色视频| 久久成人免费电影| 97精品电影院| 日韩欧美一级二级| 中文字幕高清不卡| 五月婷婷久久丁香| 从欧美一区二区三区| 欧美又粗又大又爽| 国产欧美日韩亚州综合| 亚洲一区二区美女| 另类小说综合欧美亚洲| 91视频免费看| 精品久久人人做人人爽| 亚洲另类一区二区| 国产精华液一区二区三区| 欧美日韩在线观看一区二区| 日韩精品专区在线影院重磅| 亚洲欧美综合色| 国模少妇一区二区三区| 欧美色爱综合网| 国产精品毛片久久久久久久| 人人精品人人爱| 91国产福利在线| 欧美精品一区二区三区四区| 国产欧美精品一区| 午夜日韩在线观看| 99免费精品视频| www久久久久| 日韩 欧美一区二区三区| 91色porny| 中文欧美字幕免费| 久久99精品视频| 91精品国产欧美一区二区18| 欧美极品xxx| 国产一区二区三区久久久| 欧美日本在线视频| 亚洲国产一区二区视频|