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

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

?? controller.php

?? 簡介:一款免費開源的內(nèi)容管理系統(tǒng)(CMS)
?? PHP
?? 第 1 頁 / 共 3 頁
字號:
		// Uncategorized category mapped to uncategorized section		$uncat = new stdClass();		$uncat->id = 0;		$uncat->title = JText::_('Uncategorized');		$uncat->section = 0;		$cat_list[] = $uncat;		foreach ($sections as $section)		{			$sectioncategories[$section->id] = array ();			$rows2 = array ();			foreach ($cat_list as $cat)			{				if ($cat->section == $section->id) {					$rows2[] = $cat;				}			}			foreach ($rows2 as $row2) {				$sectioncategories[$section->id][] = JHTML::_('select.option', $row2->id, $row2->title, 'id', 'title');			}		}		$sectioncategories['-1'][] = JHTML::_('select.option', '-1', JText::_( 'Select Category' ), 'id', 'title');		$categories = array();		foreach ($cat_list as $cat) {			if($cat->section == $row->sectionid)				$categories[] = $cat;		}		$categories[] = JHTML::_('select.option', '-1', JText::_( 'Select Category' ), 'id', 'title');		$lists['catid'] = JHTML::_('select.genericlist',  $categories, 'catid', 'class="inputbox" size="1"', 'id', 'title', intval($row->catid));		// build the html select list for ordering		$query = 'SELECT ordering AS value, title AS text' .				' FROM #__content' .				' WHERE catid = ' . (int) $row->catid .				' AND state >= 0' .				' ORDER BY ordering';		if($edit)			$lists['ordering'] = JHTML::_('list.specificordering', $row, $id, $query, 1);		else			$lists['ordering'] = JHTML::_('list.specificordering', $row, '', $query, 1);		// build the html radio buttons for frontpage		$lists['frontpage'] = JHTML::_('select.booleanlist', 'frontpage', '', $row->frontpage);		// build the html radio buttons for published		$lists['state'] = JHTML::_('select.booleanlist', 'state', '', $row->state);		/*		 * We need to unify the introtext and fulltext fields and have the		 * fields separated by the {readmore} tag, so lets do that now.		 */		if (JString::strlen($row->fulltext) > 1) {			$row->text = $row->introtext . "<hr id=\"system-readmore\" />" . $row->fulltext;		} else {			$row->text = $row->introtext;		}		// Create the form		$form = new JParameter('', JPATH_COMPONENT.DS.'models'.DS.'article.xml');		// Details Group		$active = (intval($row->created_by) ? intval($row->created_by) : $user->get('id'));		$form->set('created_by', $active);		$form->set('access', $row->access);		$form->set('created_by_alias', $row->created_by_alias);		$form->set('created', JHTML::_('date', $row->created, '%Y-%m-%d %H:%M:%S'));		$form->set('publish_up', JHTML::_('date', $row->publish_up, '%Y-%m-%d %H:%M:%S'));		if (JHTML::_('date', $row->publish_down, '%Y') <= 1969 || $row->publish_down == $db->getNullDate()) {			$form->set('publish_down', JText::_('Never'));		} else {			$form->set('publish_down', JHTML::_('date', $row->publish_down, '%Y-%m-%d %H:%M:%S'));		}		// Advanced Group		$form->loadINI($row->attribs);		// Metadata Group		$form->set('description', $row->metadesc);		$form->set('keywords', $row->metakey);		$form->loadINI($row->metadata);		ContentView::editContent($row, $contentSection, $lists, $sectioncategories, $option, $form);	}	/**	* Saves the article an edit form submit	* @param database A database connector object	*/	function saveContent()	{		global $mainframe;		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize variables		$db		= & JFactory::getDBO();		$user		= & JFactory::getUser();		$dispatcher 	= & JDispatcher::getInstance();		JPluginHelper::importPlugin('content');		$details	= JRequest::getVar( 'details', array(), 'post', 'array');		$option		= JRequest::getCmd( 'option' );		$task		= JRequest::getCmd( 'task' );		$sectionid	= JRequest::getVar( 'sectionid', 0, '', 'int' );		$redirect	= JRequest::getVar( 'redirect', $sectionid, 'post', 'int' );		$menu		= JRequest::getVar( 'menu', 'mainmenu', 'post', 'cmd' );		$menuid		= JRequest::getVar( 'menuid', 0, 'post', 'int' );		$nullDate	= $db->getNullDate();		$row = & JTable::getInstance('content');		if (!$row->bind(JRequest::get('post'))) {			JError::raiseError( 500, $db->stderr() );			return false;		}		$row->bind($details);		// sanitise id field		$row->id = (int) $row->id;		$isNew = true;		// Are we saving from an item edit?		if ($row->id) {			$isNew = false;			$datenow =& JFactory::getDate();			$row->modified 		= $datenow->toMySQL();			$row->modified_by 	= $user->get('id');		}		$row->created_by 	= $row->created_by ? $row->created_by : $user->get('id');		if ($row->created && strlen(trim( $row->created )) <= 10) {			$row->created 	.= ' 00:00:00';		}		$config =& JFactory::getConfig();		$tzoffset = $config->getValue('config.offset');		$date =& JFactory::getDate($row->created, $tzoffset);		$row->created = $date->toMySQL();		// Append time if not added to publish date		if (strlen(trim($row->publish_up)) <= 10) {			$row->publish_up .= ' 00:00:00';		}		$date =& JFactory::getDate($row->publish_up, $tzoffset);		$row->publish_up = $date->toMySQL();		// Handle never unpublish date		if (trim($row->publish_down) == JText::_('Never') || trim( $row->publish_down ) == '')		{			$row->publish_down = $nullDate;		}		else		{			if (strlen(trim( $row->publish_down )) <= 10) {				$row->publish_down .= ' 00:00:00';			}			$date =& JFactory::getDate($row->publish_down, $tzoffset);			$row->publish_down = $date->toMySQL();		}		// Get a state and parameter variables from the request		$row->state	= JRequest::getVar( 'state', 0, '', 'int' );		$params		= JRequest::getVar( 'params', null, 'post', 'array' );		// Build parameter INI string		if (is_array($params))		{			$txt = array ();			foreach ($params as $k => $v) {				$txt[] = "$k=$v";			}			$row->attribs = implode("\n", $txt);		}		// Get metadata string		$metadata = JRequest::getVar( 'meta', null, 'post', 'array');		if (is_array($params))		{			$txt = array();			foreach ($metadata as $k => $v) {				if ($k == 'description') {					$row->metadesc = $v;				} elseif ($k == 'keywords') {					$row->metakey = $v;				} else {					$txt[] = "$k=$v";				}			}			$row->metadata = implode("\n", $txt);		}		// Prepare the content for saving to the database		ContentHelper::saveContentPrep( $row );		// Make sure the data is valid		if (!$row->check()) {			JError::raiseError( 500, $db->stderr() );			return false;		}		// Increment the content version number		$row->version++;		$result = $dispatcher->trigger('onBeforeContentSave', array(&$row, $isNew));		if(in_array(false, $result, true)) {			JError::raiseError(500, $row->getError());			return false;		}		// Store the content to the database		if (!$row->store()) {			JError::raiseError( 500, $db->stderr() );			return false;		}		// Check the article and update item order		$row->checkin();		$row->reorder('catid = '.(int) $row->catid.' AND state >= 0');		/*		 * We need to update frontpage status for the article.		 *		 * First we include the frontpage table and instantiate an instance of it.		 */		require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_frontpage'.DS.'tables'.DS.'frontpage.php');		$fp = new TableFrontPage($db);		// Is the article viewable on the frontpage?		if (JRequest::getVar( 'frontpage', 0, '', 'int' ))		{			// Is the item already viewable on the frontpage?			if (!$fp->load($row->id))			{				// Insert the new entry				$query = 'INSERT INTO #__content_frontpage' .						' VALUES ( '. (int) $row->id .', 1 )';				$db->setQuery($query);				if (!$db->query())				{					JError::raiseError( 500, $db->stderr() );					return false;				}				$fp->ordering = 1;			}		}		else		{			// Delete the item from frontpage if it exists			if (!$fp->delete($row->id)) {				$msg .= $fp->stderr();			}			$fp->ordering = 0;		}		$fp->reorder();		$cache = & JFactory::getCache('com_content');		$cache->clean();		$dispatcher->trigger('onAfterContentSave', array(&$row, $isNew));		switch ($task)		{			case 'go2menu' :				$mainframe->redirect('index.php?option=com_menus&menutype='.$menu);				break;			case 'go2menuitem' :				$mainframe->redirect('index.php?option=com_menus&menutype='.$menu.'&task=edit&id='.$menuid);				break;			case 'menulink' :				ContentHelper::menuLink($redirect, $row->id);				break;			case 'resethits' :				ContentHelper::resetHits($redirect, $row->id);				break;			case 'apply' :				$msg = JText::sprintf('SUCCESSFULLY SAVED CHANGES TO ARTICLE', $row->title);				$mainframe->redirect('index.php?option=com_content&sectionid='.$redirect.'&task=edit&cid[]='.$row->id, $msg);				break;			case 'save' :			default :				$msg = JText::sprintf('Successfully Saved Article', $row->title);				$mainframe->redirect('index.php?option=com_content&sectionid='.$redirect, $msg);				break;		}	}	/**	* Changes the state of one or more content pages	*	* @param string The name of the category section	* @param integer A unique category id (passed from an edit form)	* @param array An array of unique category id numbers	* @param integer 0 if unpublishing, 1 if publishing	* @param string The name of the current user	*/	function changeContent( $state = 0 )	{		global $mainframe;		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize variables		$db		= & JFactory::getDBO();		$user	= & JFactory::getUser();		$cid	= JRequest::getVar( 'cid', array(), 'post', 'array' );		JArrayHelper::toInteger($cid);		$option	= JRequest::getCmd( 'option' );		$task	= JRequest::getCmd( 'task' );		$rtask	= JRequest::getCmd( 'returntask', '', 'post' );		if ($rtask) {			$rtask = '&task='.$rtask;		}		if (count($cid) < 1) {			$redirect	= JRequest::getVar( 'redirect', '', 'post', 'int' );			$action		= ($state == 1) ? 'publish' : ($state == -1 ? 'archive' : 'unpublish');			$msg		= JText::_('Select an item to') . ' ' . JText::_($action);			$mainframe->redirect('index.php?option='.$option.$rtask.'&sectionid='.$redirect, $msg, 'error');		}		// Get some variables for the query		$uid	= $user->get('id');		$total	= count($cid);		$cids	= implode(',', $cid);		$query = 'UPDATE #__content' .				' SET state = '. (int) $state .				' WHERE id IN ( '. $cids .' ) AND ( checked_out = 0 OR (checked_out = '. (int) $uid .' ) )';		$db->setQuery($query);		if (!$db->query()) {			JError::raiseError( 500, $db->getErrorMsg() );			return false;		}		if (count($cid) == 1) {			$row = & JTable::getInstance('content');			$row->checkin($cid[0]);		}		switch ($state)		{			case -1 :				$msg = JText::sprintf('Item(s) successfully Archived', $total);				break;			case 1 :				$msg = JText::sprintf('Item(s) successfully Published', $total);				break;			case 0 :			default :				if ($task == 'unarchive') {					$msg = JText::sprintf('Item(s) successfully Unarchived', $total);				} else {					$msg = JText::sprintf('Item(s) successfully Unpublished', $total);				}				break;		}		$cache = & JFactory::getCache('com_content');		$cache->clean();		// Get some return/redirect information from the request		$redirect	= JRequest::getVar( 'redirect', $row->sectionid, 'post', 'int' );		$mainframe->redirect('index.php?option='.$option.$rtask.'&sectionid='.$redirect, $msg);	}	/**	* Changes the frontpage state of one or more articles	*	*/	function toggleFrontPage()	{		global $mainframe;		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize variables		$db		=& JFactory::getDBO();		$cid	= JRequest::getVar( 'cid', array(), 'post', 'array' );		$option	= JRequest::getCmd( 'option' );		$msg	= null;		JArrayHelper::toInteger($cid);		if (count($cid) < 1) {			$msg = JText::_('Select an item to toggle');			$mainframe->redirect('index.php?option='.$option, $msg, 'error');		}		/*		 * We need to update frontpage status for the articles.		 *		 * First we include the frontpage table and instantiate an instance of		 * it.		 */		require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_frontpage'.DS.'tables'.DS.'frontpage.php');		$fp = new TableFrontPage($db);		foreach ($cid as $id)		{			// toggles go to first place			if ($fp->load($id)) {				if (!$fp->delete($id)) {					$msg .= $fp->stderr();				}				$fp->ordering = 0;			} else {				// new entry				$query = 'INSERT INTO #__content_frontpage' .						' VALUES ( '. (int) $id .', 0 )';				$db->setQuery($query);				if (!$db->query()) {					JError::raiseError( 500, $db->stderr() );					return false;				}				$fp->ordering = 0;			}			$fp->reorder();		}		$cache = & JFactory::getCache('com_content');		$cache->clean();		$mainframe->redirect('index.php?option='.$option, $msg);	}	function removeContent()	{		global $mainframe;		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize variables		$db			= & JFactory::getDBO();		$cid		= JRequest::getVar( 'cid', array(), 'post', 'array' );		$option		= JRequest::getCmd( 'option' );		$return		= JRequest::getCmd( 'returntask', '', 'post' );		$nullDate	= $db->getNullDate();		JArrayHelper::toInteger($cid);		if (count($cid) < 1) {			$msg =  JText::_('Select an item to delete');			$mainframe->redirect('index.php?option='.$option, $msg, 'error');		}		// Removed content gets put in the trash [state = -2] and ordering is always set to 0		$state		= '-2';		$ordering	= '0';		// Get the list of content id numbers to send to trash.		$cids = implode(',', $cid);		// Update articles in the database		$query = 'UPDATE #__content' .				' SET state = '.(int) $state .				', ordering = '.(int) $ordering .				', checked_out = 0, checked_out_time = '.$db->Quote($nullDate).				' WHERE id IN ( '. $cids. ' )';		$db->setQuery($query);		if (!$db->query())		{			JError::raiseError( 500, $db->getErrorMsg() );			return false;		}		$cache = & JFactory::getCache('com_content');		$cache->clean();		$msg = JText::sprintf('Item(s) sent to the Trash', count($cid));		$mainframe->redirect('index.php?option='.$option.'&task='.$return, $msg);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美伦理视频网站| 久久超碰97人人做人人爱| 国产精品羞羞答答xxdd| 欧美不卡一区二区三区| 激情亚洲综合在线| 国产欧美日韩麻豆91| 色噜噜偷拍精品综合在线| 亚洲色图制服诱惑| 亚洲欧洲日韩在线| 欧美日韩国产区一| 精品一区二区三区在线播放视频| 51精品国自产在线| 国产精品对白交换视频 | 一本色道久久加勒比精品 | 成人小视频免费在线观看| 欧美色精品天天在线观看视频| 欧美精品一级二级| 久久精品无码一区二区三区| 亚洲一区二区精品3399| 欧美色图在线观看| 亚洲国产日韩a在线播放| 97久久超碰国产精品| 亚洲一区二区三区不卡国产欧美| 欧美一区二区成人| 欧美性生活影院| 91免费在线播放| 国产一区二区电影| 免费在线视频一区| 亚洲成人午夜电影| 亚洲欧美日韩国产成人精品影院| 欧美日本高清视频在线观看| 99国产精品久| 99精品久久免费看蜜臀剧情介绍| 狠狠色狠狠色综合系列| 日韩av电影免费观看高清完整版| 国产精品久久久久久久久免费樱桃 | 亚洲视频一二区| 国产亚洲综合色| 国产人妖乱国产精品人妖| 91精选在线观看| 成人av影院在线| 丰满放荡岳乱妇91ww| 国产精品中文欧美| www.激情成人| 色8久久人人97超碰香蕉987| 91黄色免费看| 日韩精品一区二区三区视频 | 亚洲高清免费观看高清完整版在线观看| 欧美男生操女生| 精品1区2区在线观看| 久久久久97国产精华液好用吗| 国产欧美va欧美不卡在线| 中文字幕在线一区免费| 亚洲国产va精品久久久不卡综合| 亚洲va国产天堂va久久en| 久久69国产一区二区蜜臀 | 精品一区二区在线视频| 蜜臀精品久久久久久蜜臀| 不卡免费追剧大全电视剧网站| 91在线免费视频观看| 成年人午夜久久久| 在线观看国产91| 国产日韩精品一区二区三区 | 欧美视频你懂的| 亚洲国产成人私人影院tom| 秋霞国产午夜精品免费视频| 99久久er热在这里只有精品15 | 不卡电影一区二区三区| 日韩亚洲欧美成人一区| 中文字幕亚洲欧美在线不卡| 美女视频免费一区| 日韩欧美资源站| 亚洲成人777| 7878成人国产在线观看| 亚洲444eee在线观看| 精品污污网站免费看| 亚洲精品国产成人久久av盗摄| 成人免费视频一区| 中文字幕视频一区| 一本久久精品一区二区| 亚洲蜜臀av乱码久久精品| 99久久免费精品| 亚洲一区免费观看| 欧美精品 国产精品| 日韩电影在线观看电影| 日韩欧美久久久| 国产主播一区二区| 亚洲欧美自拍偷拍色图| 91亚洲精品乱码久久久久久蜜桃 | 一本久道久久综合中文字幕| 亚洲男人电影天堂| 欧美一区二区三区在线观看视频 | 亚洲免费电影在线| 日韩午夜电影在线观看| 粉嫩绯色av一区二区在线观看| 亚洲欧美在线高清| 精品久久久网站| 欧美性xxxxx极品少妇| 激情成人综合网| 亚洲毛片av在线| 国产日本欧洲亚洲| 欧美大黄免费观看| 欧美四级电影网| 国产成人精品一区二区三区四区| 亚洲一级在线观看| 中文字幕精品三区| 精品国产91洋老外米糕| 欧美日韩一区二区在线观看 | 国产欧美日韩在线看| jlzzjlzz国产精品久久| 蜜臀国产一区二区三区在线播放| 亚洲视频一区二区在线观看| 欧美一区二区三区免费观看视频| 成人小视频免费观看| 日韩av一区二区在线影视| 欧美日韩一级二级| 欧美日韩成人在线一区| 99国产精品国产精品毛片| 国产传媒一区在线| 免费在线观看精品| 国产精品不卡在线| 国产日韩精品一区二区三区 | 亚洲精品第一国产综合野| 国产性天天综合网| 欧美tk丨vk视频| 欧美精品国产精品| 欧美日韩一区二区在线视频| 欧美一区二区在线播放| 欧美日韩国产三级| 56国语精品自产拍在线观看| 欧美吻胸吃奶大尺度电影| 日本丰满少妇一区二区三区| 欧美视频一区二区在线观看| 在线观看日韩精品| 精品视频免费在线| 欧美剧情片在线观看| 欧美v国产在线一区二区三区| 欧美日本在线一区| 精品国产免费人成电影在线观看四季 | 91精品1区2区| 欧美久久一二区| 欧美日韩免费在线视频| 欧美不卡一区二区三区| 亚洲欧美日韩国产手机在线 | 日本欧美在线观看| 麻豆精品视频在线观看免费 | 久久久精品国产99久久精品芒果 | 日韩影院免费视频| 成人18视频在线播放| 久久久高清一区二区三区| 亚洲欧洲av色图| 国产一区二区三区免费看 | 亚洲欧美日韩综合aⅴ视频| 亚洲久草在线视频| 国产在线看一区| 欧美日韩精品福利| 一区二区久久久| 风间由美性色一区二区三区| 欧美一区二区三区视频在线 | 欧美男男青年gay1069videost| ww久久中文字幕| 青青草视频一区| 欧美三级欧美一级| 亚洲伦在线观看| 粉嫩久久99精品久久久久久夜| 色综合天天综合网天天狠天天| 日韩欧美123| 亚洲精品自拍动漫在线| 91在线丨porny丨国产| 国产精品久99| 不卡电影免费在线播放一区| 日韩三级视频中文字幕| 激情都市一区二区| 国产欧美视频一区二区三区| 久久99久久99| 欧美r级在线观看| 色婷婷一区二区| 日日夜夜精品免费视频| 精品国产乱码91久久久久久网站| 免费亚洲电影在线| 亚洲精品在线电影| 99在线热播精品免费| 日韩一区有码在线| 精品视频一区三区九区| 午夜电影久久久| 国产亚洲人成网站| 在线视频一区二区免费| 日韩精品国产精品| 日韩久久一区二区| 国产三级欧美三级| 欧美日本精品一区二区三区| 国产精品18久久久久久久久| 亚洲精品日日夜夜| 亚洲欧洲精品天堂一级| 欧美一级国产精品| 国产一区二区在线观看免费| 亚洲男人的天堂av| 欧美片网站yy| 欧美乱妇15p| 色综合天天视频在线观看|