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

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

?? spellchecker.php

?? 本程序用jsp+servlet+javaBean+EJB實現交友系統
?? 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一区二区三区免费野_久草精品视频
91精品国产综合久久久久| 欧美少妇一区二区| 男女男精品视频网| 日韩福利视频导航| 日韩精品一二三| 性做久久久久久免费观看欧美| 一个色在线综合| 亚洲国产成人91porn| 亚洲一区影音先锋| 亚洲成av人影院在线观看网| 午夜精品一区二区三区电影天堂 | 日本亚洲三级在线| 日韩电影一区二区三区四区| 国产精品小仙女| 成人免费毛片a| 91麻豆swag| 91精品国产综合久久久蜜臀图片 | 欧美电影免费观看高清完整版在线| 欧美性极品少妇| 欧美丰满高潮xxxx喷水动漫| 欧美大片日本大片免费观看| 国产亚洲精品超碰| 亚洲欧美另类小说| 香港成人在线视频| 国产裸体歌舞团一区二区| kk眼镜猥琐国模调教系列一区二区| 色悠悠亚洲一区二区| 91精品国产综合久久久久久漫画| 精品国产一区二区国模嫣然| 中文字幕一区在线| 免费久久精品视频| 99这里只有精品| 51精品视频一区二区三区| 国产丝袜美腿一区二区三区| 亚洲视频每日更新| 捆绑变态av一区二区三区| yourporn久久国产精品| 欧美一区二区大片| 国产精品国产三级国产a| 日韩经典一区二区| proumb性欧美在线观看| 日韩欧美国产电影| 一区二区三区免费观看| 国产美女一区二区三区| 欧美精品久久99久久在免费线 | thepron国产精品| 91麻豆精品91久久久久同性| 国产精品短视频| 蜜臀久久99精品久久久久宅男| a美女胸又www黄视频久久| 日韩欧美一级片| 亚洲精品第1页| 懂色av一区二区夜夜嗨| 日韩一级片在线播放| 一区二区欧美视频| 丁香激情综合国产| 久久嫩草精品久久久久| 日本不卡不码高清免费观看| 欧美综合一区二区| 亚洲色欲色欲www| 国产91综合网| 久久久久国产精品厨房| 精品亚洲porn| 日韩三级在线免费观看| 日韩不卡一区二区| 欧美少妇xxx| 一区二区激情小说| 日本高清不卡视频| 中文字幕制服丝袜成人av| 国产suv精品一区二区6| 久久综合久久综合九色| 激情国产一区二区| 2023国产精品自拍| 激情小说亚洲一区| 久久这里只精品最新地址| 精品中文字幕一区二区| 精品久久人人做人人爽| 蜜臀91精品一区二区三区| 日韩欧美国产高清| 国产一区二区按摩在线观看| 欧美v日韩v国产v| 久久se精品一区精品二区| 欧美电影免费观看高清完整版| 日本怡春院一区二区| 日韩精品中午字幕| 色婷婷国产精品久久包臀| 亚洲欧洲成人自拍| 91蝌蚪porny九色| 亚洲一线二线三线视频| 8v天堂国产在线一区二区| 热久久免费视频| 久久久精品tv| 91亚洲国产成人精品一区二区三| 亚洲欧美日韩国产综合在线 | 午夜精品一区二区三区免费视频 | 欧美剧情电影在线观看完整版免费励志电影 | 国产一区二区精品在线观看| 久久综合色一综合色88| 不卡一卡二卡三乱码免费网站| 日韩美女啊v在线免费观看| 欧美性生活大片视频| 蜜桃一区二区三区在线观看| 国产欧美一区二区精品性色| 色综合久久综合网| 久久99精品久久久久久国产越南 | 亚洲欧美日韩国产另类专区| 欧美日韩久久一区| 国产一区91精品张津瑜| 亚洲视频资源在线| 日韩一区二区三区三四区视频在线观看| 国内偷窥港台综合视频在线播放| 国产亚洲综合性久久久影院| 欧美午夜电影在线播放| 国产在线不卡一卡二卡三卡四卡| 亚洲色大成网站www久久九九| 91麻豆精品国产91久久久久久 | 日韩一区二区三区四区| 成人性生交大片免费看视频在线| 亚洲一区二区三区四区五区中文 | 亚洲成人动漫一区| 国产人妖乱国产精品人妖| 欧美日韩在线直播| 不卡av在线网| 狠狠狠色丁香婷婷综合久久五月| 一区二区三区成人在线视频| 日本一区二区在线不卡| 91精品国产综合久久久久| 在线看日本不卡| 成人久久18免费网站麻豆 | 成人app网站| 看片的网站亚洲| 亚洲国产精品久久人人爱| 中文字幕一区二区不卡| 久久丝袜美腿综合| 日韩欧美亚洲国产另类| 欧美性受xxxx黑人xyx性爽| 成a人片亚洲日本久久| 国产精品自在在线| 激情小说亚洲一区| 免播放器亚洲一区| 日韩福利电影在线观看| 亚洲一卡二卡三卡四卡| 亚洲激情图片一区| 亚洲婷婷综合色高清在线| 欧美国产精品中文字幕| 国产视频视频一区| 久久久久综合网| 久久久91精品国产一区二区精品 | 日韩高清不卡一区二区三区| 一区二区三区在线免费播放| 成人欧美一区二区三区| 1区2区3区欧美| 中文字幕电影一区| 国产精品国产自产拍高清av| 中文字幕五月欧美| 亚洲精品第1页| 亚洲国产欧美另类丝袜| 亚洲成人在线观看视频| 视频一区二区三区入口| 日韩电影在线免费| 久久成人久久爱| 国产一区在线精品| 国v精品久久久网| 99vv1com这只有精品| 欧美无乱码久久久免费午夜一区| 欧美亚一区二区| 精品久久免费看| 国产精品久久久久久久久免费樱桃 | 欧美日韩成人一区| 欧美一级理论性理论a| 91精品国产色综合久久久蜜香臀| 欧美videos中文字幕| 国产亚洲美州欧州综合国| 国产精品久久久久久久久动漫 | 日韩欧美一级二级| 国产无一区二区| 亚洲视频网在线直播| 五月婷婷综合激情| 精品一区二区三区免费观看| 成人开心网精品视频| 欧美三级电影一区| 26uuu精品一区二区在线观看| 国产精品视频免费| 日韩精品一级中文字幕精品视频免费观看| 喷白浆一区二区| 99久久婷婷国产综合精品电影| 欧美性色欧美a在线播放| 精品国产精品网麻豆系列| 日韩一区日韩二区| 久久99精品视频| 色美美综合视频| 久久在线观看免费| 亚洲伊人色欲综合网| 粉嫩嫩av羞羞动漫久久久| 欧美日韩一级片在线观看| 亚洲国产精品激情在线观看| 天天色综合成人网| 91丝袜美腿高跟国产极品老师| 欧美岛国在线观看| 亚洲一区在线观看视频|