require("/home/global/connection/connect_B.php");
if($key) {
SetCookie("siru_key", "" , 0 , "/" );
SetCookie("siru_key",$key,0,"/"); //siru_key ��Ű������ �÷�������� KEY�� �����Ѵ�.
}
// ��ȣ������ ���� PHP ��Ű�� �����Ѵ�.
$sql="select sno,mobile_type,mobile_use,soho_url from soho_master where soho_url_m like '%$HTTP_HOST%'";
$result=mysqli_query($connect, $sql);
$count = mysqli_num_rows($result);
if($count > 0) {
$soho_code=mysqli_result($result,0,sno);
$use=mysqli_result($result,0,mobile_use);
$mobile_type=mysqli_result($result,0,mobile_type);
$get_url=mysqli_result($result,0,soho_url);
$url=explode(',',$get_url);
$get_url=$url[0];
SetCookie("soho_code",$soho_code,0,"/");
SetCookie("type",$mobile_type,0,"/");
//echo "mobile_type=$mobile_type";
//exit;
}
else {
echo "";
}
if($soho_code=='1369'){ // ���ö�� �αм� �����̷��� ó��(�����)
if(preg_match('/iphone|ipod|ios|blackberry|android|windows ce|lg|mot|samsung|sonyericsson|nokia/i', $_SERVER['HTTP_USER_AGENT'])){
$Us = '/main/main.php';
$Ds = (strpos($Us,'?')) ? '&' : '?';
$Qs = ($_SERVER['QUERY_STRING'] ? $Ds.$_SERVER['QUERY_STRING'] : '');
header('Location: '.$Us.$Qs);
exit;
}
}
else{
echo('
');
}
if (strpos($_SERVER['HTTP_USER_AGENT'],'Android')!==false){?>}else if(strpos($_SERVER['HTTP_USER_AGENT'],'iPhone')!==false){
echo('
');
}
else
{
?>
}
?>