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

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

?? template.class.php

?? 投稿 文章管理 員文章評論回復(fù)無限引用簡易留言功能簡易RSS功...
?? PHP
?? 第 1 頁 / 共 2 頁
字號:
<?php
/*
 * Project:	template_lite, a smarter template engine
 * File:	class.template.php
 * Author:	Paul Lockaby <paul@paullockaby.com>, Mark Dickenson <akapanamajack@sourceforge.net>
 * Copyright:	2003,2004,2005 by Paul Lockaby, 2005,2006 Mark Dickenson
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * The latest version of template_lite can be obtained from:
 * http://templatelite.sourceforge.net
 *
 *
 */

if (!defined('TEMPLATE_LITE_DIR')) {
	define('TEMPLATE_LITE_DIR', dirname(__FILE__) . DIRECTORY_SEPARATOR);
}

class Template {
	// public configuration variables
	var $left_delimiter			= "<!--{";		// the left delimiter for template tags
	var $right_delimiter		= "}-->";		// the right delimiter for template tags
	var $cache					= false;	// whether or not to allow caching of files
	var $force_compile			= false;	// force a compile regardless of saved state
	var $template_dir			= "templates";	// where the templates are to be found
	var $plugins_dir			= array("plugins");	// where the plugins are to be found
	var $compile_dir			= "cache/templates";	// the directory to store the compiled files in
	var $cache_dir				= "cache/html";	// where cache files are stored
	
	var $cache_lifetime			= 3600;		// how long the file in cache should be considered "fresh"
	var $encode_file_name		= true;	//true;	// Set this to false if you do not want the name of the compiled/cached file to be md5 encoded.
	var $php_extract_vars		= false;	// Set this to true if you want the $this->_tpl variables to be extracted for use by PHP code inside the template.
	var $php_handling 			= "DreamCMS_PHP_QUOTE";//2007-7-23 0:01 quote php tags
	var $default_modifiers		= array();
	var $debugging	   			= false;
	var $rewrite	   			= false;//2007-11-27 add by 枯木 mod_rewrite
	var $error					= true;//2007-11-27 add by 枯木

	var $compiler_file        	= 'template.compiler.php';
	var $compiler_class        	= 'Template_Compiler';

	var $reserved_template_varname	= "DreamCMS";
	// gzip output configuration
	var $send_now			=  1;
	var $force_compression	=  0;
	var $compression_level	=  9;
	var $enable_gzip		=  1;

	// private internal variables
	var $_vars		= array();	// stores all internal assigned variables
	var $_plugins	= array('modifier'	  	=> array(),
							'function'	  	=> array(),
							'block'		 	=> array(),
							'compiler'	  	=> array(),
							'resource'		=> array(),
							'prefilter'	 	=> array(),
							'postfilter'	=> array(),
							'outputfilter'  => array());
	var $_linenum		= 0;		// the current line number in the file we are processing
	var $_file			= "";		// the current file we are processing
	var $_compile_obj	= null;
	var $_cache_id		= null;
	var $_cache_dir		= "";		// stores where this specific file is going to be cached
	var $_cache_info	= array('template' => array());
	var $_sl_md5		= '69d2cf521ab5d33d99f192a670937618';
	var $_version		= 'V2.10 Template Lite 4 January 2007  (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL.';
	var $_version_date	= "2007-01-04 10:34:21";
	
	var $_templatelite_debug_info	= array();
	var $_templatelite_debug_loop	= false;
	var $_templatelite_debug_dir	= "";
	var $_inclusion_depth	  		= 0;
	var $_null 			= null;
	var $_resource_type = 1;
	var $_resource_time;
	var $_sections 		= array();
	var $_foreach 		= array();

	function Template(){
		$this->_version_date = strtotime($this->_version_date);
	}

	function load_filter($type, $name){
		switch ($type){
			case 'output':
				include_once( $this->_get_plugin_dir($type . "filter." . $name . ".php") . $type . "filter." . $name . ".php");
				$this->_plugins['outputfilter'][$name] = "template_" . $type . "filter_" . $name;
			   break;
			case 'pre':
			case 'post':
				if (!isset($this->_plugins[$type . 'filter'][$name])){
					$this->_plugins[$type . 'filter'][$name] = "template_" . $type . "filter_" . $name;
				}
				break;
		}
	}

	function assign($key, $value = null){
		if (is_array($key)){
			foreach($key as $var => $val)
				if ($var != ""){
					$this->_vars[$var] = $val;
				}
		}else{
			if ($key != ""){
				$this->_vars[$key] = $value;
			}
		}
	}

	function assign_by_ref($key, $value = null){
		if ($key != ''){
			$this->_vars[$key] = &$value;
		}
	}

	function assign_config($key, $value = null){
		if (is_array($key)){
			foreach($key as $var => $val){
				if ($var != ""){
					$this->_confs[$var] = $val;
				}
			}
		}else{
			if ($key != ""){
				$this->_confs[$key] = $value;
			}
		}
	}

	function append($key, $value=null, $merge=false){
		if (is_array($key)){
			foreach ($key as $_key => $_value){
				if ($_key != ''){
					if(!@is_array($this->_vars[$_key])){
						settype($this->_vars[$_key],'array');
					}
					if($merge && is_array($_value)){
						foreach($_value as $_mergekey => $_mergevalue){
							$this->_vars[$_key][$_mergekey] = $_mergevalue;
						}
					}else{
						$this->_vars[$_key][] = $_value;
					}
				}
			}
		}else{
			if ($key != '' && isset($value)){
				if(!@is_array($this->_vars[$key])){
					settype($this->_vars[$key],'array');
				}
				if($merge && is_array($value)){
					foreach($value as $_mergekey => $_mergevalue){
						$this->_vars[$key][$_mergekey] = $_mergevalue;
					}
				}else{
					$this->_vars[$key][] = $value;
				}
			}
		}
	}

	function append_by_ref($key, &$value, $merge=false){
		if ($key != '' && isset($value)){
			if(!@is_array($this->_vars[$key])){
				settype($this->_vars[$key],'array');
			}
			if ($merge && is_array($value)){
				foreach($value as $_key => $_val){
					$this->_vars[$key][$_key] = &$value[$_key];
				}
			}else{
				$this->_vars[$key][] = &$value;
			}
		}
	}

	function clear_assign($key = null){
		if ($key == null){
			$this->_vars = array();
		}else{
			if (is_array($key)){
				foreach($key as $index => $value){
					if (in_array($value, $this->_vars)){
						unset($this->_vars[$index]);
					}
				}
			}else{
				if (in_array($key, $this->_vars)){
					unset($this->_vars[$index]);
				}
			}
		}
	}

	function clear_all_assign(){
		$this->_vars = array();
	}

	function &get_template_vars($key = null){
		if ($key == null){
			return $this->_vars;
		}else{
			if (isset($this->_vars[$key])){
				return $this->_vars[$key];
			}else{
				return $this->_null;
			}
		}
	}

	function clear_compiled_tpl($file = null){
		$this->_destroy_dir($file, null, $this->_get_dir($this->compile_dir));
	}

	function clear_cache($file = null, $cache_id = null, $compile_id = null, $exp_time = null){
		if (!$this->cache){
			return;
		}
		$this->_destroy_dir($file, $cache_id, $this->_get_dir($this->cache_dir));
	}

	function clear_all_cache($exp_time = null){
		$this->clear_cache();
	}

	function is_cached($file, $cache_id = null){
		if (!$this->force_compile && $this->cache && $this->_is_cached($file, $cache_id)){
			return true;
		}else{
			return false;
		}
	}

	function register_modifier($modifier, $implementation){
		$this->_plugins['modifier'][$modifier] = $implementation;
	}

	function unregister_modifier($modifier){
		unset($this->_plugins['modifier'][$modifier]);
	}

	function register_function($function, $implementation){
		$this->_plugins['function'][$function] = $implementation;
	}

	function unregister_function($function){
		unset($this->_plugins['function'][$function]);
	}

	function register_block($function, $implementation){
		$this->_plugins['block'][$function] = $implementation;
	}

	function unregister_block($function){
		unset($this->_plugins['block'][$function]);
	}

	function register_compiler($function, $implementation){
		$this->_plugins['compiler'][$function] = $implementation;
	}

	function unregister_compiler($function){
		unset($this->_plugins['compiler'][$function]);
	}

	function register_prefilter($function){
		$_name = (is_array($function)) ? $function[1] : $function;
		$this->_plugins['prefilter'][$_name] = $_name;
	}

	function unregister_prefilter($function){
		unset($this->_plugins['prefilter'][$function]);
	}

	function register_postfilter($function){
		$_name = (is_array($function)) ? $function[1] : $function;
		$this->_plugins['postfilter'][$_name] = $_name;
	}

	function unregister_postfilter($function){
		unset($this->_plugins['postfilter'][$function]);
	}

	function register_outputfilter($function){
		$_name = (is_array($function)) ? $function[1] : $function;
		$this->_plugins['outputfilter'][$_name] = $_name;
	}

	function unregister_outputfilter($function){
		unset($this->_plugins['outputfilter'][$function]);
	}

	function register_resource($type, $functions){
		if (count($functions) == 4){
			$this->_plugins['resource'][$type] = $functions;
		}else{
			$this->trigger_error("malformed function-list for '$type' in register_resource");
		}
	}

	function unregister_resource($type){
		unset($this->_plugins['resource'][$type]);
	}

	function template_exists($file){
		if (file_exists($this->_get_dir($this->template_dir).$file)){
			$this->_resource_time = filemtime($this->_get_dir($this->template_dir).$file);
			$this->_resource_type = 1;
			return true;
		}else{
			if (file_exists($file)){
				$this->_resource_time = filemtime($file);
				$this->_resource_type = "file";
				return true;
			}
			return false;
		}
	}

	function _get_resource($file){
		$_resource_name = explode(':', trim($file));

		if (count($_resource_name) == 1 || $_resource_name[0] == "file"){
			if($_resource_name[0] == "file"){
				$file = substr($file, 5);
			}

			$exists = $this->template_exists($file);

			if (!$exists){
				$this->trigger_error("file '$file' does not exist", E_USER_ERROR);
			}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品日产第一区二区三区高清版| 粉嫩在线一区二区三区视频| av亚洲精华国产精华精华| 91在线国产观看| 久久久美女毛片| 亚洲自拍另类综合| 国产麻豆视频精品| 欧美v亚洲v综合ⅴ国产v| 亚州成人在线电影| 91视频一区二区| 国产精品美女久久久久久久久久久| 日韩高清在线一区| 不卡视频一二三四| 26uuu亚洲婷婷狠狠天堂| 亚洲国产成人av网| 一本一道综合狠狠老| 国产欧美一区二区精品性 | xfplay精品久久| 亚洲一区二区三区视频在线| 成人午夜短视频| 国内不卡的二区三区中文字幕 | 国产综合久久久久影院| 欧美三级韩国三级日本一级| 国产日产欧美一区二区视频| 国内精品不卡在线| 日韩一区二区视频在线观看| 欧美激情在线看| 国产剧情一区在线| 久久久亚洲综合| 精品中文字幕一区二区小辣椒 | 韩国精品久久久| 久久综合久久综合九色| 韩国一区二区视频| 亚洲国产精品传媒在线观看| 国产一区二区三区免费| 久久久91精品国产一区二区精品 | 欧美唯美清纯偷拍| 日日夜夜免费精品| 日韩久久久久久| 国产在线乱码一区二区三区| 久久久91精品国产一区二区精品| 成人一级片网址| 亚洲伦在线观看| 欧美日产国产精品| 日本不卡在线视频| 国产欧美日韩中文久久| 国产91精品露脸国语对白| 一片黄亚洲嫩模| 欧美一区二视频| 成人午夜在线播放| 亚洲欧洲精品一区二区三区| 欧洲av一区二区嗯嗯嗯啊| 日韩国产欧美一区二区三区| 久久亚洲二区三区| 欧美视频日韩视频| www.欧美色图| 国产自产v一区二区三区c| 亚洲资源在线观看| 中文一区在线播放| 久久久久久久久久久久久女国产乱| 欧美午夜精品一区| 不卡av免费在线观看| 国产乱人伦偷精品视频免下载| 亚洲第一主播视频| 亚洲精品国产高清久久伦理二区| 2023国产精品自拍| 91精品国产综合久久久久| 91福利在线免费观看| aaa欧美色吧激情视频| 国产毛片精品一区| 六月丁香综合在线视频| 亚洲国产综合人成综合网站| 国产精品乱子久久久久| 国产亲近乱来精品视频| 久久久99久久精品欧美| 久久久综合激的五月天| 久久亚洲二区三区| 欧美国产精品久久| 国产精品嫩草影院av蜜臀| 亚洲欧美中日韩| 亚洲自拍偷拍综合| 免费国产亚洲视频| 国产suv一区二区三区88区| 91色porny在线视频| 在线亚洲+欧美+日本专区| 欧美日韩精品电影| 国产午夜精品一区二区三区视频 | 亚洲天堂福利av| 婷婷国产在线综合| 国产精品一品视频| 91久久精品一区二区三| 3d动漫精品啪啪一区二区竹菊| 久久免费视频色| 婷婷一区二区三区| 懂色av中文一区二区三区| 欧洲另类一二三四区| 久久久高清一区二区三区| a级高清视频欧美日韩| 在线成人小视频| 国产精品女同一区二区三区| 日韩电影一区二区三区四区| 国产在线精品一区在线观看麻豆| 欧美在线视频不卡| 久久精品亚洲麻豆av一区二区| 亚洲国产中文字幕在线视频综合| 国产成a人无v码亚洲福利| 91精品国产一区二区人妖| 中文字幕中文乱码欧美一区二区| 精品一区二区三区免费| 欧美三级韩国三级日本一级| 国产精品美女久久久久aⅴ| 麻豆精品视频在线| 欧美一区二视频| 亚洲成人黄色小说| 欧美综合亚洲图片综合区| 亚洲男人的天堂一区二区| 国产毛片一区二区| 久久这里只有精品首页| 久久精品国产99国产| 欧美美女一区二区三区| 亚洲国产另类av| 欧美特级限制片免费在线观看| 亚洲丝袜精品丝袜在线| 99久久精品费精品国产一区二区| 国产日韩精品一区| 国产成人免费在线观看| 国产人伦精品一区二区| 欧美电视剧免费全集观看| 久久国产三级精品| 久久蜜桃一区二区| 国产精品69毛片高清亚洲| 国产精品污www在线观看| 99久久亚洲一区二区三区青草| 国产精品久久久久影院色老大| 91一区二区在线| 亚洲福中文字幕伊人影院| 6080国产精品一区二区| 蜜臀av性久久久久蜜臀aⅴ流畅| 日韩精品中文字幕一区二区三区 | 亚洲午夜精品在线| 欧美高清一级片在线| 免费高清在线视频一区·| 国产视频一区二区在线| 成人av网站大全| 日日欢夜夜爽一区| 久久男人中文字幕资源站| 成人av免费在线观看| 午夜一区二区三区视频| 精品成人佐山爱一区二区| 成a人片国产精品| 日韩成人精品在线观看| 中文字幕av一区二区三区免费看| 色综合天天天天做夜夜夜夜做| 无码av免费一区二区三区试看| 久久人人97超碰com| 欧美中文字幕亚洲一区二区va在线| 免费高清不卡av| 一区二区三区不卡在线观看 | 亚洲成a人v欧美综合天堂| 欧美精品一区二区三区视频| 91黄色激情网站| 成人一区二区三区中文字幕| 亚洲超丰满肉感bbw| 国产精品久久久久久久第一福利 | 91 com成人网| 色综合色狠狠天天综合色| 国产综合久久久久久久久久久久| 亚洲不卡av一区二区三区| 国产精品伦一区| 日本一区二区三区久久久久久久久不| 欧美性一二三区| 在线精品视频免费观看| 26uuu久久天堂性欧美| 欧美精品 国产精品| 欧美亚洲高清一区| 在线免费观看日本一区| 不卡的电视剧免费网站有什么| 国产高清不卡一区二区| 激情综合色播激情啊| 精品一区二区三区视频| 蜜桃av一区二区三区电影| 亚洲444eee在线观看| 亚洲综合成人在线视频| 亚洲国产一区视频| 一区二区三区日韩在线观看| 亚洲免费视频成人| 有坂深雪av一区二区精品| 玉米视频成人免费看| 亚洲国产aⅴ天堂久久| 天天色综合天天| 免费看日韩a级影片| 久久成人精品无人区| 裸体一区二区三区| 国产精品亚洲第一| 国产成人丝袜美腿| 色素色在线综合| 4438亚洲最大| 久久精品一区二区三区不卡牛牛| 国产精品天天看| 亚洲大片在线观看|