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

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

?? editor_class.php

?? 類似youtube的視頻分享網站源碼。有后臺管理系統及模板
?? PHP
?? 第 1 頁 / 共 4 頁
字號:
<?php
/* /////////////////////////////////////////////////////////////////////////
 *                             		editor_class.php
 *                              -------------------
 *  author      : Chris Bolt
 *  copyright   : (C) Chris Bolt 2003-2004. All Rights Reserved
 *  version     : 2.2.4
 *	purpose			: Generates WYSIWYG PRO DHTML output
///////////////////////////////////////////////////////////////////////////*/
/*
CLASS WYSIWYGPRO

Purpose: configure and then display WYSIWYGPRO DHTML output

basically this file grabs one of 2 possible editors depending on the browser type and version. it then removes features from that file that are not requested or that have been requested for removal and then either returns or prints the code.

Requirements:
Requires config.php

*/

class wysiwygPro {

	// Begin

	// declare class variables
	
	var $classname = "wysiwygPro";
	
	// variables that are set by the user
	var $name='htmlCode';
	var $original_name='htmlCode';
	var $code='';
	var $baseURL='';
	var $stylesheet='';
	var $remove_array='';
	var $dontremoveserver = false;
	var $dsbleimgmngr = false;
	var $guidelines = '1';
	var $showbookmarkmngr = 'true';
	var $hyperlink_function = 'open_hyperlink_window(##name##,this)';
	var $hyperlink_function2 = 'open_hyperlink_window(parent.wp_current_obj,this)';
	var $font_menu =
		'<div class="off" onClick="parent.wp_change_font(parent.wp_current_obj,\'Arial\');off(this)" title="Arial" onMouseOver="on(this)" onMouseOut="off(this)" style="font-family:\'Arial\'"><nobr>Arial</nobr></div>
		<div class="off" onClick="parent.wp_change_font(parent.wp_current_obj,\'Times New Roman\');off(this)" title="Times New Roman" onMouseOver="on(this)" onMouseOut="off(this)" style="font-family:\'Times New Roman\'"><nobr>Times New Roman</nobr></div>
		<div class="off" onClick="parent.wp_change_font(parent.wp_current_obj,\'Courier\');off(this)" title="Courier" onMouseOver="on(this)" onMouseOut="off(this)" style="font-family:\'Courier\'"><nobr>Courier</nobr></div>
		<div class="off" onClick="parent.wp_change_font(parent.wp_current_obj,\'Georgia\');off(this)" title="Georgia" onMouseOver="on(this)" onMouseOut="off(this)" style="font-family:\'Georgia\'"><nobr>Georgia</nobr></div>
		<div class="off" onClick="parent.wp_change_font(parent.wp_current_obj,\'Verdana\');off(this)" title="Verdana" onMouseOver="on(this)" onMouseOut="off(this)" style="font-family:\'Verdana\'"><nobr>Verdana</nobr></div>
		<div class="off" onClick="parent.wp_change_font(parent.wp_current_obj,\'Geneva\');off(this)" title="Geneva" onMouseOver="on(this)" onMouseOut="off(this)" style="font-family:\'Geneva\'"><nobr>Geneva</nobr></div>';
	var $format_menu = '
		<div class="off" onClick="parent.wp_change_format(parent.wp_current_obj,\'&lt;div&gt;\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><nobr> 
			<div style="position: static; float: none; clear: both; display: block; visibility: visible">##normal##</div>
			</nobr></div>
		<div class="off" onClick="parent.wp_change_format(parent.wp_current_obj,\'&lt;h1&gt;\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><nobr> 
			<h1 style="position: static; float: none; clear: both; display: block; visibility: visible">##heading_1##</h1>
			</nobr></div>
		<div class="off" onClick="parent.wp_change_format(parent.wp_current_obj,\'&lt;h2&gt;\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><nobr> 
			<h2 style="position: static; float: none; clear: both; display: block; visibility: visible">##heading_2##</h2>
			</nobr></div>
		<div class="off" onClick="parent.wp_change_format(parent.wp_current_obj,\'&lt;h3&gt;\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><nobr> 
			<h3 style="position: static; float: none; clear: both; display: block; visibility: visible">##heading_3##</h3>
			</nobr></div>
		<div class="off" onClick="parent.wp_change_format(parent.wp_current_obj,\'&lt;h4&gt;\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><nobr> 
			<h4 style="position: static; float: none; clear: both; display: block; visibility: visible">##heading_4##</h4>
			</nobr></div>
		<div class="off" onClick="parent.wp_change_format(parent.wp_current_obj,\'&lt;h5&gt;\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><nobr> 
			<h5 style="position: static; float: none; clear: both; display: block; visibility: visible">##heading_5##</h5>
			</nobr></div>
		<div class="off" onClick="parent.wp_change_format(parent.wp_current_obj,\'&lt;h6&gt;\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><nobr> 
			<h6 style="position: static; float: none; clear: both; display: block; visibility: visible">##heading_6##</h6>
			</nobr></div>
		<div class="off" onClick="parent.wp_change_format(parent.wp_current_obj,\'&lt;pre&gt;\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><nobr> 
			<pre style="position: static; float: none; clear: both; display: block; visibility: visible">##pre_formatted##</pre>
			</nobr></div>
		<div class="off" onClick="parent.wp_change_format(parent.wp_current_obj,\'&lt;address&gt;\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><nobr> 
			<address style="position: static; float: none; clear: both; display: block; visibility: visible">
			Address 
			</address>
			<nobr></div>
	';
	var $size_menu = '
		<div class="off" onClick="parent.wp_change_font_size(parent.wp_current_obj,\'1\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><font size="1">##1##</font></div>
		<div class="off" onClick="parent.wp_change_font_size(parent.wp_current_obj,\'2\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><font size="2">##2##</font></div>
		<div class="off" onClick="parent.wp_change_font_size(parent.wp_current_obj,\'3\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><font size="3">##3##</font></div>
		<div class="off" onClick="parent.wp_change_font_size(parent.wp_current_obj,\'4\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><font size="4">##4##</font></div>
		<div class="off" onClick="parent.wp_change_font_size(parent.wp_current_obj,\'5\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><font size="5">##5##</font></div>
		<div class="off" onClick="parent.wp_change_font_size(parent.wp_current_obj,\'6\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><font size="6">##6##</font></div>
		<div class="off" onClick="parent.wp_change_font_size(parent.wp_current_obj,\'7\');off(this)" onMouseOver="on(this)" onMouseOut="off(this)"><font size="7">##7##</font></div>
	';
	var $save_button = '';
	var $custom_objects = '';
	var $links = '';
	var $usexhtml = 'false';
	var $xhtml_lang = "en";
	var $encoding = "iso-8859-1";
	var $usep = 'false';
	var $subsequent = 'false';
	var $color_swatches = '';
	var $instance_img_dir = '';
	var $instance_doc_dir = '';
	var $doctype = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
	var $charset = '';	
	// internal variables
	
	// browsers
	var $is_ie55 = false;
	var $is_ie50 = false;
	var $is_gecko = false;
	var $gecko_revision = 1.3;
	var $unsupported = false;
	
	// other stuff
	var $baseURL2 = '';
	var $domain = '';
	var $set_style = '';
	var $image_window = 'image.php';
	var $class_menu = '';
	var $save_name = '';
	var $has_expired = true;
	var $WYSIWYGPRO_code = '';
	var $instance_lang = DEFAULT_LANG;	
	
	/***************************************************************************
	 wysiwygPro
	 Public: constructor
	 $save_name: string to save this configuration as. If WYSIWYGPRO is requested again with the same save_name the file will be generated from a cache file rather than generated from scratch.
	 If no paramater is set WYSIWYG PRO will perform no configuration saving.
	*/
	
	function wysiwygPro($save_name='') {
		
		if (!defined('WP_CONFIG')) {
			die('<p><b>WYSIWYGPRO - Setup Error:</b> You did not include \'config.php\' before declaring this class!</p>');
		}	
				
		////////////////////
		// no-cache headers
		// send headers to prevent caching by proxy servers. This is extremely important because all browser detection is done by this script, and this script outputs different code depending on browser and platform.
		// Note that the script containing this class must either not output anything before calling this class or use ob_start (); and ob_end_flush();
		if (NOCACHE) {
			header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // expires in the past
			header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
			header("Cache-Control: no-store, no-cache, must-revalidate");  // HTTP/1.1
			header("Cache-Control: post-check=0, pre-check=0", false);
			header("Pragma: no-cache"); 
		}
				
		///////////////////////
		// browser detection
		///////////////////////
		
		$browser_string = strtolower($_SERVER["HTTP_USER_AGENT"]);
		
		$is_mac = strstr($browser_string, 'mac');
		
		$is_opera = strstr($browser_string, 'opera');
		
		$is_konq = strstr($browser_string, 'khtml');
		
		$is_camino = strstr($browser_string, 'camino');
		
		$ie_version = preg_replace('/.*msie/sm', '', $browser_string);
		
		$ie_version = substr ($ie_version, 0,4);
		
		$gecko_version = preg_replace('/.*rv:/sm', '', $browser_string);

		$gecko_version = substr ($gecko_version, 0,3);
		
		$this->gecko_revision = $gecko_version;
		
		if ((($ie_version*10) >= 55) && !$is_opera && !$is_mac) {
			$this->is_ie55 = true;
			$add_to_cache_name = '_ie55';
		} elseif ((($ie_version*10) >= 50) && !$is_opera && !$is_mac) {
			$this->is_ie50 = true;
			$add_to_cache_name = '_ie50';
		} elseif (strstr($browser_string, 'gecko') && !$is_opera && !$is_konq && !$is_camino && $gecko_version >= '1.3') {
			$this->is_gecko = true;
			$add_to_cache_name = '_gecko';
			if ($this->gecko_revision >= 1.5) {
				$add_to_cache_name .= '14';
			}
		} else {
			$this->unsupported = true;
			$add_to_cache_name = '_unsupported';
		}
		
		// Now that we have done browser detection it is safe to check for caching and do the caching
		if (!empty($save_name)) {
			$save_name = $save_name.$add_to_cache_name;
			// make sure the save name is safe to use as a filename (incase the user wants to use the current URL as the cache name)
			$save_name = preg_replace ("/[\/\\\?&%#~:]/", '', $save_name);
			$this->save_name = $save_name;
			// check if this file has expired
			$this->has_expired = $this->expired($this->save_name);
		} else {
			$this->has_expired = true;
		}
		
		if ($this->has_expired) {
			// If we reach here then the cache has expired or no save name has been set for this configuration
		
			/////////////////
			// check globals
			/////////////////
			
			// check we have been sent a valid directory and that the template files for the Internet Explorer editor and the alternative browser editor exist.
			if ((!file_exists (WP_FILE_DIRECTORY.'templates/IE5editor.tpl')) || (!file_exists (WP_FILE_DIRECTORY.'templates/MozEditor.tpl'))) {
				die("<p><b>WysiwygPro - Setup Error:</b> WysiwygPro cannot find its file library. Your WP_FILE_DIRECTORY setting is incorrect, or some files are missing. This paramater should be set to the full file path to the 'editor_files' folder. This value should be set in config.php.</p>");
			}
			
			if (!file_exists (WP_FILE_DIRECTORY.'lang/'.DEFAULT_LANG)) {
				die("<p><b>WysiwygPro - Setup Error:</b> your default language file does not exist.");
			}
			
			// add features not supported by ie50 to the remove array
			if ($this->is_ie50 == true) {
				$this->remove('ie50_remove');
			}
			
			// read the contents of the editor code from the file into a variable.
			// choose a file based on the user agent
			if (($this->is_ie55) || ($this->is_ie50)) {
				$code_file = 'templates/IE5editor.tpl';
			} elseif ($this->is_gecko) {
				$code_file = 'templates/MozEditor.tpl';
			} else {
				$code_file = 'templates/textEditor.tpl';
			}
			// open file into a variable that we can work with
			$this->WYSIWYGPRO_code = stripslashes(implode("", @file(WP_FILE_DIRECTORY.$code_file)));

		}
	}
	
	
	// Internal functions:
	
	/***************************************************************************
	 expired
	 Method: returns true if the cache has expired.
	 
	*/

	function expired ($file) {
		if (! @file_exists (SAVE_DIRECTORY . $file)) {
			return true;
		}
		if ((filemtime (SAVE_DIRECTORY . $file)) < (time () - SAVE_LENGTH)) {
			return true;
		}
		return false;
	}
	
		
	/***************************************************************************
	 remove
	 Method: Adds items to the remove array. (note the so called 'remove array' is not yet an actual array!)
	 items: a comma separated list of items to add 
	 
	*/
	function remove($items) {
		if ($this->has_expired) {
			if (isset ($items) ? $items : '') {
				if (!empty($this->remove_array)) {
					$this->remove_array .= (','.$items);
				} else {
					$this->remove_array=$items;
				}
			}
		}
	}
	
	/***************************************************************************
	 wp_replace
	 Method: pastes variables into the editor
	 array: search and replace array
	 
	*/
	function wp_replace($code, $array) {
		$search = array();
		$replace = array();
		foreach($array as $k => $v) {
			array_push($search, '##'.$k.'##');
			array_push($replace, $v);
		}
		return str_replace($search, $replace, $code);
	}

	/***************************************************************************
	 wp_entities
	 Method: replaces html code with WP entities ready for use
	 
	*/
	function wp_entities($code) {
		// convert anchors:
		$code = preg_replace("/<a name=\"(.*?)\".*?>(.*?)<\/a>/smi", "<img name=\"\$1\" src=\"".WP_WEB_DIRECTORY."/images/bookmark_symbol.gif\" contenteditable=\"false\" width=\"16\" height=\"13\">\$2", $code);
		//$code = preg_replace("/<a(.*?)href=\"#(.*?)\"(.*?)>/smi", "<a\$1href=\"WP_BOOKMARK#\$2\"\$3>", $code);
		// Both browsers will ignore ASP tags so we need to make them into comments here
		$code = preg_replace("/<%(.*?)\%>/smi",  "<!--asp\$1-->", $code);
		if ($this->is_gecko) {
			// Mozilla will completely ignore PHP tags so we need to convert them into comments here instead
			$code = preg_replace("/<\?php(.*?)\?>/smi",  "<!--p\$1-->", $code);
			
			// hack to stop bug in Mozilla where row modifications cause an endless loop if table html is not all on one line (Note for future development: is this a bug in Mozilla or a flaw in the table editing script?)
			// table
			$code = preg_replace("/<table([^>]*?)>\s+/smi",  "<table\$1>", $code);
			// tbody
			$code = preg_replace("/<tbody([^>]*?)>\s+/smi",  "<tbody\$1>", $code);
			// close tbody
			$code = preg_replace("/<\/tbody>\s+/smi",  "</tbody>", $code);
			// thead
			$code = preg_replace("/<thead([^>]*?)>\s+/smi",  "<thead\$1>", $code);
			// close thead
			$code = preg_replace("/<\/thead>\s+/smi",  "</thead>", $code);
			// tfoot
			$code = preg_replace("/<tfoot([^>]*?)>\s+/smi",  "<tfoot\$1>", $code);
			// close tfoot
			$code = preg_replace("/<\/tfoot>\s+/smi",  "</tfoot>", $code);
			// tr
			$code = preg_replace("/<tr([^>]*?)>\s+/smi",  "<tr\$1>", $code);
			// close tr
			$code = preg_replace("/<\/tr>\s+/smi",  "</tr>", $code);
			// close td
			$code = preg_replace("/<\/td>\s+/smi",  "</td>", $code);
		
		}
		
		$code = preg_replace("/<font>(.*?)<\/font>/smi",  "\$1", $code);
			
		return $code;
	}
	
	// Public functions that set paramaters:
	
	/***************************************************************************
	 set_name
	 Public: sets the name of the code
	 $name: the name of the textarea that will hold the edited HTML code
	 
	*/	
	
	function set_name($name='htmlCode') {
		if ($this->has_expired) {
			if (!empty($name)) {
				$this->name = preg_replace("/[^A-Za-z0-9_]/smi", '', $name);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99国内精品久久| 蜜臀av一区二区在线免费观看| 亚洲精品视频自拍| 国产乱色国产精品免费视频| 欧美三区在线视频| 中文字幕av在线一区二区三区| 午夜精品久久久久影视| 99国产精品视频免费观看| 日韩欧美国产一二三区| 午夜精品久久久久久久久久久 | 99精品视频在线观看| 2欧美一区二区三区在线观看视频| 亚洲成人一区二区在线观看| 成人免费毛片app| 欧美tickle裸体挠脚心vk| 亚洲高清久久久| 日本高清免费不卡视频| 成人免费一区二区三区在线观看| 国产精品456露脸| 久久这里只有精品6| 久久99久久精品| 欧美一区二区三区免费视频| 亚洲综合色区另类av| 91美女片黄在线观看91美女| 国产精品久久久久四虎| 成人性生交大片免费看视频在线 | 欧美韩日一区二区三区| 国产精品小仙女| 国产亚洲精品中文字幕| 乱中年女人伦av一区二区| 日韩一级黄色大片| 蜜桃在线一区二区三区| 欧美zozozo| 国产一区二区h| 亚洲国产精华液网站w| 国产成人精品影院| 欧美激情在线一区二区三区| 国产二区国产一区在线观看| 久久精品综合网| www.亚洲人| 一区二区三区免费| 欧美日韩综合不卡| 日本中文一区二区三区| 亚洲精品在线观看网站| 国产一区二区0| 国产精品美女久久久久aⅴ国产馆| 福利视频网站一区二区三区| 国产色婷婷亚洲99精品小说| 国产成人精品一区二区三区网站观看| 中国av一区二区三区| 一本到不卡免费一区二区| 亚洲精品成人天堂一二三| 久久精品一区二区三区不卡| 北岛玲一区二区三区四区| 亚洲制服丝袜在线| 欧美电视剧免费全集观看| 国产精品一区二区在线看| 亚洲日本在线天堂| 欧美日韩亚洲综合| 国产美女娇喘av呻吟久久| 亚洲特级片在线| 欧美一区三区四区| 成人免费三级在线| 日韩在线a电影| 亚洲欧美在线视频观看| 欧美男同性恋视频网站| 国产精品一线二线三线精华| 亚洲激情成人在线| 欧美精品一区二区三区在线播放 | 精品一区二区三区日韩| 国产精品久久久久桃色tv| 8x福利精品第一导航| 国产精品一卡二卡| 香港成人在线视频| 中文字幕成人网| 91精品国产综合久久国产大片| 夫妻av一区二区| 琪琪久久久久日韩精品| 亚洲激情五月婷婷| 久久婷婷色综合| 777午夜精品视频在线播放| 成人av一区二区三区| 日本一区中文字幕 | 丝袜a∨在线一区二区三区不卡| 国产精品成人免费精品自在线观看| 欧美日韩视频不卡| 99re热这里只有精品视频| 美女精品自拍一二三四| 亚洲欧美日韩国产一区二区三区| 久久综合九色综合欧美就去吻| 91福利视频久久久久| 国产米奇在线777精品观看| 天堂成人免费av电影一区| 亚洲人成精品久久久久| 久久久久久久综合日本| 日韩精品一区二区三区视频播放| 色婷婷久久久亚洲一区二区三区 | 偷窥国产亚洲免费视频| 综合精品久久久| 国产精品区一区二区三| 久久蜜桃香蕉精品一区二区三区| 欧美乱妇20p| 在线观看免费成人| 91麻豆精品视频| 91在线云播放| 色综合色综合色综合色综合色综合| 成人精品视频一区二区三区 | 在线视频一区二区三| 欧美日韩一区二区三区高清| jlzzjlzz亚洲日本少妇| 成人在线视频首页| 国产不卡一区视频| 丁香六月综合激情| 成人黄页毛片网站| av亚洲产国偷v产偷v自拍| 夫妻av一区二区| 成熟亚洲日本毛茸茸凸凹| 高清在线观看日韩| caoporen国产精品视频| 成人精品高清在线| 一本大道久久a久久精品综合| 日本道免费精品一区二区三区| 色美美综合视频| 欧美日韩国产电影| 日韩一级免费观看| 久久久久国产精品人| 日本一区二区免费在线观看视频 | 一个色妞综合视频在线观看| 一区二区三区四区五区视频在线观看| 亚洲精选在线视频| 日韩二区在线观看| 国产久卡久卡久卡久卡视频精品| 国产一区二区女| 色综合天天综合狠狠| 欧美伊人久久大香线蕉综合69| 91麻豆精品国产91| 久久这里只有精品首页| 综合色中文字幕| 日本在线不卡一区| 成人黄色片在线观看| 欧美性受xxxx黑人xyx性爽| 日韩免费在线观看| 国产精品久久久久久福利一牛影视| 亚洲精品国产a| 久久精品国产亚洲a| 9人人澡人人爽人人精品| 欧美年轻男男videosbes| 国产日产欧美精品一区二区三区| 亚洲男人的天堂一区二区| 日本成人在线电影网| 国产精品18久久久久久vr| 91成人看片片| 久久久久99精品国产片| 亚洲一区在线观看网站| 国产福利一区二区三区在线视频| 欧美探花视频资源| 国产午夜精品一区二区三区视频| 亚洲一区二区三区国产| 国产成人免费视| 欧美一区二区三区在线观看视频 | 一本到一区二区三区| 欧美成人高清电影在线| 亚洲精品中文字幕在线观看| 经典三级在线一区| 欧美日韩一二三区| 亚洲视频你懂的| 国产裸体歌舞团一区二区| 欧美日韩视频在线第一区 | 久久国内精品视频| 91在线丨porny丨国产| 国产精品国产a级| 国产一区在线精品| 制服丝袜亚洲色图| 一区二区三区中文字幕精品精品| 国产成人在线色| 欧美变态tickle挠乳网站| 午夜影视日本亚洲欧洲精品| 成人ar影院免费观看视频| 久久伊人中文字幕| 美洲天堂一区二卡三卡四卡视频| 欧美日韩国产小视频| 亚洲激情图片小说视频| 99久久久精品| 国产精品久久久久影院| 国产黑丝在线一区二区三区| 精品美女被调教视频大全网站| 亚洲超碰精品一区二区| 欧美色综合天天久久综合精品| 亚洲欧美一区二区在线观看| 丁香激情综合国产| 欧美激情综合五月色丁香小说| 精品一区二区三区免费观看| 欧美成人r级一区二区三区| 性欧美疯狂xxxxbbbb| 欧美日韩精品免费| 丝袜美腿亚洲综合| 3d成人动漫网站| 久久国产精品99久久人人澡| 欧美一二三四在线| 精品一区二区在线看|