'') $exit_to=1; $page=intval(substr($word,2)); $dbpage=substr($word,2); if (strlen($dbpage)>0 && $page==0) $exit_to=1; if ($dbpage=='') $dbpage=0; if ($dbpage<>$page) $exit_to=1; if ($page=='1') $exit_to=1; if ($page<0) $exit_to=1; if ($exit_to) { header("HTTP/1.1 404 Not Found"); exit; } $word=substr($word,0,2); include("indexlist.php"); exit; } //https://www3.060s.com/english/dict/dict.php?word=the /* 单词 音标 解释 单词拼写 【例句用法】 【短语词组】 【相关词语】 同义词 反义词 【邻近词语】 【英英解释】 */ function mysql_link() { global $USER_ROOT,$USER_PASS; $LinkID=@mysql_connect("localhost", $USER_ROOT , $USER_PASS) or die("不能连接到数据库服务器!可能是数据库服务器没有启动,或者用户名密码有误!"); mysql_query("SET NAMES 'gbk'",$LinkID); @mysql_select_db("system_db",$LinkID) or die("选择数据库出错,可能是您指定的数据库不存在!"); return $LinkID; } //$LinkID=mysql_link(); $LinkID=connect_db(); $word=urldecode(str_replace(',',' ',$_GET['word'])); $word=trim(str_replace(' ',' ',str_replace('?','',str_replace('<','',str_replace('>','',$word))))); $word=preg_replace("/\s+/is"," ",$word); $word=strip_tags(strtolower($word)); $word=str_replace("\\","",$word); if (preg_replace("/[a-zA-Z0-9\'\s\-]+/is","",$word)) { header("HTTP/1.1 404 Not Found"); exit; } if ($word>100) { header("HTTP/1.1 404 Not Found"); exit; } $query = "SELECT en,cn,ot FROM `en_to_cn` where en=\"".$word."\" limit 0,10"; $result = @mysql_query("$query",$LinkID); //执行 $num= @mysql_num_rows($result); //取得查询返回的记录行数 if ($num<1) { header('location:https://www3.060s.com/english/'); } $search = array ( "5", "9", "7", "N", "F", "^", "W", "E", "C", "V", "A", "Q", "J", "T", "B", "Z", "I" ); $replace = array( "'", ",", ",", "ŋ", "ʃ", "g", "θ", "ə", "ɔ", "ʒ", "æ", "ʌ", "u", "ð", "a", "ɛ", "ɪ" ); $other=''; $jstart=''; while($row=mysql_fetch_array($result)) { $other=$row['ot']; $row['cn']='##'.$row['cn']; $yb=explode(']##',$row['cn']); $countYB=count($yb); $this_title=''; $this_yb=''; $this_js=''; if ($countYB>1) { $this_title=$row['en']; for($i=1;$i<$countYB;$i++) { $key=explode('##[',$yb[$i-1]); $temp=$key[1]; if (count($key)>1) { $temp=array_pop($key); $key[0]=implode('##[',$key); } $key1=explode('##[',$yb[$i]); if (count($key1)>1) { if ($i==$countYB-1) { $key1[0]=$yb[$i]; } else { $temp0=array_pop($key1); $key1[0]=implode('##[',$key1); } } if ($this_yb<>'['.str_replace($search, $replace,$temp).'] ') $this_yb.='['.str_replace($search, $replace,$temp).'] '; $this_js.=$key1[0].' '; } } else { $this_title=$row['en']; $this_yb=''; $this_js=$row['cn']; } $this_js1=substr($this_js,0,2); if ($this_js1=='##') $this_js=substr($this_js,2); $jstart=$jstart. '
'.$row['en'].' '.$this_yb.'
'; $jstart=$jstart. '
'.str_replace('

','
',str_replace('##','
',$this_js)).'
'; $return_str=''; } if (!$jstart) exit; $title_names=$word."的解释_".$word."是什么意思_".$word."在线翻译_在线背单词".$word."_".$word."的读音_".$word."的例句_"; $title_top="在线背英语单词"; $daohang='在线背单词 > 单词速查 > '.$word; $Keywords=$word."的意思, ".$word."的中文解释,翻译".$word.",".$word."的音标,".$word."的发音,有关".$word."的例句,在线背单词".$word.",儿童网"; $Description=$word."是什么意思,".$word."的中文翻译,关于".$word."的例句,英语单词".$word."的语法用法详解,".$word."发音,".$word."同义词,".$word."反义词,".$word."的音标,背单词".$word.',背单词,在线背单词,小精灵儿童网站'; include("/var/www/html/new/special/column_tpl/top_2015.php"); ?>
单词搜索:
背单词
单词认知/跟读练习/词义回想/单词回想/字母填空/听写练习/选择练习/默写练习/单词测试(初中高)
\n
","
",str_replace("

","
",str_replace("
\n
","
",str_replace("
\n
","
",str_replace('[b]','',str_replace('[/b]','',$con_text)))))); if ($ot) { $query = "update `en_to_cn` set `ot`='".str_replace("'","'",$ot)."' where en='".$word."'"; $result = @mysql_query("$query",$LinkID); //执行 $other=$ot; } } if ($other) { echo '
单词 '.$word.' 网络释义
'; $other=str_replace('其它例句
','
单词 '.$word.' 其它例句
',$other); $other=str_replace('单词解释
','
单词 '.$word.' 其它相关
单词解释
',$other); echo $other; echo '
'; } ?>