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

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

?? spellchecker.php

?? 一個文章管理系統
?? PHP
字號:
<?php
header('Content-type: text/html; charset=utf-8');

// The following variables values must reflect your installation needs.

$aspell_prog	= '"C:\Program Files\Aspell\bin\aspell.exe"';	// by FredCK (for Windows)
//$aspell_prog	= 'aspell';										// by FredCK (for Linux)

$lang			= 'en_US';
$aspell_opts	= "-a --lang=$lang --encoding=utf-8 -H --rem-sgml-check=alt";		// by FredCK

$tempfiledir	= "./";

$spellercss		= '../spellerStyle.css';						// by FredCK
$word_win_src	= '../wordWindow.js';							// by FredCK

$textinputs		= $_POST['textinputs']; # array
$input_separator = "A";

# set the JavaScript variable to the submitted text.
# textinputs is an array, each element corresponding to the (url-encoded)
# value of the text control submitted for spell-checking
function print_textinputs_var() {
	global $textinputs;
	foreach( $textinputs as $key=>$val ) {
		# $val = str_replace( "'", "%27", $val );
		echo "textinputs[$key] = decodeURIComponent(\"" . $val . "\");\n";
	}
}

# make declarations for the text input index
function print_textindex_decl( $text_input_idx ) {
	echo "words[$text_input_idx] = [];\n";
	echo "suggs[$text_input_idx] = [];\n";
}

# set an element of the JavaScript 'words' array to a misspelled word
function print_words_elem( $word, $index, $text_input_idx ) {
	echo "words[$text_input_idx][$index] = '" . escape_quote( $word ) . "';\n";
}


# set an element of the JavaScript 'suggs' array to a list of suggestions
function print_suggs_elem( $suggs, $index, $text_input_idx ) {
	echo "suggs[$text_input_idx][$index] = [";
	foreach( $suggs as $key=>$val ) {
		if( $val ) {
			echo "'" . escape_quote( $val ) . "'";
			if ( $key+1 < count( $suggs )) {
				echo ", ";
			}
		}
	}
	echo "];\n";
}

# escape single quote
function escape_quote( $str ) {
	return preg_replace ( "/'/", "\\'", $str );
}


# handle a server-side error.
function error_handler( $err ) {
	echo "error = '" . preg_replace( "/['\\\\]/", "\\\\$0", $err ) . "';\n";
}

## get the list of misspelled words. Put the results in the javascript words array
## for each misspelled word, get suggestions and put in the javascript suggs array
function print_checker_results() {

	global $aspell_prog;
	global $aspell_opts;
	global $tempfiledir;
	global $textinputs;
	global $input_separator;
	$aspell_err = "";
	# create temp file
	$tempfile = tempnam( $tempfiledir, 'aspell_data_' );

	# open temp file, add the submitted text.
	if( $fh = fopen( $tempfile, 'w' )) {
		for( $i = 0; $i < count( $textinputs ); $i++ ) {
			$text = urldecode( $textinputs[$i] );

			// Strip all tags for the text. (by FredCK - #339 / #681)
			$text = preg_replace( "/<[^>]+>/", " ", $text ) ;

			$lines = explode( "\n", $text );
			fwrite ( $fh, "%\n" ); # exit terse mode
			fwrite ( $fh, "^$input_separator\n" );
			fwrite ( $fh, "!\n" ); # enter terse mode
			foreach( $lines as $key=>$value ) {
				# use carat on each line to escape possible aspell commands
				fwrite( $fh, "^$value\n" );
			}
		}
		fclose( $fh );

		# exec aspell command - redirect STDERR to STDOUT
		$cmd = "$aspell_prog $aspell_opts < $tempfile 2>&1";
		if( $aspellret = shell_exec( $cmd )) {
			$linesout = explode( "\n", $aspellret );
			$index = 0;
			$text_input_index = -1;
			# parse each line of aspell return
			foreach( $linesout as $key=>$val ) {
				$chardesc = substr( $val, 0, 1 );
				# if '&', then not in dictionary but has suggestions
				# if '#', then not in dictionary and no suggestions
				# if '*', then it is a delimiter between text inputs
				# if '@' then version info
				if( $chardesc == '&' || $chardesc == '#' ) {
					$line = explode( " ", $val, 5 );
					print_words_elem( $line[1], $index, $text_input_index );
					if( isset( $line[4] )) {
						$suggs = explode( ", ", $line[4] );
					} else {
						$suggs = array();
					}
					print_suggs_elem( $suggs, $index, $text_input_index );
					$index++;
				} elseif( $chardesc == '*' ) {
					$text_input_index++;
					print_textindex_decl( $text_input_index );
					$index = 0;
				} elseif( $chardesc != '@' && $chardesc != "" ) {
					# assume this is error output
					$aspell_err .= $val;
				}
			}
			if( $aspell_err ) {
				$aspell_err = "Error executing `$cmd`\\n$aspell_err";
				error_handler( $aspell_err );
			}
		} else {
			error_handler( "System error: Aspell program execution failed (`$cmd`)" );
		}
	} else {
		error_handler( "System error: Could not open file '$tempfile' for writing" );
	}

	# close temp file, delete file
	unlink( $tempfile );
}


?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="<?php echo $spellercss ?>" />
<script language="javascript" src="<?php echo $word_win_src ?>"></script>
<script language="javascript">
var suggs = new Array();
var words = new Array();
var textinputs = new Array();
var error;
<?php

print_textinputs_var();

print_checker_results();

?>

var wordWindowObj = new wordWindow();
wordWindowObj.originalSpellings = words;
wordWindowObj.suggestions = suggs;
wordWindowObj.textInputs = textinputs;

function init_spell() {
	// check if any error occured during server-side processing
	if( error ) {
		alert( error );
	} else {
		// call the init_spell() function in the parent frameset
		if (parent.frames.length) {
			parent.init_spell( wordWindowObj );
		} else {
			alert('This page was loaded outside of a frameset. It might not display properly');
		}
	}
}



</script>

</head>
<!-- <body onLoad="init_spell();">		by FredCK -->
<body onLoad="init_spell();" bgcolor="#ffffff">

<script type="text/javascript">
wordWindowObj.writeBody();
</script>

</body>
</html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日本高清视频在线观看| 在线亚洲一区二区| 亚洲国产精品一区二区www在线 | 亚洲午夜久久久久| 17c精品麻豆一区二区免费| 国产色一区二区| 国产精品女同互慰在线看| 国产情人综合久久777777| 久久综合av免费| 国产视频不卡一区| 国产精品福利在线播放| 中文字幕亚洲成人| 亚洲人吸女人奶水| 亚洲国产成人av网| 免费精品视频最新在线| 狠狠v欧美v日韩v亚洲ⅴ| 国模娜娜一区二区三区| 国产精品亚洲专一区二区三区| 国产九九视频一区二区三区| 成人app网站| 在线成人av网站| 亚洲精品一区二区三区精华液 | 亚洲免费av在线| 首页欧美精品中文字幕| 精品无人码麻豆乱码1区2区 | 亚洲特级片在线| 亚洲小说欧美激情另类| 久久99精品久久久久久动态图| 国产福利一区二区| 在线免费观看日本一区| 日韩精品专区在线影院重磅| 中文字幕日韩一区二区| 亚洲高清免费在线| 国产一区在线精品| 91同城在线观看| 26uuu久久天堂性欧美| 国产精品久久久久久久午夜片| 亚洲愉拍自拍另类高清精品| 美女视频黄久久| 91毛片在线观看| 亚洲精品在线三区| 一区二区免费在线播放| 国产精品影视天天线| 欧美影视一区二区三区| 久久久.com| 日韩极品在线观看| 成人av电影在线播放| 日韩三级电影网址| 一区二区三区精品在线观看| 国产精品99久久久久久宅男| 欧美日韩精品一区视频| 亚洲欧洲精品天堂一级 | 日本大胆欧美人术艺术动态| 成人美女在线观看| 日韩欧美第一区| 亚洲国产精品久久不卡毛片| av成人动漫在线观看| 欧美精品一区男女天堂| 三级久久三级久久| 日本精品一级二级| 中文字幕亚洲在| www.亚洲人| 中文字幕av资源一区| 久88久久88久久久| 欧美一区二区观看视频| 天堂在线亚洲视频| 欧美色图第一页| 亚洲成人激情av| 欧美怡红院视频| 一级日本不卡的影视| 99久久国产综合精品色伊| 中文字幕av一区 二区| 国产一区不卡精品| 2017欧美狠狠色| 国产综合色视频| 国产日韩三级在线| 国产一区二区三区日韩| www久久精品| 成人亚洲精品久久久久软件| 国产精品理论在线观看| 成人激情黄色小说| 亚洲国产精品ⅴa在线观看| 大白屁股一区二区视频| 国产精品香蕉一区二区三区| 国产成人欧美日韩在线电影| 日韩精品一区二区三区三区免费| 青青青伊人色综合久久| 日本亚洲三级在线| 日本免费在线视频不卡一不卡二| 91精品国产综合久久久久久久久久 | 亚洲一区二区五区| 欧美日韩国产区一| 乱一区二区av| 国产精品理伦片| 欧美日韩精品一区二区天天拍小说| 调教+趴+乳夹+国产+精品| 欧美一区二区三区在| 国产精品一二三区| 亚洲猫色日本管| 91精品国产综合久久精品app| 精品伊人久久久久7777人| 久久久久久综合| 91福利社在线观看| 麻豆精品一区二区综合av| 精品福利一二区| 色婷婷一区二区三区四区| 日韩中文字幕一区二区三区| 久久久久久久电影| 欧美日韩中字一区| 国产麻豆精品久久一二三| 国产精品初高中害羞小美女文| 欧美欧美欧美欧美首页| 国产毛片精品视频| 亚洲一区在线看| 久久精品人人做人人综合 | 亚洲人成伊人成综合网小说| 欧美美女视频在线观看| 国产精品18久久久久| 午夜精品久久久久久久99水蜜桃 | 亚洲国产一区二区三区青草影视| 欧美日韩成人一区二区| 丰满岳乱妇一区二区三区| 亚洲成av人片一区二区三区| 欧美激情综合五月色丁香| 91精品国产综合久久久久久久| 国产福利精品导航| 亚洲午夜在线视频| 久久亚洲二区三区| 欧美日韩中文字幕精品| 韩国视频一区二区| 亚洲欧美另类久久久精品| 日韩午夜在线影院| 色狠狠av一区二区三区| 国产91精品露脸国语对白| 美女一区二区三区| 欧美精品aⅴ在线视频| 不卡av电影在线播放| 九色综合狠狠综合久久| 性做久久久久久免费观看| 亚洲欧洲日韩在线| 国产日韩欧美电影| 欧美mv日韩mv国产网站app| 欧美日韩在线观看一区二区| 一本大道av一区二区在线播放| 国产91精品精华液一区二区三区 | 国产成a人亚洲精品| 美女视频一区在线观看| 免费高清视频精品| 日韩成人午夜精品| 热久久一区二区| 美女视频网站久久| 蜜臀av性久久久久蜜臀aⅴ流畅| 热久久国产精品| 老司机一区二区| 国产一区二区三区四| 国产一区二区福利| 激情伊人五月天久久综合| 日日夜夜免费精品| 视频一区二区中文字幕| 日韩综合小视频| 国产综合久久久久影院| 国产精品77777竹菊影视小说| 国产一区二区不卡老阿姨| 国产精品91一区二区| 国产91高潮流白浆在线麻豆| 成人国产在线观看| 一本色道**综合亚洲精品蜜桃冫| 欧洲av一区二区嗯嗯嗯啊| 欧美日韩一级二级三级| 欧洲精品一区二区| 欧美精品九九99久久| 精品国产免费视频| 国产精品少妇自拍| 一区二区欧美在线观看| 日本aⅴ精品一区二区三区| 国产在线视频一区二区三区| 91视频免费观看| 欧美一级黄色大片| 国产亚洲综合在线| 中文字幕一区二区三区精华液| 亚洲国产日韩综合久久精品| 理论片日本一区| 91免费版在线| 精品1区2区在线观看| 亚洲色图制服丝袜| 亚洲国产aⅴ成人精品无吗| 免费高清在线一区| 91在线一区二区| 日韩欧美一区二区三区在线| 中文字幕一区二区日韩精品绯色| 视频在线观看一区| 成人aa视频在线观看| 欧美一区二区三区在线观看| 亚洲欧洲精品天堂一级| 日本aⅴ精品一区二区三区 | 精品日本一线二线三线不卡| 国产精品国产自产拍高清av| 日韩福利视频网| 91美女片黄在线观看| 久久午夜电影网|