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

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

?? controller.php

?? 簡介:一款免費開源的內容管理系統(CMS)
?? PHP
?? 第 1 頁 / 共 2 頁
字號:
<?php/** * @version		$Id: controller.php 10381 2008-06-01 03:35:53Z pasamio $ * @package		Joomla * @subpackage	Templates * @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. *//** * @package		Joomla * @subpackage	Templates */class TemplatesController{	/**	* Compiles a list of installed, version 4.5+ templates	*	* Based on xml files found.  If no xml file found the template	* is ignored	*/	function viewTemplates()	{		global $mainframe, $option;		// Initialize some variables		$db		=& JFactory::getDBO();		$client	=& JApplicationHelper::getClientInfo(JRequest::getVar('client', '0', '', 'int'));		// Initialize the pagination variables		$limit		= $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');		$limitstart = $mainframe->getUserStateFromRequest($option.'.'.$client->id.'.limitstart', 'limitstart', 0, 'int');		$select[] 			= JHTML::_('select.option', '0', JText::_('Site'));		$select[] 			= JHTML::_('select.option', '1', JText::_('Administrator'));		$lists['client'] 	= JHTML::_('select.genericlist',  $select, 'client', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $client->id);		$tBaseDir = $client->path.DS.'templates';		//get template xml file info		$rows = array();		$rows = TemplatesHelper::parseXMLTemplateFiles($tBaseDir);		// set dynamic template information		for($i = 0; $i < count($rows); $i++)  {			$rows[$i]->assigned		= TemplatesHelper::isTemplateAssigned($rows[$i]->directory);			$rows[$i]->published	= TemplatesHelper::isTemplateDefault($rows[$i]->directory, $client->id);		}		jimport('joomla.html.pagination');		$page = new JPagination(count($rows), $limitstart, $limit);		$rows = array_slice($rows, $page->limitstart, $page->limit);		require_once (JPATH_COMPONENT.DS.'admin.templates.html.php');		TemplatesView::showTemplates($rows, $lists, $page, $option, $client);	}	/**	* Show the template with module position in an iframe	*/	function previewTemplate()	{		$template	= JRequest::getVar('id', '', 'method', 'cmd');		$option 	= JRequest::getCmd('option');		$client		=& JApplicationHelper::getClientInfo(JRequest::getVar('client', '0', '', 'int'));		if (!$template)		{			return JError::raiseWarning( 500, JText::_('Template not specified') );		}		// Set FTP credentials, if given		jimport('joomla.client.helper');		JClientHelper::setCredentialsFromRequest('ftp');		require_once (JPATH_COMPONENT.DS.'admin.templates.html.php');		TemplatesView::previewTemplate($template, true, $client, $option);	}	/**	* Publish, or make current, the selected template	*/	function publishTemplate()	{		global $mainframe;		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize some variables		$db		= & JFactory::getDBO();		$cid	= JRequest::getVar('cid', array(), 'method', 'array');		$cid	= array(JFilterInput::clean(@$cid[0], 'cmd'));		$option	= JRequest::getCmd('option');		$client	=& JApplicationHelper::getClientInfo(JRequest::getVar('client', '0', '', 'int'));		if ($cid[0])		{			$query = 'DELETE FROM #__templates_menu' .					' WHERE client_id = '.(int) $client->id .					' AND (menuid = 0 OR template = '.$db->Quote($cid[0]).')';			$db->setQuery($query);			$db->query();			$query = 'INSERT INTO #__templates_menu' .					' SET client_id = '.(int) $client->id .', template = '.$db->Quote($cid[0]).', menuid = 0';			$db->setQuery($query);			$db->query();		}		$mainframe->redirect('index.php?option='.$option.'&client='.$client->id);	}	function editTemplate()	{		jimport('joomla.filesystem.path');		// Initialize some variables		$db			= & JFactory::getDBO();		$cid		= JRequest::getVar('cid', array(), 'method', 'array');		$cid		= array(JFilterInput::clean(@$cid[0], 'cmd'));		$template	= $cid[0];		$option		= JRequest::getCmd('option');		$client		=& JApplicationHelper::getClientInfo(JRequest::getVar('client', '0', '', 'int'));		if (!$cid[0]) {			return JError::raiseWarning( 500, JText::_('Template not specified') );		}		$tBaseDir	= JPath::clean($client->path.DS.'templates');		if (!is_dir( $tBaseDir . DS . $template )) {			return JError::raiseWarning( 500, JText::_('Template not found') );		}		$lang =& JFactory::getLanguage();		$lang->load( 'tpl_'.$template, JPATH_ADMINISTRATOR );		$ini	= $client->path.DS.'templates'.DS.$template.DS.'params.ini';		$xml	= $client->path.DS.'templates'.DS.$template.DS.'templateDetails.xml';		$row	= TemplatesHelper::parseXMLTemplateFile($tBaseDir, $template);		jimport('joomla.filesystem.file');		// Read the ini file		if (JFile::exists($ini)) {			$content = JFile::read($ini);		} else {			$content = null;		}		$params = new JParameter($content, $xml, 'template');		$assigned = TemplatesHelper::isTemplateAssigned($row->directory);		$default = TemplatesHelper::isTemplateDefault($row->directory, $client->id);		if($client->id == '1')  {			$lists['selections'] =  JText::_('Cannot assign an administrator template');		} else {			$lists['selections'] = TemplatesHelper::createMenuList($template);		}		if ($default) {			$row->pages = 'all';		} elseif (!$assigned) {			$row->pages = 'none';		} else {			$row->pages = null;		}		// Set FTP credentials, if given		jimport('joomla.client.helper');		$ftp =& JClientHelper::setCredentialsFromRequest('ftp');		require_once (JPATH_COMPONENT.DS.'admin.templates.html.php');		TemplatesView::editTemplate($row, $lists, $params, $option, $client, $ftp, $template);	}	function saveTemplate()	{		global $mainframe;		// Check for request forgeries		JRequest::checkToken() or jexit( 'Invalid Token' );		// Initialize some variables		$db			 = & JFactory::getDBO();		$template	= JRequest::getVar('id', '', 'method', 'cmd');		$option		= JRequest::getVar('option', '', '', 'cmd');		$client		=& JApplicationHelper::getClientInfo(JRequest::getVar('client', '0', '', 'int'));		$menus		= JRequest::getVar('selections', array(), 'post', 'array');		$params		= JRequest::getVar('params', array(), 'post', 'array');		$default	= JRequest::getBool('default');		JArrayHelper::toInteger($menus);		if (!$template) {			$mainframe->redirect('index.php?option='.$option.'&client='.$client->id, JText::_('Operation Failed').': '.JText::_('No template specified.'));		}		// Set FTP credentials, if given		jimport('joomla.client.helper');		JClientHelper::setCredentialsFromRequest('ftp');		$ftp = JClientHelper::getCredentials('ftp');		$file = $client->path.DS.'templates'.DS.$template.DS.'params.ini';		jimport('joomla.filesystem.file');		if (JFile::exists($file) && count($params))		{			$txt = null;			foreach ($params as $k => $v) {				$txt .= "$k=$v\n";			}			// Try to make the params file writeable			if (!$ftp['enabled'] && JPath::isOwner($file) && !JPath::setPermissions($file, '0755')) {				JError::raiseNotice('SOME_ERROR_CODE', JText::_('Could not make the template parameter file writable'));			}			$return = JFile::write($file, $txt);			// Try to make the params file unwriteable			if (!$ftp['enabled'] && JPath::isOwner($file) && !JPath::setPermissions($file, '0555')) {				JError::raiseNotice('SOME_ERROR_CODE', JText::_('Could not make the template parameter file unwritable'));			}			if (!$return) {				$mainframe->redirect('index.php?option='.$option.'&client='.$client->id, JText::_('Operation Failed').': '.JText::sprintf('Failed to open file for writing.', $file));			}		}		// Reset all existing assignments		$query = 'DELETE FROM #__templates_menu' .				' WHERE client_id = 0' .				' AND template = '.$db->Quote( $template );		$db->setQuery($query);		$db->query();		if ($default) {			$menus = array( 0 );		}		foreach ($menus as $menuid)		{			// If 'None' is not in array			if ((int) $menuid >= 0)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产美女精品一区二区三区| 国产福利一区在线| 国产精品久久福利| 欧美高清hd18日本| jizz一区二区| 国产精品白丝jk白祙喷水网站| 亚洲资源中文字幕| 日本一二三不卡| 日韩欧美一二区| 在线看日韩精品电影| 粉嫩蜜臀av国产精品网站| 日韩电影在线看| 亚洲特黄一级片| 欧美激情资源网| 26uuu精品一区二区 | 欧美视频三区在线播放| 国产成人精品一区二| 精品在线播放免费| 日本中文字幕一区二区有限公司| 亚洲精选免费视频| 国产精品美女久久久久久| 久久只精品国产| 精品免费视频.| 日韩一区二区在线播放| 欧美日韩国产免费一区二区| 91啪在线观看| 99这里都是精品| 成人午夜视频福利| 国产成人日日夜夜| 国产精品资源站在线| 极品少妇xxxx偷拍精品少妇| 日本女人一区二区三区| 日韩成人av影视| 亚洲v中文字幕| 日韩中文字幕区一区有砖一区 | 中文av字幕一区| 久久久久国产精品人| 日韩美女一区二区三区| 日韩一区二区三区免费看 | 色综合久久88色综合天天6| av中文字幕在线不卡| 成人av资源在线观看| 91天堂素人约啪| 色综合久久久网| 欧美中文字幕一二三区视频| 91黄色免费版| 69久久夜色精品国产69蝌蚪网| 在线观看亚洲一区| 777久久久精品| 欧美成人精品1314www| 精品蜜桃在线看| 国产欧美日韩另类一区| 国产精品久久毛片| 综合电影一区二区三区| 亚洲精品高清视频在线观看| 亚洲午夜电影在线观看| 日本欧美一区二区| 久久91精品国产91久久小草 | 欧美日韩国产高清一区二区三区| 欧美三级欧美一级| 日韩一区二区三区三四区视频在线观看 | 一本大道av一区二区在线播放| 色国产综合视频| 欧美一区二区三区视频免费播放| 精品少妇一区二区| 国产欧美精品区一区二区三区 | 精品无人码麻豆乱码1区2区| 国产精品一区久久久久| 91小视频在线免费看| 欧美日韩国产影片| www久久精品| 一区二区在线看| 美女www一区二区| av亚洲精华国产精华精| 在线播放欧美女士性生活| 久久精品无码一区二区三区| 亚洲精品视频在线看| 美国一区二区三区在线播放| 国产成人av自拍| 欧美日韩一区二区电影| 久久久无码精品亚洲日韩按摩| 国产精品久久毛片| 欧美aaa在线| 99久精品国产| 日韩欧美色综合网站| 中文字幕一区二区三区四区不卡 | 欧美日本一区二区| 国产色综合久久| 亚洲国产日韩一区二区| 国产成人免费视频精品含羞草妖精| 在线观看日韩电影| 国产日韩欧美一区二区三区乱码| 亚洲一区二区3| 国产风韵犹存在线视精品| 欧美日韩国产一区| 国产精品无人区| 麻豆免费看一区二区三区| 91影视在线播放| 久久精品人人做人人爽97| 午夜精品aaa| 91日韩一区二区三区| 久久精品一区二区三区不卡牛牛| 午夜精品福利一区二区三区蜜桃| 欧美日韩精品一区视频| 国产女人水真多18毛片18精品视频| 五月激情综合色| 色婷婷综合激情| 国产精品久久久久久久岛一牛影视 | 亚洲欧美色综合| 国产一区视频网站| 欧美一区二区日韩| 亚洲午夜免费福利视频| 99亚偷拍自图区亚洲| 国产日韩欧美激情| 精油按摩中文字幕久久| 在线播放91灌醉迷j高跟美女| 综合色中文字幕| 成人av高清在线| 国产亚洲欧美日韩在线一区| 麻豆成人91精品二区三区| 91.com视频| 午夜免费久久看| 欧洲一区二区三区在线| 17c精品麻豆一区二区免费| 日本一不卡视频| 欧美男男青年gay1069videost| 亚洲图片欧美激情| 97久久精品人人爽人人爽蜜臀| 国产精品网站在线| 国产69精品久久99不卡| 久久久99免费| 国产成人小视频| 中文在线一区二区| 国产成人超碰人人澡人人澡| 国产欧美在线观看一区| 不卡区在线中文字幕| 国产精品不卡在线观看| 99r国产精品| 亚洲精品成人悠悠色影视| 日本精品裸体写真集在线观看 | 国产一区二区h| 欧美精品一区二区三区高清aⅴ| 久久草av在线| 久久久综合九色合综国产精品| 国产麻豆成人精品| 日本一区二区成人| 91久久国产综合久久| 爽好久久久欧美精品| 欧美一区午夜精品| 国产综合久久久久久鬼色| 中文字幕精品一区二区精品绿巨人 | 欧美日韩另类一区| 日韩电影免费在线观看网站| 日韩欧美亚洲一区二区| 国产一区二区在线视频| 国产精品美女久久久久久久久| 不卡在线观看av| 国产精品不卡视频| 欧美中文字幕一二三区视频| 免费观看久久久4p| 中文一区二区在线观看| 色视频一区二区| 蜜桃传媒麻豆第一区在线观看| 精品电影一区二区三区| 成人av片在线观看| 亚洲大型综合色站| 精品成人免费观看| 91丨porny丨户外露出| 午夜日韩在线电影| 久久九九久精品国产免费直播| 99精品视频中文字幕| 视频一区欧美日韩| 国产女人aaa级久久久级| 欧美视频在线不卡| 精品一区二区三区日韩| 日韩美女视频一区二区 | 色呦呦一区二区三区| 日本成人在线网站| 欧美国产一区在线| 91精品国产综合久久精品性色| 国产剧情一区在线| 亚洲一区二区三区三| 久久久亚洲高清| 欧美乱熟臀69xxxxxx| 高清成人免费视频| 日韩av中文字幕一区二区| 国产精品久久久久影院亚瑟| 欧美一卡在线观看| 91蜜桃免费观看视频| 激情久久五月天| 偷拍一区二区三区| 中文字幕在线观看不卡| 日韩视频一区二区在线观看| 91毛片在线观看| 国产福利精品一区| 日本在线不卡视频一二三区| 亚洲人精品一区| 国产日韩欧美麻豆| 欧美mv日韩mv| 欧美一级爆毛片|