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

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

?? spellchecker.php

?? java web網絡編程示例,原代碼資源
?? 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一区二区三区免费野_久草精品视频
精品一二三四在线| 在线一区二区三区| 日韩一区二区三免费高清| 国产一区在线观看麻豆| 国产99久久久久久免费看农村| 极品少妇一区二区| 国产精品国产三级国产普通话蜜臀| 色综合婷婷久久| 国产麻豆视频一区二区| 亚洲国产一二三| 成人免费在线观看入口| 欧美大片一区二区三区| 色哟哟一区二区在线观看| 国产精品亚洲视频| 奇米色777欧美一区二区| 亚洲蜜桃精久久久久久久| 国产日本欧洲亚洲| 性做久久久久久免费观看| 国内精品伊人久久久久av一坑| 精品日韩欧美在线| 亚洲高清视频在线| 在线不卡中文字幕| 日韩一区欧美一区| 欧美日韩亚洲综合一区二区三区| 欧美aaaaaa午夜精品| 免费在线观看不卡| 国内欧美视频一区二区 | 中文字幕乱码亚洲精品一区 | 欧美大黄免费观看| 欧美高清视频一二三区 | 欧美激情艳妇裸体舞| 国产亚洲成aⅴ人片在线观看| 日韩精品一区二区在线| 日韩一二在线观看| 日韩精品一区在线| 精品成人a区在线观看| 日韩免费一区二区| 日韩一区二区三区在线视频| 91精品在线麻豆| 日韩欧美三级在线| 欧美成人精品二区三区99精品| 91精品久久久久久久91蜜桃| 69堂精品视频| 精品日韩在线一区| 国产日韩视频一区二区三区| 中文字幕乱码久久午夜不卡 | 91欧美一区二区| 极品少妇xxxx精品少妇偷拍| 国产在线精品免费av| 国产美女一区二区| eeuss影院一区二区三区 | 91福利在线观看| 欧美精品高清视频| 精品粉嫩aⅴ一区二区三区四区| 欧美成人性战久久| 久久久亚洲高清| 中文字幕一区不卡| 无码av免费一区二区三区试看| 天堂久久一区二区三区| 精品亚洲国内自在自线福利| 国产91色综合久久免费分享| 一本大道av伊人久久综合| 欧美日韩亚洲综合一区二区三区| 日韩欧美资源站| 国产精品丝袜一区| 亚洲成a人v欧美综合天堂| 精油按摩中文字幕久久| 成人免费的视频| 欧美精选午夜久久久乱码6080| 精品成人在线观看| 亚洲欧美色图小说| 久久国产欧美日韩精品| 成人免费视频视频在线观看免费| 欧洲精品一区二区三区在线观看| 日韩欧美一级二级| 亚洲桃色在线一区| 久久狠狠亚洲综合| 91黄色激情网站| 久久综合一区二区| 亚洲一区二区免费视频| 经典三级视频一区| 欧日韩精品视频| 久久精品一区二区| 日韩国产在线观看一区| 成人性生交大片免费看中文| 欧美丰满少妇xxxbbb| 国产精品久久久久久久久免费相片 | 日韩国产精品久久| 99精品久久久久久| 欧美大片一区二区三区| 亚洲最新视频在线播放| 国产老女人精品毛片久久| 欧美日韩一区二区三区四区五区 | 色综合一个色综合亚洲| 欧美精品一区二区蜜臀亚洲| 亚洲综合另类小说| 成人黄色片在线观看| 日韩一区二区在线观看视频| 亚洲麻豆国产自偷在线| 国产精品1区2区3区在线观看| 欧美精选一区二区| 一区二区三区视频在线看| 精品99久久久久久| 亚洲日本在线a| 极品美女销魂一区二区三区| 欧美日韩小视频| 亚洲精品欧美在线| 成人免费视频免费观看| 久久综合狠狠综合久久激情| 日韩精品免费视频人成| 色8久久人人97超碰香蕉987| 国产精品青草综合久久久久99| 久久99精品久久久| 欧美一级二级三级蜜桃| 亚洲va韩国va欧美va精品| 91麻豆精东视频| 国产精品二三区| 国产精品99久久久久久似苏梦涵| 欧美mv日韩mv亚洲| 日本视频中文字幕一区二区三区| 欧美色老头old∨ideo| 亚洲色图另类专区| 99久久国产免费看| 国产精品第13页| 成人一二三区视频| 中文字幕在线一区| 99亚偷拍自图区亚洲| 国产精品国产三级国产普通话三级| 国产成人啪免费观看软件| 国产亚洲一区字幕| 成人精品视频一区| 成人欧美一区二区三区白人| jizzjizzjizz欧美| 亚洲日本欧美天堂| 在线观看区一区二| 天堂午夜影视日韩欧美一区二区| 欧美日韩国产精选| 日韩电影在线看| 精品国产精品网麻豆系列| 精品一区二区在线看| 久久欧美中文字幕| k8久久久一区二区三区| 悠悠色在线精品| 欧美猛男gaygay网站| 麻豆精品在线播放| 久久久久国产一区二区三区四区| 国产成人av自拍| 成人免费小视频| 欧美最猛黑人xxxxx猛交| 午夜久久电影网| 日韩欧美美女一区二区三区| 激情综合网av| 国产精品久久久久婷婷二区次 | 制服丝袜国产精品| 久久99热狠狠色一区二区| 久久久久久免费| 99久久国产综合精品色伊| 亚洲电影第三页| 26uuu色噜噜精品一区二区| 国产大陆精品国产| 亚洲黄色录像片| 精品国产三级电影在线观看| 成人伦理片在线| 一二三区精品福利视频| 日韩一级高清毛片| 成av人片一区二区| 日韩国产一区二| 国产精品欧美综合在线| 欧美日韩国产bt| 国产91精品露脸国语对白| 亚洲一级二级在线| 久久精品欧美一区二区三区麻豆| 色综合天天综合狠狠| 美女网站视频久久| 欧美日韩国产成人在线91| 亚洲免费伊人电影| 日韩欧美在线不卡| eeuss鲁片一区二区三区在线观看| 亚洲影院理伦片| 国产亚洲成aⅴ人片在线观看 | 国产亚洲人成网站| 在线一区二区三区四区五区 | 国产福利电影一区二区三区| 亚洲资源中文字幕| 久久精品亚洲精品国产欧美| 欧美色图第一页| 成人午夜激情视频| 麻豆91精品视频| 亚洲一二三四久久| 一色屋精品亚洲香蕉网站| 精品日韩欧美在线| 欧美日韩一区二区在线观看视频| 国产成人精品三级| 九九**精品视频免费播放| 亚洲午夜精品网| ...xxx性欧美| 国产日韩高清在线| 精品精品国产高清一毛片一天堂| 在线视频你懂得一区| 成人97人人超碰人人99|