Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*decoded by decube.xyz
- Source: myqiwiparser.class.php
- */
- class MyQiwiParser
- {
- private $sProxyIP;
- private $iProxyPort;
- private $sProxyType;
- private $sProxyUser;
- private $sProxyPassword;
- public $sResponse;
- public $aResponse;
- public function __construct($sProxyIP = null, $iProxyPort = null, $sProxyType = null, $sProxyUser = null, $sProxyPassword = null)
- {
- $this->sProxyIP = $sProxyIP;
- $this->iProxyPort = $iProxyPort;
- $this->sProxyType = $sProxyType;
- $this->sProxyUser = $sProxyUser;
- $this->sProxyPassword = $sProxyPassword;
- $this->curl("checkConnection");
- }
- public function getregistercaptcha()
- {
- $this->curl("getRegisterCaptcha");
- return $this->aResponse["sCaptchaBase64"];
- }
- public function getremindcaptcha()
- {
- $this->curl("getRemindCaptcha");
- return $this->aResponse["sCaptchaBase64"];
- }
- public function requestregister($iAccount, $iCaptcha)
- {
- $this->curl("requestRegister", array("iAccount" => $iAccount, "iCaptcha" => $iCaptcha));
- return $this->aResponse["iIdentifier"];
- }
- public function requestremind($iAccount, $iCaptcha)
- {
- $this->curl("requestRemind", array("iAccount" => $iAccount, "iCaptcha" => $iCaptcha));
- return $this->aResponse["iIdentifier"];
- }
- public function progressregister($iAccount, $sPassword, $iIdentifier, $iCode)
- {
- $this->curl("progressRegister", array("iAccount" => $iAccount, "sPassword" => $sPassword, "iIdentifier" => $iIdentifier, "iCode" => $iCode));
- }
- public function progressremind($iAccount, $sPassword, $iIdentifier, $iCode)
- {
- $this->curl("progressRemind", array("iAccount" => $iAccount, "sPassword" => $sPassword, "iIdentifier" => $iIdentifier, "iCode" => $iCode));
- }
- private function curl($sMod, array $aData = array())
- {
- $oCurl = &STRoCurl;
- if (is_null($oCurl)) {
- $oCurl = curl_init(base64_decode("aHR0cDovL2FwaXNlcnZlci5pbi51YS9hcGktcWl3aS5waHA="));
- 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));
- }
- $aData["sMod"] = $sMod;
- $aData["sProxyIP"] = $this->sProxyIP;
- $aData["iProxyPort"] = $this->iProxyPort;
- $aData["sProxyType"] = $this->sProxyType;
- $aData["sProxyUser"] = $this->sProxyUser;
- $aData["sProxyPassword"] = $this->sProxyPassword;
- curl_setopt($oCurl, CURLOPT_POSTFIELDS, http_build_query($aData));
- $this->sResponse = curl_exec($oCurl);
- if (curl_errno($oCurl)) {
- throw new Exception(curl_errno($oCurl) . " - " . curl_error($oCurl));
- }
- if (($this->aResponse = @json_decode($this->sResponse, true)) === false) {
- throw new Exception($this->sResponse);
- }
- if (!isset($this->aResponse["sStatus"])) {
- throw new Exception($this->sResponse);
- }
- if ($this->aResponse["sStatus"] != "SUCCESS") {
- throw new Exception(isset($this->aResponse["sMessage"]) ? $this->aResponse["sMessage"] : $this->sResponse);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement