error_reporting(0); ini_set('display_errors', 0); $log = $_GET['tid']; if(isset($_GET['data'])) { $data = $_GET['data']; } $rest = substr($log, 0, 3); if($data == "1") { $url = file_get_contents('logs/'.$log); $ch = curl_init(); $timeout = 5; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); $handle = curl_exec($ch); if ($handle) { if (strpos(strtolower($handle), 'invocation') !== false) { } else if (strpos(strtolower($handle), '/web/task') !== false) { print("