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

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

?? spellchecker.php

?? kanglog博客 v1.1 bata(JSP版)
?? PHP
字號:
<?php
header('Content-type: text/html; charset=utf-8');

//$spellercss = '/speller/spellerStyle.css';	// by FredCK
$spellercss = '../spellerStyle.css';			// by FredCK
//$word_win_src = '/speller/wordWindow.js';		// by FredCK
$word_win_src = '../wordWindow.js';				// by FredCK
$textinputs = $_POST['textinputs']; # array
//$aspell_prog = 'aspell';									// by FredCK (for Linux)
$aspell_prog = '"C:\Program Files\Aspell\bin\aspell.exe"';	// by FredCK (for Windows)
$lang = 'en_US';
//$aspell_opts = "-a --lang=$lang --encoding=utf-8";	// by FredCK
$aspell_opts = "-a --lang=$lang --encoding=utf-8 -H";	// by FredCK
$tempfiledir = "./";
$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 = '" . escape_quote( $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] );
			$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一区二区三区免费野_久草精品视频
久久精品国产一区二区三区免费看| 亚洲欧洲另类国产综合| 国产亚洲人成网站| 奇米一区二区三区av| 色哟哟亚洲精品| 久久久久久久久久久电影| 久久99热狠狠色一区二区| 4438成人网| 日本视频在线一区| 欧美手机在线视频| 一区二区三区四区不卡在线| av日韩在线网站| 国产精品久久久久影视| 成人白浆超碰人人人人| 国产婷婷精品av在线| 成人小视频免费观看| 国产精品妹子av| 色婷婷激情久久| 青青草97国产精品免费观看 | 欧美日韩国产精品成人| 日韩经典中文字幕一区| 久久蜜桃一区二区| 成人黄色网址在线观看| 亚洲精品久久久久久国产精华液| 99久久精品情趣| 亚洲成人免费影院| 精品国产乱码久久久久久浪潮| 成人午夜看片网址| 首页综合国产亚洲丝袜| 日本一区二区电影| 制服丝袜亚洲色图| 91浏览器在线视频| 精东粉嫩av免费一区二区三区| 中文字幕欧美一| 精品福利一二区| 色婷婷综合久久久| 精品视频免费在线| 亚洲一区二区精品久久av| 成人不卡免费av| 国产精品乱码人人做人人爱| 91福利在线导航| 99久久亚洲一区二区三区青草 | 亚洲人成影院在线观看| 久久久久久亚洲综合影院红桃| 亚洲欧美综合色| 亚洲成av人**亚洲成av**| 国产精品自拍av| 欧美蜜桃一区二区三区| 国产视频一区二区三区在线观看| 亚洲一区二区不卡免费| 久久精品国产精品亚洲精品| 99久久婷婷国产综合精品电影| 99久久99久久免费精品蜜臀| 国产成人自拍网| 国产激情偷乱视频一区二区三区| 国产精品99久久久久| 看电视剧不卡顿的网站| 丁香啪啪综合成人亚洲小说 | 国产一区二区精品久久| 五月婷婷综合在线| 无码av免费一区二区三区试看| 亚洲成人自拍一区| 国产精品毛片大码女人| 亚洲欧美激情视频在线观看一区二区三区 | 男女男精品网站| 亚洲成人av中文| 蜜桃一区二区三区在线观看| 91精品综合久久久久久| 精品电影一区二区| 国产毛片精品视频| 国产精品视频免费| 成人精品国产一区二区4080| 中文字幕国产精品一区二区| 成人福利视频在线看| 中文无字幕一区二区三区| 色婷婷av一区| 亚洲国产欧美在线人成| 欧美日韩一区中文字幕| 亚洲婷婷国产精品电影人久久| 日韩中文字幕1| 另类小说图片综合网| jlzzjlzz亚洲女人18| 精品成人一区二区| 奇米888四色在线精品| 风间由美一区二区三区在线观看| 欧美日韩亚洲国产综合| 精品免费视频一区二区| 亚洲一区在线电影| 国产精品一区二区男女羞羞无遮挡 | 欧美一区二区不卡视频| 欧美成人激情免费网| 国产女同性恋一区二区| 亚洲最大成人综合| 日韩激情在线观看| 在线91免费看| 亚洲精品视频免费看| 成人av在线一区二区三区| 中文字幕在线播放不卡一区| 精品在线播放免费| 欧美夫妻性生活| 国产精品免费网站在线观看| 性做久久久久久免费观看| 国产精品一区二区三区99| 久久亚洲免费视频| 成人福利视频在线| 亚洲综合免费观看高清完整版| 久久精品水蜜桃av综合天堂| 国产精一区二区三区| 亚洲一区二区在线视频| 日韩毛片一二三区| 国产欧美综合在线观看第十页| 欧美麻豆精品久久久久久| 成人av免费在线| 国产老肥熟一区二区三区| 水野朝阳av一区二区三区| 亚洲第一av色| 亚洲一区二区三区激情| 中文天堂在线一区| 欧美mv和日韩mv国产网站| 国产999精品久久| 一区二区国产视频| 欧美一区二区三区啪啪| 国产精品综合av一区二区国产馆| 亚洲欧美综合网| 在线成人免费视频| 国产高清一区日本| 亚洲综合视频网| 国产农村妇女毛片精品久久麻豆 | 欧美成人a∨高清免费观看| 亚洲自拍欧美精品| 午夜视频在线观看一区二区三区| 欧美一区二区人人喊爽| 婷婷激情综合网| 中文字幕日韩一区| 91丨九色丨国产丨porny| 日日夜夜精品视频免费| 日韩欧美中文字幕制服| 五月天一区二区三区| 久久精品亚洲精品国产欧美 | 国产精品少妇自拍| 精品欧美黑人一区二区三区| 欧美精品日韩综合在线| 91在线免费视频观看| 99精品一区二区三区| 91精品国产欧美一区二区| 26uuu精品一区二区| 中文字幕免费观看一区| 日本伊人色综合网| 色综合一个色综合亚洲| 欧美大度的电影原声| 亚洲特级片在线| 国产真实精品久久二三区| 91视频在线观看| 日韩一区二区三区在线| 亚洲女人****多毛耸耸8| 丝袜亚洲另类欧美| 国产乱对白刺激视频不卡| 91网站最新网址| 日韩欧美激情在线| 国产精品麻豆99久久久久久| 伊人夜夜躁av伊人久久| 日韩高清不卡在线| 蜜桃91丨九色丨蝌蚪91桃色| 国产成人精品三级麻豆| 在线观看91精品国产入口| 久久午夜国产精品| 午夜在线成人av| 另类成人小视频在线| 国产高清视频一区| 成人av先锋影音| 91国产免费观看| 亚洲一区二区三区三| 亚洲韩国一区二区三区| 日韩精品乱码免费| 日韩欧美中文字幕一区| 欧美日本视频在线| 国产清纯在线一区二区www| 亚洲国产精品久久艾草纯爱| 国产自产高清不卡| 色婷婷亚洲精品| 日韩精品一区二区三区swag| 亚洲人成网站色在线观看| 美国毛片一区二区三区| 色爱区综合激月婷婷| 久久久亚洲精品一区二区三区| 亚洲另类春色校园小说| 国产一区二区三区日韩| 欧美日韩精品欧美日韩精品| 最近中文字幕一区二区三区| 免费观看30秒视频久久| 日本精品裸体写真集在线观看| 久久综合九色综合欧美就去吻| 一区二区三区在线高清| 国产夫妻精品视频| 国产午夜一区二区三区| 久久精品国产一区二区三区免费看| 91豆麻精品91久久久久久| 国产精品你懂的| 成人免费三级在线| 欧美激情在线一区二区三区|