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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? controller.php

?? 國外免費(fèi)開源的內(nèi)容管理系統(tǒng)
?? PHP
?? 第 1 頁 / 共 3 頁
字號:
<?php/** * @version		$Id: controller.php 10094 2008-03-02 04:35:10Z instance $ * @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';		}		$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' .

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品在线视频| 91丨九色丨尤物| 欧美性极品少妇| 日本一区二区三区久久久久久久久不| 亚洲一区视频在线观看视频| 国产精品一区二区在线观看网站| 欧美少妇一区二区| 国产精品萝li| 国产麻豆视频一区| 91精品久久久久久久99蜜桃| 亚洲欧美日韩久久| 成人午夜av电影| 亚洲精品一区二区精华| 欧美96一区二区免费视频| 在线视频你懂得一区| 国产精品久久99| 国产福利视频一区二区三区| 日韩欧美自拍偷拍| 午夜不卡av免费| 欧美优质美女网站| 亚洲女同ⅹxx女同tv| 成人一区二区三区在线观看 | 丁香婷婷综合色啪| 欧美成人精品3d动漫h| 亚洲va韩国va欧美va精品| 一本色道亚洲精品aⅴ| 国产精品视频观看| 国产成人亚洲综合a∨婷婷 | 色婷婷综合久久久久中文 | 在线观看av一区二区| 国产精品美日韩| 国产成人精品三级麻豆| 精品国产乱码久久久久久图片 | 亚洲日本免费电影| 丁香婷婷综合激情五月色| 久久久精品免费网站| 黑人巨大精品欧美一区| 欧美va亚洲va| 青青国产91久久久久久| 欧美日韩久久一区| 亚洲福中文字幕伊人影院| 91麻豆自制传媒国产之光| 日韩理论片中文av| jiyouzz国产精品久久| 国产精品免费观看视频| 99久久精品免费| 亚洲色图在线视频| 色综合久久中文字幕综合网 | 久久久久久久久97黄色工厂| 国产一区二区美女| 国产日产欧美一区二区视频| 粉嫩aⅴ一区二区三区四区 | 久久女同互慰一区二区三区| 国产乱一区二区| 久久这里都是精品| 国产精品一区专区| 国产精品久久午夜夜伦鲁鲁| 成人av电影免费在线播放| 中文字幕在线一区免费| 91免费看`日韩一区二区| 一区二区三区四区视频精品免费 | 91麻豆免费看片| 亚洲综合色在线| 91精品国产综合久久香蕉麻豆| 五月婷婷综合激情| 欧美一区二区三区免费大片| 另类小说色综合网站| 日韩欧美在线综合网| 国产精品伦理在线| 色综合天天综合| 国产精品乱码久久久久久| 岛国一区二区三区| 亚洲三级在线免费观看| 欧美在线综合视频| 日韩国产成人精品| 久久亚洲精精品中文字幕早川悠里| 国产二区国产一区在线观看| 中文字幕在线一区| 欧美熟乱第一页| 老司机精品视频在线| 国产情人综合久久777777| 一本大道久久a久久精品综合| 亚洲福利电影网| 91麻豆精品国产自产在线观看一区| 老司机免费视频一区二区三区| 中文字幕欧美国产| 色综合天天综合网国产成人综合天| 午夜精品国产更新| 国产亚洲一区二区三区四区| 99精品久久久久久| 亚洲精品欧美在线| 欧美一区二区免费| 粉嫩aⅴ一区二区三区四区| 一区二区三区成人在线视频| 日韩欧美在线不卡| 成人av资源下载| 日本成人在线一区| 久久久久97国产精华液好用吗| 色噜噜狠狠色综合中国| 首页国产丝袜综合| 欧美国产禁国产网站cc| 欧美日韩精品专区| 成人在线一区二区三区| 石原莉奈在线亚洲二区| 中文字幕不卡的av| 69p69国产精品| av电影天堂一区二区在线| 日韩不卡手机在线v区| 成人毛片在线观看| 欧美日韩成人综合| 国产麻豆精品久久一二三| 一区二区三区在线观看欧美| 久久久久国色av免费看影院| 91精品91久久久中77777| 久久精品在这里| 极品少妇一区二区| 久久久久久久综合色一本| 亚洲免费资源在线播放| 亚洲欧美另类在线| 成人精品小蝌蚪| 中文字幕一区二区三区在线播放| 欧美另类高清zo欧美| 99免费精品视频| 国产一区啦啦啦在线观看| 亚洲国产精品久久人人爱蜜臀 | 亚洲欧美激情视频在线观看一区二区三区 | 欧美电影影音先锋| 色综合天天综合在线视频| 国产成人h网站| 免费观看在线色综合| 午夜久久久久久久久| 17c精品麻豆一区二区免费| 久久久亚洲精品石原莉奈| 日韩视频国产视频| 欧美男人的天堂一二区| 欧美中文字幕一区| 成人av第一页| 成人网在线免费视频| 懂色中文一区二区在线播放| 国产美女一区二区| 激情五月婷婷综合网| 日韩中文字幕麻豆| 亚洲综合色婷婷| 亚洲综合丝袜美腿| 亚洲一区二区三区四区在线观看| 亚洲欧美电影院| 综合色天天鬼久久鬼色| 国产精品每日更新在线播放网址| 国产亚洲精品免费| 久久久影视传媒| 日韩女优视频免费观看| 色综合久久中文综合久久牛| 国产超碰在线一区| 欧美日韩国产高清一区二区三区| 9色porny自拍视频一区二区| 石原莉奈一区二区三区在线观看| 久久美女高清视频| 久久美女艺术照精彩视频福利播放 | 国产精品高潮久久久久无| 久久国产精品色| 一区二区三区四区国产精品| 久久综合久久综合久久| 久久午夜电影网| 欧美高清视频www夜色资源网| 成人app网站| 99精品欧美一区二区蜜桃免费| 久久精品国产第一区二区三区| 亚洲成人激情av| 日本欧美韩国一区三区| 一区二区三区四区精品在线视频| 日本一区二区三区在线不卡| 最新国产の精品合集bt伙计| 久久久久久久综合色一本| 欧美一二三区在线观看| 精品国产成人系列| 91.com在线观看| av亚洲精华国产精华精| 在线精品观看国产| 成人午夜视频网站| 国产成人99久久亚洲综合精品| 奇米一区二区三区| 久久久噜噜噜久久人人看| 91精品中文字幕一区二区三区| 日本高清不卡在线观看| 国产精品亚洲成人| 国产一区二区在线观看免费| 亚洲蜜臀av乱码久久精品蜜桃| 国产精品第五页| 国产精品美女久久久久久久网站| 亚洲精品高清在线| 亚洲视频在线观看三级| 久久综合国产精品| 亚洲免费观看高清在线观看| 中文字幕一区二区三区在线播放| 亚洲一区二区三区视频在线| 亚洲男人的天堂在线观看| 亚洲欧美色综合| 免费欧美在线视频| 青青草97国产精品免费观看| 五月天激情综合|