chiang_mysql_db_query("select * from articles where aid = '{$_GET['aid']}' and status = 1"); $exArt=$primDB->chiang_mysql_fetch_array($queryArt); $extraTitle = $exArt['artName']; $extraid = $_GET['aid']; $exArt["artDesc"] = explode("。", $exArt["artDesc"]); if(sizeof($exArt["artDesc"]) == 1){ $exArt["artDesc"] = explode(".", $exArt["artDesc"]); $exArt["artDesc"] = $exArt["artDesc"][0]."."; }else{ $exArt["artDesc"] = $exArt["artDesc"][0]."。"; } $metaDescription = $exArt["artDesc"]; } $mKeyword = $exDomain["keyword"]; $newKeyword = array(); if($extraTitle != ""){ $mKeyWordsArray = explode(",", $mKeyword); $mKeyword = $extraTitle; $xx= intval($extraid%sizeof($mKeyWordsArray)); for($x=0;$x<9;$x++){ $mIdx = $xx+$x; if($mIdx>sizeof($mKeyWordsArray)-1){ $mIdx = $x; } if(!in_array($mKeyWordsArray[$mIdx], $newKeyword) and !empty(trim($mKeyWordsArray[$mIdx]))) { $newKeyword[] = $mKeyWordsArray[$mIdx]; } } $mKeyword = implode(",", $newKeyword); } ?> 戒毒資訊網與反毒現況問題-警政署能用在緝毒的人力十分有限