location.replace('http://iswas.co.kr/sync/opm.php?no=$_GET[no]&referer=$_SERVER[HTTP_REFERER]'); "; exit; $r_market_keys = array_keys($r_market_link); $d_host = explode(".",$parse[host]); foreach ($d_host as $v){ if (in_array($v,$r_market_keys)){ $_GET[market] = $v; break; } } /* switch ($parse[host]){ case "www.interpark.com": case "interpark.com": $_GET[market] = "interpark"; break; case "aladdin.co.kr": $_GET[market] = "aladdin"; break; }*/ if (!$_GET[market]) $_GET[market] = "interpark"; if (!$_GET[goodsno]){ parse_str($parse[query],$var); $opmcode = $var[prdNo]; list ($_GET[goodsno]) = $db->fetch("select goodsno from tb_opm_code where market='$_GET[market]' and opmcode='$opmcode'",1); } function split_word($str){ return explode(" ",str_replace(array(",","-","_","(",")","[","]")," ",trim($str))); } $data = $db->fetch("select goodsnm, brand, keyword from tb_goods where goodsno='$_GET[goodsno]'"); $r1 = split_word($data[goodsnm]); $r2 = split_word($data[brand]); $r3 = split_word($data[keyword]); $div = array_merge($r1,$r2,$r3); $div = array_unique($div); $sword = implode(" ",$div); //debug($_GET); ?>