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

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

?? spellchecker.php

?? 我之前寫的一個(gè)asp的cms比較簡(jiǎn)單
?? 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 = '" . 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] );

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


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美精品区一区二区三区| 99re热这里只有精品免费视频 | proumb性欧美在线观看| wwww国产精品欧美| 久久97超碰色| 国产丝袜美腿一区二区三区| 国产69精品一区二区亚洲孕妇| 久久精品视频一区| 99精品偷自拍| 亚洲一区自拍偷拍| 欧美日韩一区二区三区视频 | 91超碰这里只有精品国产| 一区二区欧美精品| 在线不卡一区二区| 国产一区二区三区不卡在线观看| 国产亚洲成av人在线观看导航| 成人免费毛片嘿嘿连载视频| 自拍偷在线精品自拍偷无码专区| 91麻豆.com| 青娱乐精品视频| 久久精品欧美一区二区三区不卡| av一区二区三区在线| 亚洲一区二区视频在线| 欧美另类videos死尸| 强制捆绑调教一区二区| 久久夜色精品一区| 91论坛在线播放| 美女视频免费一区| 一区在线播放视频| 欧美精品一区二区蜜臀亚洲| 国产亚洲欧美日韩在线一区| 色综合天天综合在线视频| 亚洲.国产.中文慕字在线| 久久影音资源网| 欧美怡红院视频| 国产一区日韩二区欧美三区| 亚洲欧美激情视频在线观看一区二区三区| 欧美亚洲日本国产| 国产福利精品一区二区| 亚洲成人777| 国产精品久久免费看| 91麻豆精品国产91久久久久| 经典三级在线一区| 亚洲第一在线综合网站| 国产无一区二区| 欧美日本韩国一区二区三区视频| 国产成人自拍高清视频在线免费播放| 亚洲精品乱码久久久久久久久 | 激情综合网av| 一个色在线综合| 国产日韩在线不卡| 正在播放亚洲一区| 91国产视频在线观看| 国产99久久久久久免费看农村| 亚洲久草在线视频| 欧美激情在线一区二区三区| 欧美一区二区三区男人的天堂| 91在线国产观看| 国产91在线观看| 蜜臀久久久久久久| 亚洲中国最大av网站| 国产精品久久影院| 欧美日韩国产经典色站一区二区三区 | 欧美久久久影院| 91在线精品秘密一区二区| 国产jizzjizz一区二区| 精品一区二区三区在线播放视频| 午夜久久久久久电影| 亚洲免费在线观看视频| 欧美国产一区二区在线观看 | 欧美色综合网站| 99久久久精品| 岛国一区二区在线观看| 九九精品一区二区| 精品一区精品二区高清| 老鸭窝一区二区久久精品| 日本不卡视频在线观看| 日韩制服丝袜av| 天天影视涩香欲综合网| 亚洲一区二区三区美女| 一区二区三区丝袜| 亚洲精品免费在线| 亚洲综合色在线| 亚洲国产综合91精品麻豆| 一区二区三区欧美| 亚洲大片精品永久免费| 亚洲成a人片综合在线| 夜夜亚洲天天久久| 一区二区三区在线视频播放| 亚洲最新视频在线播放| 午夜电影久久久| 美女视频黄久久| 国产乱子伦一区二区三区国色天香| 狠狠久久亚洲欧美| 国产成人亚洲精品狼色在线| 成人av在线网站| 亚洲精品大片www| 亚洲香肠在线观看| 喷白浆一区二区| 国产成人午夜电影网| av色综合久久天堂av综合| 一本一本大道香蕉久在线精品| 91丨porny丨国产| 欧美在线看片a免费观看| 欧美日韩国产一级二级| 日韩精品一区二区三区swag| 久久精品亚洲麻豆av一区二区 | 日本久久电影网| 欧美日韩亚洲不卡| 精品久久久久久久久久久久久久久| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美国产一区视频在线观看| 亚洲在线中文字幕| 蜜臀av一区二区在线观看| 国产精品自拍在线| 色素色在线综合| 欧美成人激情免费网| 中文字幕精品一区二区三区精品| 一区二区三区在线视频播放| 激情文学综合丁香| 色综合一个色综合| 欧美tk—视频vk| 亚洲蜜臀av乱码久久精品| 日韩精品一二三四| 成人免费黄色大片| 欧美丰满少妇xxxxx高潮对白| 国产亚洲成aⅴ人片在线观看 | 精品99999| 亚洲综合成人在线| 国产精品66部| 69堂亚洲精品首页| 椎名由奈av一区二区三区| 亚洲日穴在线视频| 日本vs亚洲vs韩国一区三区二区| 成人免费看片app下载| 欧美一区二区三区性视频| 国产精品人成在线观看免费| 轻轻草成人在线| 欧美最猛性xxxxx直播| 国产欧美一区二区精品秋霞影院| 一区二区三区欧美日| 国产酒店精品激情| 91精品视频网| 一区二区三区四区精品在线视频| 国内精品久久久久影院一蜜桃| 欧美在线看片a免费观看| 中文字幕中文字幕一区二区| 激情欧美一区二区| 欧美电影一区二区三区| 国产精品情趣视频| 蜜桃视频免费观看一区| 欧美视频一二三区| 一区二区三区四区在线免费观看| 国产成a人亚洲精| 精品国产乱码久久久久久闺蜜 | 日韩精品专区在线| 亚洲国产cao| 91高清在线观看| 亚洲三级小视频| 色狠狠av一区二区三区| 中文字幕一区av| 国产69精品久久久久777| 久久嫩草精品久久久精品一| 美女视频免费一区| 精品久久免费看| 麻豆精品在线播放| 欧美一级生活片| 日韩经典一区二区| 欧美精品aⅴ在线视频| 午夜婷婷国产麻豆精品| 欧美日韩精品免费观看视频| 一区二区三区四区高清精品免费观看| 99久久国产综合精品色伊| 免费成人在线观看| 美女国产一区二区| 精品久久人人做人人爽| 国产久卡久卡久卡久卡视频精品| 久久网这里都是精品| 国产精品99久久久久久似苏梦涵| 国产三级精品视频| 不卡的av网站| 亚洲精品高清在线观看| 欧美日韩一区精品| 日本va欧美va精品| 久久久亚洲欧洲日产国码αv| 国产精品1024久久| 中文字幕一区视频| 色视频一区二区| 日韩精彩视频在线观看| 亚洲精品一区二区三区福利| 国产精品69毛片高清亚洲| 综合分类小说区另类春色亚洲小说欧美| 色综合天天综合网天天狠天天| 亚洲高清免费在线| 日韩视频免费观看高清完整版在线观看| 免费av成人在线| 国产精品超碰97尤物18| 欧美丝袜第三区| 狂野欧美性猛交blacked| 国产色爱av资源综合区|