<?php 
//////setting/////////
$NEWS_SHOW = 0;  // TO SHOW 1 TO HIDE 0
//////setting end/////////
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
     <title>
Live Cricket Score | Cricket Fixtures | Cricket Results | Cricket News
| ODI | Test | 20- 20 | Cricket News | Inda | Pakistan | bangaldesh  |
Sri lanka | australia | National Elite League Twenty20 | East Africa
Premier League | Metropolitan Bank Twenty20 | Stanbic Bank 20 Series |
Standard Bank Pro 20 Series | MiWay T20 Challenge | Ram Slam T20
Challenge | Scotiabank National T20 Championship | Upcoming league |
Stanford 20/20 | Stanford Super Series | Caribbean Twenty20 |
Caribbean Premier League | Bangladesh Premier League | Inter-State T20
Championship | Indian Premier Leagu | Syed Mushtaq Ali Trophy |
ABN-AMRO Twenty-20 Cup | RBS Twenty-20 Cup | Faysal Bank Twenty-20 Cup
| Faysal Bank Super 8 T20 Cup | Ramadan T20 Cup | Faysal Bank T-20 Cup
for Departments | Twenty20 Tournament | Inter-Provincial Twenty20 |
Sri Lanka Premier League | Twenty20 Cup | Friends Life t20 | Insinger
de Beaufort Twenty20 Cup | Murgitroyd Twenty20 | KFC Twenty20 Big Bash
| Big Bash League | State Twenty20 | HRV Cup | International 20:20
Club Championship | Champions League Twenty20
Cricscore Cricket Features:
- Easy and fast scoring service
- Live Cricket Matches
- Ball to ball score updates
- View quick scores of live matches
- View detailed full scorecard
- View upcoming matches
- View recent results
- View detailed statistics of player, team or tournaments
- Read all the latest news articles on the game.
- A simple way to browse through results of completed matches, and to know schedules of upcoming matches.
- Browse through all international teams and players
</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
 <!--meta tags-->
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1">
   <!--end of meta tags-->

<link rel="stylesheet" type="text/css" media="scr  rel="SHORTCUT ICON" href="images/favicon.ico" />
    <link rel="stylesheet" href="style.css" media="handheld,all" />
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
    <style>
        .block .home-box, .livematch{
            display: none!important;
        }
        .list_content_in:first-child .news_name a{
            text-align: center;
            display:block ;
        }
        .news_name img{
            max-width: 500px;

        }
        .list_content_in:first-child .Story a{
            text-align: center;
            display:block ;
        }
        img.News_Thumb{
             max-width: 500px;
        }

#on{
    display: flex; flex-direction: column;
}
#on .block:nth-child(1){
order: 2;
}
#on .block:nth-child(2){
order: 1;
}
#on .block:nth-child(3){
order: 3;
}
#on .block:nth-child(4){
order: 4;
}
        .block1 {
    width: 80%;
    margin: auto;
}
    </style>
</head>
<?php 
function url_contents($url){
    // $ch = curl_init();
    // curl_setopt($ch, CURLOPT_URL,$url);
    // curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    // //curl_setopt($ch, CURLOPT_PROXY,"localhost:8080");
    // curl_setopt($ch, CURLOPT_REFERER, "http://www.cricwaves.com/mobile/");
    // $data=curl_exec ($ch);
    // curl_close ($ch);
    
    // return $data;
    ////////////////2nd///////////////
    // require_once 'vendor/autoload.php';
    // $request = new HTTP_Request2();
    // $request->setUrl($url);
    // $request->setMethod(HTTP_Request2::METHOD_GET);
    // $request->setConfig(array(
    //   'follow_redirects' => TRUE
    // ));
    // try {
    //   $response = $request->send();
    //   if ($response->getStatus() == 200) {
    //     return $response->getBody();
    //   }
    //   else {
    //     echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
    //     $response->getReasonPhrase();
    //   }
    // }
    // catch(HTTP_Request2_Exception $e) {
    //   echo 'Error: ' . $e->getMessage();
    // }
    ////////////////2nd end //////////////
// $url =  'https://www.cricwaves.com/mobile';

$url = rtrim($url,"/");
$url = str_replace("http:","https:",$url);
// echo 'url'.$url;
$path_cookie = 'cookie.txt';
if (!file_exists(realpath($path_cookie))) touch($path_cookie);

$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_COOKIESESSION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, realpath($path_cookie));
$headers = [
        'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36',
        'cookie: __cfduid=d0d14dfd36e0da8e7858b58873b4263181523751395'
];

curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);


$response = curl_exec($ch);
curl_close($ch);
return $response;
    
    }

    ?>
<body>
    <header>
        <div class="logo">
            <a rel="home" href="index.php"><!-- <img src="images/logo.png" alt="logo" /> -->  Live Cricket Score </a>
        </div>
        <!-- <div class="stream"><a href="">Live Stream</a></div> -->
    </header>
    <div class="block1">
        <?php
include "adtag.php";
?>
    </div>
    <?php $base_url = "score1/"; ?>
    <?php
include "ad1.php";
















?>