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

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

?? spellchecker.php

?? 本項目是基于展示新聞的一款產(chǎn)品。在本系統(tǒng)中用戶可以自定義欄目及新聞分類 發(fā)布新聞信息
?? 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>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩专区在线| 午夜精品123| 秋霞午夜鲁丝一区二区老狼| 国产成人免费视频一区| 欧美精品777| 一区二区三区欧美在线观看| 成人免费观看av| 日韩一区二区三区免费看| 亚洲自拍欧美精品| 91原创在线视频| 日本一区二区三区免费乱视频| 偷窥少妇高潮呻吟av久久免费| 99免费精品在线| 国产人成一区二区三区影院| 裸体一区二区三区| 欧美日本一道本在线视频| 一区二区三区欧美在线观看| www.成人网.com| 国产精品美日韩| 国产不卡免费视频| 国产亚洲欧美色| 精品在线播放午夜| 精品国产乱码久久久久久牛牛| 男男gaygay亚洲| 欧美一卡二卡三卡| 奇米色一区二区三区四区| 欧美日韩久久一区二区| 日韩欧美激情一区| 2020国产精品| 蜜桃视频一区二区| 在线电影国产精品| 日韩精品亚洲一区二区三区免费| 欧洲激情一区二区| 一区二区三区日韩| 欧美性生交片4| 亚洲一区在线观看免费观看电影高清 | 久久成人免费网站| 日韩一区二区视频| 国产自产高清不卡| 国产欧美一区二区精品忘忧草 | 日本一区中文字幕 | jvid福利写真一区二区三区| 久久久综合精品| 国产suv精品一区二区三区| 欧美国产精品专区| 色悠久久久久综合欧美99| 亚洲最新在线观看| 3d动漫精品啪啪一区二区竹菊| 天天操天天干天天综合网| 日韩一区二区三区四区| 视频一区视频二区在线观看| 欧美图区在线视频| 免费xxxx性欧美18vr| 久久久亚洲精品石原莉奈| av毛片久久久久**hd| 一区二区三区四区国产精品| 欧美一二三四在线| 国产福利一区在线观看| 亚洲精品国产无天堂网2021 | 日韩一区日韩二区| 欧美日韩视频在线一区二区| 裸体在线国模精品偷拍| 国产精品素人视频| 91精品中文字幕一区二区三区| 激情欧美一区二区| 一区二区三区在线观看欧美| 日韩天堂在线观看| 成人av免费在线播放| 日本人妖一区二区| 国产精品久久国产精麻豆99网站 | 国产精品灌醉下药二区| 日韩欧美一二区| 91精品久久久久久蜜臀| 国产精品2024| 国产综合久久久久久鬼色| 日本在线不卡视频| 免费成人av资源网| 免费在线观看成人| 日韩电影在线免费| 日韩精品欧美精品| 久久国产精品99久久久久久老狼 | 国产一区二区精品久久99| 久久av资源站| 国产一区999| 亚洲国产精品一区二区www | 在线一区二区视频| 日本韩国视频一区二区| 色婷婷一区二区三区四区| 欧美主播一区二区三区| 欧美精品第1页| 欧美成va人片在线观看| 精品福利一区二区三区免费视频| 亚洲精品一区二区三区99| 国产欧美一区二区在线观看| 中文字幕精品在线不卡| 亚洲另类在线制服丝袜| 日日摸夜夜添夜夜添国产精品 | 国产一区二区福利| 风间由美一区二区av101| 91一区在线观看| 91精品久久久久久久99蜜桃 | 中文字幕一区二区在线播放| 亚洲综合在线第一页| 日韩成人精品视频| 懂色中文一区二区在线播放| 色综合天天综合给合国产| 欧美一区二区三区在线| 精品一区二区三区免费| 亚洲欧美电影一区二区| 97久久精品人人澡人人爽| 白白色 亚洲乱淫| 欧洲一区二区三区免费视频| 日韩一区二区免费高清| 久久久欧美精品sm网站| 亚洲一区免费观看| 国产一区二区精品久久91| 在线一区二区三区| 2019国产精品| 亚洲一二三级电影| 国产成人综合在线播放| 色婷婷精品大视频在线蜜桃视频| 欧美一区二区福利在线| 亚洲欧美在线高清| 九色综合国产一区二区三区| 一本久久a久久精品亚洲| 欧美精品一区二区三区很污很色的 | 亚洲综合一区二区三区| 国产成人a级片| 91精品国产综合久久精品麻豆| 中文字幕第一区二区| 一区二区在线观看视频| 韩国av一区二区| 欧美日本视频在线| 国产精品国产三级国产普通话99 | 欧美日韩的一区二区| 中文字幕亚洲欧美在线不卡| 看电影不卡的网站| 欧美日韩在线播放三区四区| 中文字幕制服丝袜成人av| 久久er99热精品一区二区| 精品视频一区二区三区免费| 中文字幕一区在线观看| 国产福利一区二区三区视频| 91精品麻豆日日躁夜夜躁| 夜夜精品视频一区二区| 波多野结衣精品在线| 久久久激情视频| 久久精品久久精品| 欧美丰满少妇xxxbbb| 亚洲一区av在线| 一本色道久久综合狠狠躁的推荐| 国产精品人妖ts系列视频| 国产很黄免费观看久久| 久久伊人中文字幕| 激情另类小说区图片区视频区| 欧美一区二区私人影院日本| 亚洲va欧美va国产va天堂影院| 欧洲一区二区三区免费视频| 亚洲免费看黄网站| 色欧美88888久久久久久影院| 中文字幕电影一区| 成人av电影在线观看| 日本一区二区三区高清不卡| 国产成人免费在线| 国产人妖乱国产精品人妖| 国产伦精一区二区三区| 日本一区免费视频| 国产.精品.日韩.另类.中文.在线.播放| 精品日韩99亚洲| 九九热在线视频观看这里只有精品| 91精品国产aⅴ一区二区| 蜜桃视频一区二区| 久久久亚洲精品石原莉奈| 国产成人一级电影| 成人欧美一区二区三区1314| 色成人在线视频| 亚洲成av人片一区二区三区| 欧美一级国产精品| 精品综合免费视频观看| 欧美激情一区不卡| 91丨porny丨国产入口| 夜夜操天天操亚洲| 69堂国产成人免费视频| 麻豆国产精品一区二区三区 | 亚洲情趣在线观看| 欧美日韩国产一级| 精品一区二区三区免费观看| 久久久www免费人成精品| 中文字幕乱码一区二区免费| 亚洲欧洲精品一区二区三区| 成人高清视频在线| 亚洲一区在线观看免费| 日韩一级二级三级精品视频| 国产高清成人在线| 亚洲另类春色国产| 69精品人人人人| 国产v综合v亚洲欧| 亚洲妇女屁股眼交7| 久久久久久亚洲综合影院红桃| 99re66热这里只有精品3直播 |