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

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

?? controller.php

?? Joomla!除了具有新聞/文章管理
?? PHP
?? 第 1 頁 / 共 3 頁
字號:
	/**	* Cancels an edit operation	*/	function cancelContent()	{		global $mainframe;		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize variables		$db	= & JFactory::getDBO();		// Check the article in if checked out		$row = & JTable::getInstance('content');		$row->bind(JRequest::get('post'));		$row->checkin();		$mainframe->redirect('index.php?option=com_content');	}	/**	* Moves the order of a record	* @param integer The increment to reorder by	*/	function orderContent($direction)	{		global $mainframe;		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize variables		$db		= & JFactory::getDBO();		$cid	= JRequest::getVar( 'cid', array(), 'post', 'array' );		if (isset( $cid[0] ))		{			$row = & JTable::getInstance('content');			$row->load( (int) $cid[0] );			$row->move($direction, 'catid = ' . (int) $row->catid . ' AND state >= 0' );			$cache = & JFactory::getCache('com_content');			$cache->clean();		}		$mainframe->redirect('index.php?option=com_content');	}	/**	* Form for moving item(s) to a different section and category	*/	function moveSection()	{		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize variables		$db			=& JFactory::getDBO();		$cid		= JRequest::getVar( 'cid', array(), 'post', 'array' );		$sectionid	= JRequest::getVar( 'sectionid', 0, '', 'int' );		JArrayHelper::toInteger($cid);		if (count($cid) < 1) {			$msg = JText::_('Select an item to move');			$mainframe->redirect('index.php?option=com_content', $msg, 'error');		}		//seperate contentids		$cids = implode(',', $cid);		// Articles query		$query = 'SELECT a.title' .				' FROM #__content AS a' .				' WHERE ( a.id IN ( '. $cids .' ) )' .				' ORDER BY a.title';		$db->setQuery($query);		$items = $db->loadObjectList();		$query = 'SELECT CONCAT_WS( ", ", s.id, c.id ) AS `value`, CONCAT_WS( " / ", s.title, c.title ) AS `text`' .				' FROM #__sections AS s' .				' INNER JOIN #__categories AS c ON c.section = s.id' .				' WHERE s.scope = "content"' .				' ORDER BY s.title, c.title';		$db->setQuery($query);		$rows[] = JHTML::_('select.option', "0, 0", JText::_('UNCATEGORIZED'));		$rows = array_merge($rows, $db->loadObjectList());		// build the html select list		$sectCatList = JHTML::_('select.genericlist',  $rows, 'sectcat', 'class="inputbox" size="8"', 'value', 'text', null);		ContentView::moveSection($cid, $sectCatList, 'com_content', $sectionid, $items);	}	/**	* Save the changes to move item(s) to a different section and category	*/	function moveSectionSave()	{		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(0), 'post', 'array' );		$sectionid	= JRequest::getVar( 'sectionid', 0, '', 'int' );		$option		= JRequest::getCmd( 'option' );		JArrayHelper::toInteger($cid, array(0));		$sectcat = JRequest::getVar( 'sectcat', '', 'post', 'string' );		$sectcat = explode(',', $sectcat);		$newsect = (int) @$sectcat[0];		$newcat = (int) @$sectcat[1];		if ((!$newsect || !$newcat) && ($sectcat !== array('0', ' 0'))) {			$mainframe->redirect("index.php?option=com_content&sectionid=$sectionid", JText::_('An error has occurred'));		}		// find section name		$query = 'SELECT a.title' .				' FROM #__sections AS a' .				' WHERE a.id = '. (int) $newsect;		$db->setQuery($query);		$section = $db->loadResult();		// find category name		$query = 'SELECT a.title' .				' FROM #__categories AS a' .				' WHERE a.id = '. (int) $newcat;		$db->setQuery($query);		$category = $db->loadResult();		$total	= count($cid);		$cids		= implode(',', $cid);		$uid		= $user->get('id');		$row = & JTable::getInstance('content');		// update old orders - put existing items in last place		foreach ($cid as $id)		{			$row->load(intval($id));			$row->ordering = 0;			$row->store();			$row->reorder('catid = '.(int) $row->catid.' AND state >= 0');		}		$query = 'UPDATE #__content SET sectionid = '.(int) $newsect.', catid = '.(int) $newcat.				' 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;		}		// update new orders - put items in last place		foreach ($cid as $id)		{			$row->load(intval($id));			$row->ordering = 0;			$row->store();			$row->reorder('catid = '.(int) $row->catid.' AND state >= 0');		}		if ($section && $category) {			$msg = JText::sprintf('Item(s) successfully moved to Section', $total, $section, $category);		} else {			$msg = JText::sprintf('ITEM(S) SUCCESSFULLY MOVED TO UNCATEGORIZED', $total);		}		$mainframe->redirect('index.php?option='.$option.'&sectionid='.$sectionid, $msg);	}	/**	* Form for copying item(s)	**/	function copyItem()	{		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize variables		$db			= & JFactory::getDBO();		$cid		= JRequest::getVar( 'cid', array(), 'post', 'array' );		$sectionid	= JRequest::getVar( 'sectionid', 0, '', 'int' );		$option		= JRequest::getCmd( 'option' );		JArrayHelper::toInteger($cid);		if (count($cid) < 1) {			$msg = JText::_('Select an item to move');			$mainframe->redirect('index.php?option='.$option, $msg, 'error');		}		//seperate contentids		$cids = implode(',', $cid);		## Articles query		$query = 'SELECT a.title' .				' FROM #__content AS a' .				' WHERE ( a.id IN ( '. $cids .' ) )' .				' ORDER BY a.title';		$db->setQuery($query);		$items = $db->loadObjectList();		## Section & Category query		$query = 'SELECT CONCAT_WS(",",s.id,c.id) AS `value`, CONCAT_WS(" / ", s.title, c.title) AS `text`' .				' FROM #__sections AS s' .				' INNER JOIN #__categories AS c ON c.section = s.id' .				' WHERE s.scope = "content"' .				' ORDER BY s.title, c.title';		$db->setQuery($query);		// Add a row for uncategorized content		$uncat	= JHTML::_('select.option', '0,0', JText::_('UNCATEGORIZED'));		$rows	= $db->loadObjectList();		array_unshift($rows, $uncat);		// build the html select list		$sectCatList = JHTML::_('select.genericlist', $rows, 'sectcat', 'class="inputbox" size="10"', 'value', 'text', NULL);		ContentView::copySection($option, $cid, $sectCatList, $sectionid, $items);	}	/**	* saves Copies of items	**/	function copyItemSave()	{		global $mainframe;		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize variables		$db			= & JFactory::getDBO();		$cid		= JRequest::getVar( 'cid', array(), 'post', 'array' );		$sectionid	= JRequest::getVar( 'sectionid', 0, '', 'int' );		$option		= JRequest::getCmd( 'option' );		JArrayHelper::toInteger($cid);		$item	= null;		$sectcat = JRequest::getVar( 'sectcat', '-1,-1', 'post', 'string' );		//seperate sections and categories from selection		$sectcat = explode(',', $sectcat);		$newsect = (int) @$sectcat[0];		$newcat = (int) @$sectcat[1];		if (($newsect == -1) || ($newcat == -1)) {			$mainframe->redirect('index.php?option=com_content&sectionid='.$sectionid, JText::_('An error has occurred'));		}		// find section name		$query = 'SELECT a.title' .				' FROM #__sections AS a' .				' WHERE a.id = '. (int) $newsect;		$db->setQuery($query);		$section = $db->loadResult();		// find category name		$query = 'SELECT a.title' .				' FROM #__categories AS a' .				' WHERE a.id = '. (int) $newcat;		$db->setQuery($query);		$category = $db->loadResult();		if (($newsect == 0) && ($newcat == 0))		{			$section	= JText::_('UNCATEGORIZED');			$category	= JText::_('UNCATEGORIZED');		}		$total = count($cid);		for ($i = 0; $i < $total; $i ++)		{			$row = & JTable::getInstance('content');			// main query			$query = 'SELECT a.*' .					' FROM #__content AS a' .					' WHERE a.id = '.(int) $cid[$i];			$db->setQuery($query, 0, 1);			$item = $db->loadObject();			// values loaded into array set for store			$row->id						= NULL;			$row->sectionid					= $newsect;			$row->catid						= $newcat;			$row->hits						= '0';			$row->ordering					= '0';			$row->title						= $item->title;			$row->alias						= $item->alias;			$row->title_alias				= $item->title_alias;			$row->introtext					= $item->introtext;			$row->fulltext					= $item->fulltext;			$row->state						= $item->state;			$row->mask						= $item->mask;			$row->created					= $item->created;			$row->created_by				= $item->created_by;			$row->created_by_alias			= $item->created_by_alias;			$row->modified					= $item->modified;			$row->modified_by				= $item->modified_by;			$row->checked_out				= $item->checked_out;			$row->checked_out_time			= $item->checked_out_time;			$row->publish_up				= $item->publish_up;			$row->publish_down				= $item->publish_down;			$row->images					= $item->images;			$row->attribs					= $item->attribs;			$row->version					= $item->parentid;			$row->parentid					= $item->parentid;			$row->metakey					= $item->metakey;			$row->metadesc					= $item->metadesc;			$row->access					= $item->access;			if (!$row->check()) {				JError::raiseError( 500, $row->getError() );				return false;			}			if (!$row->store()) {				JError::raiseError( 500, $row->getError() );				return false;			}			$row->reorder('catid='.(int) $row->catid.' AND state >= 0');		}		$msg = JText::sprintf('Item(s) successfully copied to Section', $total, $section, $category);		$mainframe->redirect('index.php?option='.$option.'&sectionid='.$sectionid, $msg);	}	/**	* @param integer The id of the article	* @param integer The new access level	* @param string The URL option	*/	function accessMenu($access)	{		global $mainframe;		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize variables		$db		= & JFactory::getDBO();		$cid	= JRequest::getVar( 'cid', array(0), 'post', 'array' );		$option	= JRequest::getCmd( 'option' );		$cid	= $cid[0];		// Create and load the article table object		$row = & JTable::getInstance('content');		$row->load($cid);		$row->access = $access;		// Ensure the article object is valid		if (!$row->check()) {			JError::raiseError( 500, $row->getError() );			return false;		}		// Store the changes		if (!$row->store()) {			JError::raiseError( 500, $row->getError() );			return false;		}		$cache = & JFactory::getCache('com_content');		$cache->clean();		$mainframe->redirect('index.php?option='.$option);	}	function saveOrder()	{		global $mainframe;		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize variables		$db			= & JFactory::getDBO();		$cid		= JRequest::getVar( 'cid', array(0), 'post', 'array' );		$order		= JRequest::getVar( 'order', array (0), 'post', 'array' );		$redirect	= JRequest::getVar( 'redirect', 0, 'post', 'int' );		$rettask	= JRequest::getVar( 'returntask', '', 'post', 'cmd' );		$total		= count($cid);		$conditions	= array ();		JArrayHelper::toInteger($cid, array(0));		JArrayHelper::toInteger($order, array(0));		// Instantiate an article table object		$row = & JTable::getInstance('content');		// Update the ordering for items in the cid array		for ($i = 0; $i < $total; $i ++)		{			$row->load( (int) $cid[$i] );			if ($row->ordering != $order[$i]) {				$row->ordering = $order[$i];				if (!$row->store()) {					JError::raiseError( 500, $db->getErrorMsg() );					return false;				}				// remember to updateOrder this group				$condition = 'catid = '.(int) $row->catid.' AND state >= 0';				$found = false;				foreach ($conditions as $cond)					if ($cond[1] == $condition) {						$found = true;						break;					}				if (!$found)					$conditions[] = array ($row->id, $condition);			}		}		// execute updateOrder for each group		foreach ($conditions as $cond)		{			$row->load($cond[0]);			$row->reorder($cond[1]);		}		$cache = & JFactory::getCache('com_content');		$cache->clean();		$msg = JText::_('New ordering saved');		switch ($rettask)		{			case 'showarchive' :				$mainframe->redirect('index.php?option=com_content&task=showarchive&sectionid='.$redirect, $msg);				break;			default :				$mainframe->redirect('index.php?option=com_content&sectionid='.$redirect, $msg);				break;		}	}	function previewContent()	{		// Initialize variables		$document		=& JFactory::getDocument();		$db 			=& JFactory::getDBO();		$id				= JRequest::getVar( 'id', 0, '', 'int' );		$option			= JRequest::getCmd( 'option' );		// Get the current default template		$query = 'SELECT template' .				' FROM #__templates_menu' .				' WHERE client_id = 0' .				' AND menuid = 0';		$db->setQuery($query);		$template = $db->loadResult();		// check if template editor stylesheet exists		if (!file_exists( JPATH_SITE.DS.'templates'.DS.$template.DS.'css'.DS.'editor.css' )) {			$template = 'system';		}		// Set page title		$document->setTitle(JText::_('Article Preview'));		$document->addStyleSheet(JURI::root() . 'templates/'.$template.'/css/editor.css');		$document->setBase(JUri::root());		// Render article preview		ContentView::previewContent();	}	function insertPagebreak()	{		$document =& JFactory::getDocument();		$document->setTitle(JText::_('PGB ARTICLE PAGEBRK'));		ContentView::insertPagebreak();	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
韩国三级在线一区| 亚洲午夜激情网页| 福利一区二区在线| 欧美激情综合在线| 国产麻豆精品久久一二三| 日本一区二区三区电影| 成人精品国产免费网站| 亚洲欧美日韩小说| 欧美日韩国产一区二区三区地区| 亚洲a一区二区| 精品国产一区二区三区不卡| 高清在线观看日韩| 亚洲另类春色校园小说| 69久久夜色精品国产69蝌蚪网| 美女看a上一区| 中文成人综合网| 欧美三级韩国三级日本三斤| 日本成人超碰在线观看| 中文字幕av在线一区二区三区| 93久久精品日日躁夜夜躁欧美| 天天综合网 天天综合色| 2023国产精品自拍| 一本一道波多野结衣一区二区| 三级精品在线观看| 国产日韩欧美不卡| 欧美日韩国产美| 国产精品一级片在线观看| 亚洲日本va在线观看| 日韩精品专区在线影院重磅| 91在线丨porny丨国产| 日本三级亚洲精品| 亚洲视频一区二区免费在线观看| 91精品国产综合久久久久久久久久 | 精品久久人人做人人爱| 不卡av免费在线观看| 午夜不卡av免费| 国产精品美女久久久久aⅴ| 91精品麻豆日日躁夜夜躁| bt7086福利一区国产| 麻豆精品新av中文字幕| 亚洲精品第1页| 久久久久久久久久久久电影 | 亚洲成人一二三| 久久久国产精华| 欧美一区二区视频在线观看2020| 成人国产精品免费| 国产一区亚洲一区| 午夜精品免费在线观看| 自拍偷拍欧美精品| 久久久www成人免费无遮挡大片| 欧美久久久久久久久| 99re这里只有精品视频首页| 黑人巨大精品欧美一区| 日本aⅴ亚洲精品中文乱码| 夜夜夜精品看看| 中文字幕制服丝袜一区二区三区 | 亚洲人快播电影网| 中国色在线观看另类| 日韩欧美一二区| 欧美视频一区二区| 92精品国产成人观看免费| 成人av电影在线播放| 国产精品99久久久| 国产又黄又大久久| 麻豆成人久久精品二区三区红| 午夜电影一区二区| 亚洲成人精品一区| 亚洲一二三区视频在线观看| 亚洲精品国产精品乱码不99 | 欧美三级在线播放| 91福利国产精品| 日本道免费精品一区二区三区| 成人动漫一区二区在线| 成人av在线影院| av电影在线观看一区| 91丨九色丨蝌蚪丨老版| 成人av电影免费在线播放| 99在线精品免费| 99久久精品久久久久久清纯| 国产91露脸合集magnet | 免费在线观看成人| 欧美aaaaa成人免费观看视频| 青椒成人免费视频| 看国产成人h片视频| 国内精品国产成人国产三级粉色| 精品在线播放午夜| 国产精品一二三区| 国产精品一线二线三线| 国产大陆亚洲精品国产| 成人精品gif动图一区| 91免费精品国自产拍在线不卡| 91丨九色丨蝌蚪丨老版| 欧美日韩在线直播| 日韩一区二区电影| 久久久综合激的五月天| 中文字幕中文字幕一区| 亚洲h精品动漫在线观看| 视频一区二区不卡| 韩国精品久久久| 99在线精品观看| 欧美日韩国产在线播放网站| 欧美大度的电影原声| 欧美激情在线免费观看| 亚洲色图一区二区三区| 亚洲成av人片观看| 国内精品嫩模私拍在线| 91影院在线观看| 欧美一区二区三区影视| 欧美国产精品久久| 一区二区三区在线免费播放| 午夜激情一区二区| 国产成人欧美日韩在线电影| 91女人视频在线观看| 91精品国产欧美一区二区成人| 国产丝袜在线精品| 亚洲与欧洲av电影| 精品一区二区三区免费播放| 不卡电影一区二区三区| 欧美性一区二区| 久久综合久久久久88| 亚洲欧美日韩系列| 狠狠色综合播放一区二区| 一区在线播放视频| aaa欧美日韩| 国产精品国产三级国产a| 裸体一区二区三区| 日韩欧美激情一区| 亚洲v精品v日韩v欧美v专区| 91无套直看片红桃| 波多野结衣视频一区| 精品国产乱码久久久久久老虎| 天堂蜜桃一区二区三区| 亚洲在线中文字幕| 国产成人免费高清| 欧美日韩精品福利| 亚洲日本韩国一区| 国产精品一区免费视频| 欧美巨大另类极品videosbest| 国产片一区二区三区| 日本欧美加勒比视频| 91在线你懂得| caoporn国产精品| 激情图区综合网| 国产美女在线观看一区| 欧美日韩一区二区三区不卡| 国产婷婷精品av在线| 蜜桃精品在线观看| 欧美三级视频在线播放| 亚洲欧美日本韩国| 岛国一区二区三区| 久久综合色一综合色88| 日本在线不卡视频一二三区| 在线视频欧美区| 亚洲男人都懂的| 成人一级片网址| 久久久久久99精品| 国内成+人亚洲+欧美+综合在线| 在线综合亚洲欧美在线视频| 亚洲综合精品自拍| 欧美性生交片4| 一区二区三区美女视频| 91久久精品一区二区三| 国产精品久久久久天堂| www.欧美日韩| 中文字幕精品一区二区精品绿巨人| 国产精品456| 国产视频一区在线播放| 国产精品一线二线三线精华| 精品国产第一区二区三区观看体验 | 在线91免费看| 天天av天天翘天天综合网| 欧洲国内综合视频| 亚洲成人av一区二区三区| 欧洲在线/亚洲| 偷拍一区二区三区| 日韩一区二区免费在线电影| 久久成人免费网站| 久久久国产综合精品女国产盗摄| 国产精品自拍三区| 亚洲特级片在线| 欧美人xxxx| 国产一区二区三区在线观看免费| 久久久久久久久99精品| 成人ar影院免费观看视频| 中文字幕一区日韩精品欧美| 91九色02白丝porn| 五月天欧美精品| 精品毛片乱码1区2区3区| 国产成人精品亚洲午夜麻豆| 中文字幕亚洲不卡| 欧美影片第一页| 秋霞av亚洲一区二区三| 久久一区二区三区四区| www.成人在线| 天使萌一区二区三区免费观看| 久久中文娱乐网| 一本色道久久综合亚洲91 | 精品福利一区二区三区 | 黄色小说综合网站| 亚洲视频精选在线|