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

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

?? spellchecker.php

?? 這是一個(gè)BBS系統(tǒng)
?? PHP
字號(hào):
<?php
header('Content-type: text/html; charset=utf-8');

// The following variables values must reflect your installation needs.

$aspell_prog	= '"C:\Program Files\Aspell\bin\aspell.exe"';	// by FredCK (for Windows)
//$aspell_prog	= 'aspell';										// by FredCK (for Linux)

$lang			= 'en_US';
$aspell_opts	= "-a --lang=$lang --encoding=utf-8 -H --rem-sgml-check=alt";		// by FredCK

$tempfiledir	= "./";

$spellercss		= '../spellerStyle.css';						// by FredCK
$word_win_src	= '../wordWindow.js';							// by FredCK

$textinputs		= $_POST['textinputs']; # array
$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 = '" . preg_replace( "/['\\\\]/", "\\\\$0", $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] );

			// Strip all tags for the text. (by FredCK - #339 / #681)
			$text = preg_replace( "/<[^>]+>/", " ", $text ) ;

			$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>

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产乱子伦一区| 欧美日韩高清一区二区不卡| 亚洲女子a中天字幕| 欧美videofree性高清杂交| 不卡的av电影| 手机精品视频在线观看| 亚洲一区中文在线| 中文字幕日韩一区| 中文字幕av在线一区二区三区| 精品福利在线导航| 日韩欧美亚洲国产另类| 在线91免费看| 欧美tk—视频vk| 91精品国产福利在线观看| 色狠狠一区二区三区香蕉| 成人动漫在线一区| 成人动漫在线一区| 色综合久久综合网97色综合| 9i看片成人免费高清| 成人在线视频一区| 欧美在线视频你懂得| 91在线观看视频| 国产三级三级三级精品8ⅰ区| 国产精品网站导航| 久久精品久久99精品久久| 91理论电影在线观看| 久久蜜臀中文字幕| 久久国产夜色精品鲁鲁99| 91国偷自产一区二区三区观看| 久久久久久久性| 国产一二精品视频| 欧美xxxxxxxxx| 午夜精品久久久久久久久久久 | 欧美日本一道本在线视频| **性色生活片久久毛片| 国产精品资源在线| 亚洲一二三四在线观看| 国产精品女人毛片| 视频在线在亚洲| 国产精品影音先锋| 成人av网站免费| 欧美一级理论片| 国产日产欧美一区| 亚洲精品欧美综合四区| 久久亚洲一区二区三区四区| 亚洲欧美中日韩| 成人午夜av电影| 日韩一区二区视频在线观看| 精品在线观看视频| 日韩一区二区三区电影| 日本伊人色综合网| 日韩精品一区二区三区老鸭窝| 午夜久久福利影院| 日韩一区二区三区精品视频| 国产一区二区中文字幕| 精品美女在线播放| 国产乱子轮精品视频| 国产校园另类小说区| 国产传媒日韩欧美成人| 日本一区二区三区在线观看| 色噜噜夜夜夜综合网| 亚洲国产一区二区a毛片| 欧美三级资源在线| 午夜视频在线观看一区二区三区| 欧美日韩二区三区| 国产一区二区不卡在线| 国产亚洲婷婷免费| 顶级嫩模精品视频在线看| 国产精品丝袜久久久久久app| 色婷婷精品久久二区二区蜜臂av| 亚洲乱码国产乱码精品精的特点| 日本精品视频一区二区| 久久99精品国产麻豆不卡| 26uuu久久天堂性欧美| 成人美女视频在线观看18| 午夜视频一区二区| 精品动漫一区二区三区在线观看| 国产大陆a不卡| 亚洲成人黄色小说| 久久综合久久久久88| 成人短视频下载| 亚洲特级片在线| 精品99一区二区| gogo大胆日本视频一区| 一本一道久久a久久精品 | 一区二区三区美女视频| 成人精品一区二区三区中文字幕| 欧美日韩国产欧美日美国产精品| 一区二区三区精品视频| av不卡一区二区三区| 国产欧美日产一区| 99国内精品久久| 色综合视频一区二区三区高清| 国产精品免费久久| 精品国产乱码久久久久久久| 97aⅴ精品视频一二三区| 麻豆精品视频在线观看视频| 亚洲精品中文字幕在线观看| 精品日韩在线观看| 欧美亚洲综合在线| 99久久国产综合色|国产精品| 亚洲第一二三四区| 中文字幕va一区二区三区| 精品久久久久久久久久久久久久久| 99精品视频在线观看| 极品美女销魂一区二区三区免费| 午夜视频在线观看一区| 亚洲欧美日韩国产综合| 欧美成人精品二区三区99精品| 欧美日韩国产经典色站一区二区三区| 精品一区二区三区香蕉蜜桃| 亚洲夂夂婷婷色拍ww47| 欧美国产精品久久| 久久蜜桃av一区二区天堂| 精品欧美一区二区三区精品久久| 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲国产一区二区在线播放| 最好看的中文字幕久久| 日韩三级高清在线| 欧美一区二区免费视频| 色综合中文字幕国产| 国产suv一区二区三区88区| 91精品婷婷国产综合久久性色| 亚洲.国产.中文慕字在线| 欧美一级专区免费大片| 99精品视频一区二区三区| 亚洲1区2区3区4区| 久久久久久久电影| 欧美亚洲禁片免费| 国产在线麻豆精品观看| 国产精品理伦片| 欧美v亚洲v综合ⅴ国产v| eeuss国产一区二区三区| 婷婷亚洲久悠悠色悠在线播放| 欧美在线观看视频一区二区| 国产夫妻精品视频| 亚洲h在线观看| 久久精品一区二区三区不卡牛牛 | 成人综合日日夜夜| 国产成人无遮挡在线视频| 国产精品1024久久| 色8久久人人97超碰香蕉987| 99久久国产综合精品色伊| 色婷婷亚洲精品| 欧美mv日韩mv国产网站| 精品久久国产字幕高潮| 精品国精品国产| 亚洲免费观看高清| 亚洲成人av一区| 日本成人在线看| 粉嫩绯色av一区二区在线观看| 成人av资源网站| 91成人在线免费观看| 欧美电影在哪看比较好| 欧美成人一区二区三区片免费| 久久综合九色综合97_久久久| 高清国产一区二区三区| 亚洲一区二三区| 亚洲同性同志一二三专区| 欧美久久免费观看| 欧美放荡的少妇| 欧美性欧美巨大黑白大战| 波多野结衣在线aⅴ中文字幕不卡| 懂色一区二区三区免费观看| 国产一区二区三区最好精华液| wwww国产精品欧美| 久久综合色一综合色88| 中文字幕字幕中文在线中不卡视频| 亚洲成人免费视| 日韩有码一区二区三区| 99久精品国产| 日韩你懂的在线观看| 欧美va在线播放| 亚洲高清视频在线| 久久精品夜色噜噜亚洲aⅴ| 色香色香欲天天天影视综合网| 日韩视频一区在线观看| 亚洲欧美激情小说另类| 国产精品亚洲人在线观看| 欧美一区三区四区| 亚洲欧美日韩中文播放| 国产成人在线看| 亚洲精品一区二区精华| 日韩av不卡一区二区| 欧美视频日韩视频| 亚洲精品乱码久久久久久黑人| 国产成人h网站| 久久久久久亚洲综合影院红桃| 美国欧美日韩国产在线播放| 欧美日韩三级在线| 亚洲国产精品人人做人人爽| 91国产成人在线| 亚洲欧美国产高清| 91捆绑美女网站| 中文字幕日韩一区| 成人一级片在线观看| 久久久美女艺术照精彩视频福利播放| 日韩福利视频网| 欧美猛男gaygay网站| 性久久久久久久久久久久|