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

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

?? spellchecker.php

?? 改進及新特性: 1、調整模版編輯時的流程及提示語言 2、新增sitemaps生成功能 3、優化評論頁面的顯示格式 BUG修正: 1、getarticlelist標簽對于現有參數提示錯誤
?? 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一区二区三区免费野_久草精品视频
久久只精品国产| 亚洲精品videosex极品| 久久久久高清精品| 亚洲激情男女视频| 国产成人自拍网| 91免费观看视频| 日韩免费看网站| 亚洲欧洲三级电影| 中文字幕一区二区三区四区| 午夜久久久影院| 国产精品影音先锋| 欧美一区日韩一区| 国产欧美日韩在线看| 亚洲不卡av一区二区三区| 国产成人自拍高清视频在线免费播放| 欧美日韩午夜精品| 亚洲欧美在线aaa| 蜜桃一区二区三区在线观看| 成人a区在线观看| 精品福利av导航| 亚洲一区二区三区在线| 久久av中文字幕片| 91激情五月电影| 精品国产乱子伦一区| 天天综合天天综合色| 91天堂素人约啪| 国产女人18毛片水真多成人如厕| 亚洲成人动漫在线免费观看| 狠狠网亚洲精品| 欧美视频一区二| 18涩涩午夜精品.www| 成人午夜av影视| 日韩精品一区二区三区在线| 国产精品不卡一区| 国产一区二区三区美女| 91.成人天堂一区| 亚洲综合av网| 99视频有精品| 久久夜色精品一区| 久久99久久精品欧美| 欧美美女bb生活片| 亚洲国产中文字幕| 欧美无人高清视频在线观看| 中文字幕在线不卡视频| 成人av网站免费观看| 26uuu精品一区二区| 精品亚洲aⅴ乱码一区二区三区| 日韩一卡二卡三卡国产欧美| 日韩精品久久久久久| 欧美日韩高清一区二区不卡 | 欧美日韩性生活| 亚洲欧美日韩小说| 在线观看日韩国产| 亚洲高清免费视频| 欧美午夜电影一区| 午夜激情一区二区三区| 欧美精品粉嫩高潮一区二区| 日韩综合一区二区| 日韩亚洲欧美一区二区三区| 激情五月婷婷综合| 欧美国产乱子伦| 成人激情图片网| 亚洲一区在线视频| 日韩一卡二卡三卡| 国产宾馆实践打屁股91| 国产精品无圣光一区二区| 不卡大黄网站免费看| 亚洲欧美国产高清| 欧美精品第一页| 成人免费观看视频| 午夜伦欧美伦电影理论片| 精品毛片乱码1区2区3区| 国产很黄免费观看久久| 亚洲欧美日韩综合aⅴ视频| 欧美日韩中文另类| 久88久久88久久久| 国产欧美日韩视频在线观看| 欧美影院一区二区| 激情五月播播久久久精品| 国产人妖乱国产精品人妖| 91在线视频免费观看| 亚洲欧美国产77777| 色噜噜狠狠色综合欧洲selulu| 亚洲视频在线一区观看| 欧美三级中文字幕在线观看| 麻豆国产一区二区| 国产精品久久久久aaaa樱花| 欧美日韩午夜在线| 成人免费黄色大片| 天堂va蜜桃一区二区三区漫画版 | 粗大黑人巨茎大战欧美成人| 中文字幕亚洲一区二区av在线| 在线观看视频一区二区欧美日韩| 美女在线观看视频一区二区| 亚洲欧美日韩国产中文在线| 精品日韩一区二区| 97se亚洲国产综合自在线| 美女视频黄免费的久久| 亚洲色欲色欲www| 精品精品国产高清a毛片牛牛| 99re热视频精品| 激情图片小说一区| 五月天亚洲精品| 亚洲激情图片小说视频| 欧美高清在线视频| 日韩亚洲欧美成人一区| 色中色一区二区| 成人中文字幕合集| 日韩精品91亚洲二区在线观看| 亚洲美女在线一区| 久久亚洲综合色一区二区三区| 欧美人xxxx| 欧美性猛交xxxx黑人交| 94-欧美-setu| 国产精品一线二线三线精华| 男人的天堂亚洲一区| 亚洲尤物在线视频观看| 国产精品毛片无遮挡高清| 精品sm捆绑视频| 日韩欧美一级二级| 欧美日韩大陆在线| 国产老妇另类xxxxx| 久久精品国产一区二区| 视频精品一区二区| 亚洲精品中文字幕在线观看| 中文字幕一区二区三区精华液 | 欧美久久久久久久久久| 色狠狠桃花综合| 91久久精品一区二区| 91国内精品野花午夜精品| 91蜜桃视频在线| 色婷婷综合久色| 欧美午夜免费电影| 欧美男女性生活在线直播观看| 欧美日韩一区高清| 成人午夜免费视频| 精品在线一区二区| 麻豆精品久久久| 国产伦精品一区二区三区免费迷 | 日本va欧美va精品发布| 日韩一级欧美一级| 色哟哟日韩精品| 亚洲国产精品久久人人爱| 久久综合久久综合九色| 日韩欧美国产电影| 欧美日韩二区三区| 欧美电影一区二区三区| 欧美日韩在线综合| 91成人看片片| www.日韩大片| 成人av资源在线观看| 99国产精品99久久久久久| 丁香桃色午夜亚洲一区二区三区| 国产美女av一区二区三区| 国产传媒一区在线| 成人av免费在线播放| jizzjizzjizz欧美| 色一区在线观看| 色噜噜狠狠成人中文综合| 一区二区视频在线看| 欧美成人三级电影在线| 国产精品亚洲一区二区三区在线| 中文字幕在线不卡一区二区三区| 久久久综合网站| 久久嫩草精品久久久精品一| 日韩一区二区三区电影在线观看| 日韩成人免费看| 久久久99精品久久| 亚洲精品国产一区二区三区四区在线 | 午夜成人免费视频| 奇米精品一区二区三区在线观看一| 午夜久久电影网| 国产精品1区2区| www.亚洲在线| www.激情成人| 亚洲视频香蕉人妖| 欧美日韩亚州综合| 亚洲一区在线观看视频| 免费的成人av| 国产激情91久久精品导航| 国产91丝袜在线播放九色| 精品视频在线免费| 欧美一级日韩免费不卡| 日本一区二区三区视频视频| 日韩1区2区3区| 粉嫩高潮美女一区二区三区| 欧美性感一类影片在线播放| 91精品国产综合久久国产大片| 久久久久国产精品人| 亚洲福利一区二区| 国产高清视频一区| 99精品国产99久久久久久白柏 | 国产一区三区三区| 欧美探花视频资源| 亚洲另类在线视频| www.激情成人| 中文字幕精品一区二区三区精品| 日韩电影在线免费观看| 在线精品视频一区二区三四 | 色丁香久综合在线久综合在线观看|