', "", $good);
// $good = str_replace('', "", $good);
// $good = str_replace(' ', "", $good);
$good = str_replace(' ', "\n", $good);
// $good = str_replace(' ', "", $good);
$good = str_replace("\t", "", $good);
// $good = str_replace("\n", "", $good);
$good = str_replace("\r", "", $good);
$good = str_replace("", "", $good);
$good = str_replace(" ", "\n", $good);
$good = str_replace('', "", $good);
$good = str_replace(" ", " ", $good);
$good = str_replace(" ", " ", $good);
$good = str_replace(" ", " ", $good);
$good = str_replace(" ", " ", $good);
$good = trim($good);
$good = FixEncoding("Kết quả cho (".$matinh.")".$somay.": \n").$good;
}
}
if ($_REQUEST["ntv"]=="1"){ print FixEncoding(CovertVn(($good."\n")));} else print FixEncoding(($good."\n"));
if ($_REQUEST["ntv"]=="1"){ print FixEncoding(CovertVn(($thongbao."\n")));} else print FixEncoding(($thongbao."\n"));
if ($_REQUEST["ntv"]=="1"){ print FixEncoding(CovertVn(("\n".$hvhacker."\n")));} else print FixEncoding(("\n".$hvhacker."\n"));
}
if ($_REQUEST["com"]=="sms"){}
if ($_REQUEST["com"]=="thoitiet"){
if ($other!=""){
if ($_REQUEST["ntv"]=="1"){ print FixEncoding(CovertVn(($other."\n")));} else print FixEncoding(($other."\n"));
exit();
}
$location = $_REQUEST["location"];
if ($location == ""){ print "location=?";}
else{
switch ($location) {
case "0":
$locationid = "19/76";
$lo = "Việt Trì";
break;
case "1":
$locationid = "18/78";
$lo = "Sơn La";
break;
case "2":
$lo = "Hà nội";
$locationid = "19/58";
break;
case "3":
$locationid = "19/88";
$lo = "Hải Phòng";
break;
case "4":
$locationid = "21/92";
$lo = "Đà Nẵng";
break;
case "5":
$locationid = "20/111";
$lo = "Vinh";
break;
case "6":
$locationid = "21/37";
$lo = "Nha Trang";
break;
case "7":
$locationid = "22/41";
$lo = "Pleicu";
break;
case "8":
$locationid = "23/44";
$lo = "Tp Hồ Chí Minh";
break;
default:
$lo = "Unknow";
break;
}
$url = "http://www.nchmf.gov.vn/website/vi-VN/62/".$locationid."/map/Default.aspx";
$urltime = "http://www.timeanddate.com/worldclock/fullscreen.html?n=95";
$timezone = get_url_contents($urltime);
$time = sstring($timezone,""," ");
$date = sstring($timezone,""," ");
if ($date == "") {print FixEncoding(CovertVn("Server đang bận, vui lòng thực hiện lại nha :)")); print ""; exit();}
$response = get_url_contents($url);
if ($response == "") {print FixEncoding(CovertVn("Server đang bận, vui lòng thực hiện lại nha :)")); print ""; exit();}
$response = str_replace("\t", "", $response);
$response = str_replace("\n", "", $response);
$response = str_replace("\r", "", $response);
$capnhat = sstring($response,'_ctl1__ctl2__ctl0_lbl_DuBaoThoiTietCapNhatLuc">',' | ');
$thongtin = sstring($response,'','');
$thoitiet = sstring($thongtin,'','