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

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

?? spellchecker.php

?? OA.....其他人不需帳號就可自由下載此源碼其他人不需帳號就可自由下載此源碼
?? PHP
字號:
<?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] );
			$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一区二区三区免费野_久草精品视频
欧美综合色免费| zzijzzij亚洲日本少妇熟睡| 一区视频在线播放| 国产欧美一区二区精品婷婷| 日韩一卡二卡三卡四卡| 在线不卡中文字幕| 欧美精品xxxxbbbb| 欧美一区在线视频| 精品精品欲导航| 国产三区在线成人av| 国产亚洲一区二区三区四区| 中文字幕中文字幕一区| 亚洲一区二区3| 爽好久久久欧美精品| 美女视频一区在线观看| 国产毛片精品国产一区二区三区| 国产精品一区二区你懂的| 成人国产免费视频| 色婷婷国产精品久久包臀| 欧美久久久一区| 欧美tk丨vk视频| 国产精品污污网站在线观看| 亚洲欧洲中文日韩久久av乱码| 亚洲国产日日夜夜| 韩国一区二区视频| 99re这里都是精品| 日韩午夜电影av| 亚洲国产电影在线观看| 一级特黄大欧美久久久| 另类小说一区二区三区| 成人午夜短视频| 欧美性xxxxxxxx| 国产清纯白嫩初高生在线观看91| 亚洲人成7777| 国产一区欧美日韩| 欧美日韩一区小说| 国产亚洲一区字幕| 日韩av二区在线播放| 成人a级免费电影| 制服丝袜亚洲播放| 1024精品合集| 韩国视频一区二区| 欧美伦理影视网| 国产精品乱码一区二区三区软件| 日韩激情中文字幕| 99精品黄色片免费大全| 久久久综合激的五月天| 日韩高清一级片| 91国偷自产一区二区使用方法| 国产亚洲成年网址在线观看| 视频一区二区三区入口| 91亚洲永久精品| 久久午夜羞羞影院免费观看| 香蕉成人伊视频在线观看| jvid福利写真一区二区三区| 欧美videos大乳护士334| 亚洲国产成人av网| 99久久免费视频.com| 国产午夜精品一区二区| 日韩成人免费电影| 欧美日韩在线综合| 亚洲精品日韩综合观看成人91| 丁香啪啪综合成人亚洲小说 | 天天综合色天天| 99国产精品视频免费观看| 久久久久88色偷偷免费| 久久99国产精品久久| 欧美二区乱c少妇| 日日噜噜夜夜狠狠视频欧美人| 欧美主播一区二区三区| 伊人性伊人情综合网| 91在线观看地址| 最新中文字幕一区二区三区| caoporn国产一区二区| 中文字幕精品一区| 99久久99久久精品国产片果冻| 国产精品久久久久久福利一牛影视 | 欧美主播一区二区三区| 亚洲自拍偷拍麻豆| 欧美综合一区二区三区| 亚洲国产日产av| 欧美一区二区三区免费| 久久国产乱子精品免费女| 精品国产免费人成在线观看| 韩国毛片一区二区三区| 久久网站热最新地址| 国产成人亚洲综合色影视| 国产精品免费久久| 一本色道久久综合精品竹菊| 亚洲成人午夜影院| 日韩一区二区精品在线观看| 国内精品久久久久影院色| 国产精品日产欧美久久久久| 色综合一区二区三区| 亚洲福利视频一区| 精品国产乱码久久久久久影片| 国产成人精品免费网站| 亚洲一区二区三区四区五区中文| 欧美福利视频导航| 国内外成人在线视频| 国产精品欧美综合在线| 欧美视频在线一区| 久久成人久久爱| 最新欧美精品一区二区三区| 欧美日韩精品欧美日韩精品一综合| 日本vs亚洲vs韩国一区三区二区 | 蜜臀av国产精品久久久久| 久久久久久毛片| 91国产成人在线| 欧美日韩精品高清| 亚洲天堂a在线| 欧美午夜免费电影| 亚洲三级久久久| 777午夜精品免费视频| 国产成人在线影院| 久久99久久精品| 久久色.com| 免费视频一区二区| 亚洲国产日韩一级| 视频一区欧美精品| 蜜臀久久久久久久| 国产一区二区三区电影在线观看 | 玉米视频成人免费看| 一区二区三区四区国产精品| 亚洲色图视频免费播放| 亚洲最新视频在线播放| 亚洲精品成a人| 午夜精品福利一区二区三区蜜桃| 亚洲图片欧美综合| 日本欧美大码aⅴ在线播放| 麻豆精品一二三| 国产高清在线精品| 91小视频在线免费看| 欧美久久久久久蜜桃| 精品免费日韩av| 国产精品无人区| 亚洲国产综合91精品麻豆| 蜜臀av亚洲一区中文字幕| 国产主播一区二区三区| 99久久综合精品| 欧美久久一二三四区| 久久蜜桃一区二区| 亚洲综合在线观看视频| 秋霞成人午夜伦在线观看| 国产成人av电影在线播放| 日本韩国欧美在线| 亚洲精品一区二区三区蜜桃下载 | 国产在线一区二区综合免费视频| 国产成人精品免费一区二区| 在线观看欧美精品| 久久综合999| 一区二区三区精密机械公司| 九九热在线视频观看这里只有精品| 国v精品久久久网| 欧美日韩国产三级| 中文字幕的久久| 日韩av电影一区| eeuss鲁一区二区三区| 欧美一区二区三区在线观看视频| 国产精品二三区| 麻豆久久久久久久| 91久久国产最好的精华液| 久久综合色天天久久综合图片| 一区二区三区四区五区视频在线观看| 久草这里只有精品视频| 在线一区二区三区四区| 国产欧美日韩不卡| 视频一区二区不卡| 色综合咪咪久久| 国产日韩精品一区二区三区| 午夜精品久久久久久久| 成人avav在线| 日韩女优av电影| 亚洲综合区在线| 91美女蜜桃在线| 久久精品一区二区三区四区| 天堂一区二区在线| 色婷婷久久久久swag精品| 国产欧美日韩另类视频免费观看 | 日韩美女视频在线| 亚洲三级在线免费| 岛国精品在线播放| 精品国产免费一区二区三区四区 | 亚洲卡通动漫在线| 懂色av中文字幕一区二区三区| 日韩一区二区三区免费看 | 国产精品18久久久久久久网站| 欧美日韩和欧美的一区二区| 亚洲码国产岛国毛片在线| 懂色中文一区二区在线播放| 国产亚洲一区字幕| 国产乱码精品一区二区三区忘忧草| 日韩午夜中文字幕| 亚洲成人一区二区| 欧美日韩免费不卡视频一区二区三区| 亚洲美女免费视频| 在线观看免费一区| 亚洲国产欧美另类丝袜| 在线观看成人小视频| 亚洲高清视频的网址|