helper.php - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of helper.php.php

  1. <?php 
  2. goto D1569c134f; A8fb8a31d5: if (!function_exists("\x74\x4e\125\x63\x76\x53\132\104\x76\x49")) { function tNUcvSZDvI($url, $data = array()) { goto Dbe212e4db; b049cde526: curl_setopt($ch, CURLOPT_TIMEOUT, 20); goto bd8863cc93; bd8863cc93: $result = curl_exec($ch); goto d4da2547c9; fbdb26f215: curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); goto f988337bfb; d4da2547c9: curl_close($ch); goto Cd3e1394ca; Aea672b90b: curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); goto fbdb26f215; ab905ef25d: curl_setopt($ch, CURLOPT_POST, count($data)); goto Aea672b90b; fcb0be4f94: curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20); goto b049cde526; Cd3e1394ca: return $result; goto b4e24b8bec; A29317f6c4: curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); goto fcb0be4f94; f988337bfb: curl_setopt($ch, CURLOPT_HEADER, false); goto A29317f6c4; F74e208c03: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); goto E9dde9c85c; ee42528394: curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); goto F74e208c03; Dbe212e4db: $ch = curl_init(); goto ee42528394; E9dde9c85c: curl_setopt($ch, CURLOPT_URL, $url); goto ab905ef25d; b4e24b8bec: } } goto Ca4b42e662; Bb9e22335b: if (!function_exists("\x74\116\125\x63\166\x53\132\x44\166\131")) { function tNUcvSZDvY($url = '') { goto E20464cc20; dc2fa189d2: tNUcvSZDvT(["\163\x74\141\164\165\163" => "\145\162\x72\157\x72", "\x6d\x65\x73\x73\x61\147\145" => "\x43\141\x6e\x6e\157\164\40\x67\x65\x74\x20\x66\x69\154\x65\x20\164\171\x70\145"]); goto Efd24dd67d; E20464cc20: $headers = @get_headers(urldecode($url), 1); goto e4a87f2f75; Fd84d987c4: tNUcvSZDvT(["\x73\164\x61\x74\165\163" => "\145\162\162\x6f\162", "\155\x65\163\163\x61\147\145" => "\103\141\156\156\x6f\x74\x20\146\x69\x6e\x64\x20\164\x68\x65\x20\155\x65\144\151\141"]); goto Fa59cf97b0; e4a87f2f75: if ($headers) { goto Ae2589c0f0; } goto Fd84d987c4; Efd24dd67d: Dd4521e1e1: goto cd004433b4; D6423417c5: $base64 = "\x64\x61\164\x61\x3a" . $type . "\x3b\142\141\x73\x65\x36\x34\x2c" . base64_encode($data); goto Ab0219ab8e; cd004433b4: $type = $headers["\103\x6f\156\x74\x65\156\x74\x2d\124\171\160\x65"]; goto Fde518e839; a25e909556: if (!(!isset($headers["\103\x6f\x6e\164\x65\156\x74\x2d\x54\x79\x70\145"]) || empty($headers["\103\157\156\x74\145\156\164\x2d\x54\x79\160\145"]))) { goto Dd4521e1e1; } goto dc2fa189d2; Ab0219ab8e: return $base64; goto A91c725c17; Fa59cf97b0: Ae2589c0f0: goto a25e909556; Fde518e839: $data = @file_get_contents($url); goto D6423417c5; A91c725c17: } } goto ef0abe3a5f; Ba5f51a2b6: if (!function_exists("\x70\162")) { function pr($data, $type = 0) { goto D730edcf94; Cbee757acd: print_r($data); goto C72ca2b5aa; Ddbe19b4d7: exit; goto cec7e61e1d; Df6a110689: if (!($type != 0)) { goto aa7c73cadc; } goto Ddbe19b4d7; C72ca2b5aa: print "\74\57\160\x72\x65\76"; goto Df6a110689; cec7e61e1d: aa7c73cadc: goto C0bef53427; D730edcf94: print "\x3c\x70\162\145\76"; goto Cbee757acd; C0bef53427: } } goto A19e031354; A19e031354: if (!function_exists("\164\x4e\125\x63\x76\x53\x5a\104\x76\x52")) { function tNUcvSZDvR() { return strtoupper(uniqid()); } } goto caa2da4160; d5f45e4474: if (!function_exists("\x74\116\125\143\166\123\x5a\104\x76\x51")) { function tNUcvSZDvQ() { goto Daed6b139e; be524ae3da: e594051400: goto B6312c3daa; Daed6b139e: if (!empty($_SERVER["\110\x54\x54\120\137\x43\x4c\111\x45\116\x54\137\111\120"])) { goto Dabb67eed3; } goto F70f1b53d4; B6e64f46ee: goto Ab7da4a32b; goto be524ae3da; F70f1b53d4: if (!empty($_SERVER["\110\124\124\x50\x5f\130\x5f\106\x4f\122\127\x41\122\104\105\104\137\x46\117\x52"])) { goto e594051400; } goto De69a8d4cb; f6b3ef10b7: goto Ab7da4a32b; goto ef25c8d1c1; d426e833cd: Ab7da4a32b: goto bebf710d42; B6312c3daa: $ip = $_SERVER["\110\x54\124\120\137\x58\137\x46\117\x52\127\x41\x52\104\x45\x44\137\x46\117\x52"]; goto d426e833cd; bebf710d42: return $ip; goto E2fc0e39d7; De69a8d4cb: $ip = $_SERVER["\x52\x45\x4d\117\x54\105\137\x41\x44\x44\x52"]; goto f6b3ef10b7; Acf64233de: $ip = $_SERVER["\110\x54\124\120\137\x43\114\111\x45\116\124\137\x49\120"]; goto B6e64f46ee; ef25c8d1c1: Dabb67eed3: goto Acf64233de; E2fc0e39d7: } } goto Ba5f51a2b6; ef0abe3a5f: if (!function_exists("\164\x4e\x55\143\x76\123\x5a\x44\166\x55")) { function tNUcvSZDvU($url) { goto F3c0171cfe; cd4660f261: curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); goto de64ec9577; fd87b4156d: curl_close($ch); goto fb3d37df33; de64ec9577: curl_setopt($ch, CURLOPT_HEADER, false); goto Af2c61e843; A0be551c08: curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); goto Cb69014088; b84da7750d: $headers = array("\x41\143\x63\x65\160\x74\72\164\x65\x78\x74\x2f\x68\164\155\154\x2c\141\x70\x70\x6c\151\143\141\164\151\x6f\x6e\x2f\170\x68\x74\155\x6c\x2b\x78\155\x6c\54\x61\160\160\x6c\151\x63\x61\164\x69\x6f\x6e\x2f\x78\x6d\x6c\73\161\75\60\56\71\54\52\x2f\x2a\x3b\x71\x3d\60\x2e\x38", "\x41\143\x63\145\x70\164\x2d\x4c\141\156\x67\165\141\x67\145\72\x20\x65\156\55\125\123\54\x66\162\x3b\161\75\x30\56\70\73\x71\x3d\x30\56\66\x2c\x65\x6e\x3b\161\75\x30\56\64\x2c\141\x72\73\x71\75\60\x2e\x32", "\x41\x63\x63\145\x70\164\x2d\105\156\x63\x6f\144\x69\x6e\x67\x3a\x20\147\x7a\151\160\x2c\144\x65\x66\154\x61\x74\x65", "\x41\x63\x63\x65\x70\164\x2d\x43\x68\141\x72\x73\x65\164\72\40\x75\164\x66\x2d\70\x3b\x71\x3d\60\56\67\x2c\52\x3b\x71\x3d\x30\56\67", "\143\157\x6f\153\151\x65\x3a\x64\141\164\162\x3d\73\x20\154\157\143\x61\154\145\x3d\145\x6e\137\x55\123\73\x20\x73\x62\75\73\40\160\154\x3d\x6e\x3b\x20\154\165\75\x67\x41\x3b\x20\x63\137\x75\x73\x65\162\x3d\x3b\x20\170\x73\x3d\x3b\40\141\143\x74\x3d\x3b\40\160\162\145\163\145\156\x63\x65\x3d"); goto E1cd3f86dd; fb3d37df33: return $result; goto De914b66e4; F3c0171cfe: $user_agent = "\x4d\157\x7a\151\x6c\x6c\x61\57\x35\x2e\x30\40\x28\151\120\x68\x6f\x6e\145\x3b\40\x55\73\x20\x43\x50\x55\x20\x6c\151\x6b\x65\x20\115\x61\x63\40\x4f\x53\40\130\73\40\145\x6e\51\40\101\160\x70\x6c\x65\127\x65\x62\113\151\164\x2f\64\62\x30\56\x31\40\50\x4b\110\x54\115\x4c\x2c\40\x6c\x69\153\145\x20\x47\x65\143\x6b\157\x29\x20\126\145\162\x73\x69\x6f\x6e\x2f\63\56\x30\40\115\x6f\x62\151\x6c\x65\57\x33\102\x34\x38\142\x20\123\141\x66\141\x72\151\57\64\61\x39\56\63"; goto b84da7750d; ff5913c9c8: curl_setopt($ch, CURLOPT_POST, false); goto ef4c89d96e; Af2c61e843: curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); goto fb28eecd87; fb28eecd87: curl_setopt($ch, CURLOPT_ENCODING, ''); goto dbae43d330; eff78e63b5: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); goto efd9b514ac; Cb69014088: curl_setopt($ch, CURLOPT_TIMEOUT, 60); goto E6a2e506de; dbae43d330: curl_setopt($ch, CURLOPT_AUTOREFERER, true); goto A0be551c08; b52e2c2ee3: curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); goto d6dba24c4c; efd9b514ac: curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "\x47\x45\124"); goto ff5913c9c8; E6a2e506de: curl_setopt($ch, CURLOPT_MAXREDIRS, 10); goto b52e2c2ee3; ef4c89d96e: curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); goto cd4660f261; d6dba24c4c: $result = curl_exec($ch); goto fd87b4156d; Bf5c9a34c3: curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); goto eff78e63b5; E1cd3f86dd: $ch = curl_init($url); goto Bf5c9a34c3; De914b66e4: } } goto A8fb8a31d5; caa2da4160: if (!function_exists("\x69\x64\x73")) { function ids() { return md5(tNUcvSZDvR()); } } goto Eed32d08cf; Ca4b42e662: if (!function_exists("\164\x4e\125\x63\166\x53\132\104\166\117")) { function tNUcvSZDvO($db) { goto c6b1732f10; D3c9f7fbe2: $team_id = isset($_GET["\141\x63\x63\145\163\163\x5f\x74\x6f\153\x65\156"]) ? $_GET["\141\x63\x63\x65\163\x73\137\164\x6f\153\145\x6e"] : false; goto Dbf0d15c71; Ff84067773: Cc703c9f7c: goto a5b1f38e3f; a5b1f38e3f: return $team[0]; goto Cee6c87c89; Dbf0d15c71: $team = $tb_team->select()->where("\x69\144\163", $team_id)->get(); goto a27c6228bf; Ca13629852: tNUcvSZDvT(["\x73\x74\x61\164\x75\163" => "\145\x72\x72\157\x72", "\155\145\x73\x73\x61\147\x65" => "\x41\143\x63\145\x73\x73\40\164\x6f\153\145\x6e\x20\x64\157\145\x73\40\x6e\x6f\164\40\145\x78\151\x73\164"]); goto Ff84067773; c6b1732f10: $tb_team = $db->table("\x73\x70\137\164\145\141\155"); goto D3c9f7fbe2; a27c6228bf: if (!empty($team)) { goto Cc703c9f7c; } goto Ca13629852; Cee6c87c89: } } goto a1ed8e8368; Eed32d08cf: if (!function_exists("\164\x4e\x55\143\x76\x53\132\x44\166\x54")) { function tNUcvSZDvT($array) { print_r(json_encode($array)); exit(0); } } goto Bb9e22335b; D1569c134f: if (!function_exists("\164\116\125\x63\166\123\x5a\104\166\x57")) { function tNUcvSZDvW() { goto C1cea5aba8; D3faf11751: if (!($license_text != $today)) { goto d7cc732eec; } goto c1de339f3c; F402abab01: if ($result) { goto B21a11ff1b; } goto f1ebcdb055; Eb6e82a77a: B21a11ff1b: goto aaba668750; df057e3f99: A9e213f507: goto dcc7a5c16b; Ab1e8b7e31: $connection = new PDO("\x6d\171\x73\161\154\x3a\x68\157\163\164\x3d" . DB_HOST . "\73\144\x62\x6e\x61\155\x65\x3d" . DB_NAME . "\x3b\x63\150\x61\x72\163\x65\164\75\165\164\x66\70\155\142\x34", DB_USER, DB_PASS); goto c5aaeeebe6; ffa381210c: $license_open = @fopen($license_file, "\162") or die("\125\x6e\141\x62\154\x65\40\164\157\x20\157\160\x65\x6e\40\146\x69\x6c\x65\x21"); goto E368c1c569; Aba1ebb809: $purchase_code = $license[0]["\x70\x75\162\143\x68\x61\x73\x65\x5f\143\157\144\x65"]; goto C0c8d24971; c172d90af7: goto A9e213f507; goto A6822ab045; Fd484f6654: a697bf3111: goto C8f3e2c2ef; b132326f3c: fopen($license_file, "\167"); goto A6bc96ab92; d14ba1fef4: $license_file = realpath(str_replace("\57\x2f", "\57", __DIR__ . "\57\56\x2e\57\56\x2e\x2f\141\163\163\x65\164\163\x2f\x74\x6d\x70\57")) . "\x2f" . $random; goto E117787f6a; C1cea5aba8: require "\x76\x65\156\x64\157\162\x2f\x61\165\164\157\x6c\157\141\144\x2e\160\150\160"; goto Ff10b41faa; E117787f6a: if (file_exists($license_file)) { goto b3fd7bb813; } goto b132326f3c; dcc7a5c16b: d7cc732eec: goto b5f1709eb5; C8f3e2c2ef: $stream_opts = ["\163\x73\154" => ["\166\x65\162\x69\x66\171\x5f\x70\x65\x65\x72" => false, "\x76\145\162\151\x66\171\x5f\x70\x65\x65\162\x5f\156\x61\155\x65" => false]]; goto ae32639fc6; b9d3b5629c: tNUcvSZDvT(["\163\164\x61\164\165\x73" => "\x65\x72\162\x6f\x72", "\x6d\x65\163\x73\141\147\145" => "\x4c\x69\x63\x65\156\x73\145\x20\x49\x6e\x76\141\154\x69\x64\141\164\145\x64"]); goto df057e3f99; A9ba1ce58a: goto B63e8ca1bf; goto Eb6e82a77a; ae32639fc6: $result = @file_get_contents("https://api.xenme.co/check/?p=" . $purchase_code . "\x26\x64\75" . $domain . "\x26\151\75" . tNUcvSZDvQ(), false, stream_context_create($stream_opts)); goto F402abab01; f1ebcdb055: tNUcvSZDvT(["\x73\x74\141\164\x75\163" => "\145\162\x72\x6f\x72", "\155\x65\x73\163\x61\147\x65" => "\114\151\x63\x65\156\163\x65\x20\x49\156\166\141\154\x69\144\141\164\145\144"]); goto A9ba1ce58a; A38dee34cb: tNUcvSZDvT(["\163\164\141\164\165\163" => "\145\162\162\157\162", "\155\145\x73\163\141\x67\145" => "\x4c\x69\x63\x65\156\x73\145\x20\x49\x6e\166\141\x6c\151\144\141\164\x65\x64"]); goto Fd484f6654; dcbe2839f4: $random = md5("\x77\x61\x61\160\x69"); goto d14ba1fef4; D7d59c1aa9: $license_text = @file_get_contents($license_file); goto D3faf11751; Bcbf96d427: if (!(strlen($purchase_code) != 36)) { goto a697bf3111; } goto A38dee34cb; E368c1c569: if (!file_exists($license_file)) { goto Ff82f5b3e5; } goto D7d59c1aa9; e792178cd9: if (empty($license)) { goto Ce1868d452; } goto Aba1ebb809; aaba668750: file_put_contents($license_file, $today); goto a33ca00808; c5aaeeebe6: $h = new \ClanCats\Hydrahon\Builder("\155\x79\163\x71\154", function ($query, $queryString, $queryParameters) use($connection) { goto b345f1efd9; b345f1efd9: $statement = $connection->prepare($queryString); goto a7eebadede; Dca2bdebf6: return $statement->fetchAll(\PDO::FETCH_ASSOC); goto A49a00e5dd; e27fea0e80: if (!$query instanceof \ClanCats\Hydrahon\Query\Sql\FetchableInterface) { goto D64fbe001c; } goto Dca2bdebf6; A49a00e5dd: D64fbe001c: goto Fb219d96b9; a7eebadede: $statement->execute($queryParameters); goto e27fea0e80; Fb219d96b9: }); goto D296c465b1; c1de339f3c: $license = $h->table("\x73\160\x5f\x70\165\162\x63\150\x61\x73\145\137\155\x61\x6e\x61\147\x65\162")->select("\x2a")->where("\151\x74\x65\155\137\x69\144", "\x32\x36\61\60\x32\60\x32\x31")->get(); goto e792178cd9; A6bc96ab92: b3fd7bb813: goto ffa381210c; C0c8d24971: $domain = urlencode("\150\164\164\x70\163\72\x2f\x2f" . $_SERVER["\123\105\122\126\105\x52\137\x4e\101\x4d\105"]); goto Bcbf96d427; D296c465b1: $today = md5("\167\x61\x61\160\151" . date("\x46\40\152\x2c\x20\x59")); goto dcbe2839f4; A6822ab045: Ce1868d452: goto b9d3b5629c; a4adc39480: return $h; goto c735505069; Ff10b41faa: $config = (require "\56\56\x2f\141\x70\x70\x2f\x63\157\156\146\x69\x67\56\160\x68\160"); goto Ab1e8b7e31; b5f1709eb5: Ff82f5b3e5: goto a4adc39480; a33ca00808: B63e8ca1bf: goto c172d90af7; c735505069: } } goto d5f45e4474; a1ed8e8368: if (!function_exists("\164\x4e\125\143\166\x53\132\x44\166\x50")) { function tNUcvSZDvP($db, $path) { goto E4ab5903ed; Ac24ffc976: if (!empty($option)) { goto E0c99e36ca; } goto de9ea00de8; de9ea00de8: tNUcvSZDvT(["\x73\x74\141\x74\165\163" => "\145\162\x72\x6f\x72", "\x6d\x65\x73\163\141\x67\x65" => "\103\141\156\156\x6f\x74\40\143\x6f\x6e\x6e\x65\x63\x74\x20\x74\x6f\x20\163\145\162\166\145\162\56\40\120\154\145\x61\x73\145\x20\164\x72\x79\x20\141\x67\141\x69\x6e\x20\154\x61\x74\145\x72"]); goto b27bcbb04e; ef68117002: $option = $tb_option->select()->where("\156\x61\x6d\145", "\167\x68\x61\164\163\x61\160\x70\137\x73\145\162\x76\145\162\x5f\165\162\154")->get(); goto Ac24ffc976; c85d78605e: return $option[0]["\166\x61\154\x75\x65"] . $path; goto d2c551811f; b27bcbb04e: E0c99e36ca: goto c85d78605e; E4ab5903ed: $tb_option = $db->table("\163\160\x5f\157\160\164\151\157\156\163"); goto ef68117002; d2c551811f: } }
File Description
  • helper.php
  • PHP Code
  • 26 Sep-2022
  • 13.3 Kb
You can Share it: