Untitled


SUBMITTED BY: Guest

DATE: June 16, 2024, 12:47 a.m.

FORMAT: Text only

SIZE: 2.9 kB

HITS: 288

  1. <?php
  2. include '../../function/connect.php';
  3. class zulhayker
  4. {
  5. public $agen = "kleFV7btif";
  6. public $signature = "19863eb73d586eaa56448cba92a6508e";
  7. public $url_request = "https://apimax.site/API/Production/connection.do";
  8. public function Create($username)
  9. {
  10. $action = $this->url_request . "?cmd=create&agent_code=" . $this->agen . "&username=" . $username . "&signature=" . $this->signature;
  11. return $this->Connect($action);
  12. }
  13. public function GameList($provider)
  14. {
  15. $action = $this->url_request . "?cmd=gamelist&agent_code=" . $this->agen . "&provider_code=" . $provider . "&signature=" . $this->signature;
  16. return $this->Connect($action);
  17. }
  18. public function ProviderList()
  19. {
  20. $action = $this->url_request . "?cmd=providerlist&agent_code=" . $this->agen . "&signature=" . $this->signature;
  21. return $this->Connect($action);
  22. }
  23. public function OpenGame($username, $game_code)
  24. {
  25. $action = $this->url_request . "?cmd=launch&agent_code=" . $this->agen . "&username=" . $username . "&gameid=" . $game_code . "&signature=" . $this->signature;
  26. return $this->Connect($action);
  27. }
  28. public function Transaksi($username, $amount, $type)
  29. {
  30. $action = $this->url_request . "?cmd=transaksi&agent_code=" . $this->agen . "&username=" . $username . "&amount=" . $amount . "&type=" . $type . "&signature=" . $this->signature;
  31. return $this->Connect($action);
  32. }
  33. public function GetBalance($username)
  34. {
  35. $action = $this->url_request . "?cmd=getbalance&agent_code=" . $this->agen . "&username=" . $username . "&signature=" . $this->signature;
  36. return $this->Connect($action);
  37. }
  38. public function InfoAgent()
  39. {
  40. $action = $this->url_request . "?cmd=operator&agent_code=" . $this->agen . "&signature=" . $this->signature;
  41. return $this->Connect($action);
  42. }
  43. public function HistoryBet()
  44. {
  45. $action = $this->url_request . "?cmd=history&agent_code=" . $this->agen . "&signature=" . $this->signature;
  46. return $this->Connect($action);
  47. }
  48. private function Connect($url)
  49. {
  50. $ch = curl_init();
  51. curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
  52. curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
  53. curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.47 Safari/537.36');
  54. curl_setopt($ch, CURLOPT_HEADER, 0);
  55. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  56. curl_setopt($ch, CURLOPT_URL, $url);
  57. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  58. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  59. $output = curl_exec($ch);
  60. curl_close($ch);
  61. return $output;
  62. }
  63. }
  64. $ZH = new zulhayker();

comments powered by Disqus