<?php

 namespace Informunity\Rest\App\Users; class GetUsers { var $REST; var $data; public function __construct($REST, $data = array()) { $this->REST = $REST; $this->data = $data; } public static function load($REST, $data = array()) { return new GetUsers($REST, $data); } public function Run() { goto c32Zf; Y6wij: $count = floor(intval($r["\162\x65\163\x75\154\x74"]["\162\145\163\x75\154\164\137\x74\157\x74\141\154"]["\x67\x65\164\137\165\x73\145\x72"]) / 50); goto yoEoE; Xv3D3: $step = 0; goto QJ7qT; NPjH_: ebz1o: goto HTQUk; IfUyf: AQBAz: goto OKzZf; GD7nr: YDW3L: goto CraqF; Kcffq: oqX9a: goto GD7nr; OKzZf: $r = $this->REST->query("\142\141\x74\143\x68", array("\150\x61\154\164" => 0, "\x63\155\144" => array("\x67\x65\x74\137\165\163\145\162" => "\x75\x73\x65\162\x2e\147\145\164\x3f" . http_build_query(array("\101\x43\124\111\126\x45" => "\x59"))))); goto wJoaY; yoEoE: $arPartBatch = array(); goto keBy8; HTQUk: if (!($i <= $count)) { goto FvhIS; } goto LNUBQ; AreIE: goto ebz1o; goto EnIZW; ISjTE: return false; goto HuWGI; id1p5: DKGwc: goto Jfrp9; keBy8: $i = 1; goto NPjH_; D3dj7: $arUsers = unserialize($_SESSION["\x69\x75\x62\x32\x34\x5f\x75\x73\x65\162\x73"]); goto ISK6N; e_a24: $_SESSION["\x69\x75\x62\62\x34\x5f\x75\x73\145\162\163\137\141\x63\164\165\x61\x6c"] = time() + 600; goto Kcffq; EnIZW: FvhIS: goto DdjNm; DdjNm: $arPartBatch[] = $arBatch; goto Xv3D3; eOiMb: if (!empty($r["\x72\145\x73\x75\154\x74"]["\x72\x65\x73\x75\x6c\164\x5f\x74\x6f\164\x61\x6c"]["\x67\x65\x74\137\x75\163\x65\162"])) { goto rHt5m; } goto ISjTE; CraqF: return $arUsers; goto TB9HZ; kHSWD: $i++; goto AreIE; Jfrp9: I5mdt: goto kHSWD; fvwWz: $arPartBatch[] = $arBatch; goto M45MY; LNUBQ: $arBatch["\147\x65\164\137\x75\163\145\162" . $i] = "\165\x73\145\162\56\x67\145\164\77" . http_build_query(array("\101\103\124\x49\126\105" => "\131", "\x73\x74\x61\162\x74" => $i * 50)); goto Etoei; M45MY: $arBatch = array(); goto id1p5; yxNDT: if (empty($arUsers)) { goto oqX9a; } goto jwuS3; c32Zf: $arUsers = array(); goto EZlWi; EZlWi: if ($this->needUpdateUsers()) { goto AQBAz; } goto D3dj7; ISK6N: goto YDW3L; goto IfUyf; jwuS3: $_SESSION["\x69\165\x62\x32\64\137\165\163\145\x72\x73"] = serialize($arUsers); goto e_a24; Etoei: if (!($i % 49 == 0)) { goto DKGwc; } goto fvwWz; HuWGI: rHt5m: goto Y6wij; zGuk5: h698M: goto yxNDT; QJ7qT: foreach ($arPartBatch as $arPart) { goto oDjYE; jyMt2: dkGKS: goto ZoVTq; uXRKH: GHxUR: goto uuarU; rXVnL: $i = 0; goto uXRKH; ZcMCD: $i++; goto wSEVn; wSEVn: goto GHxUR; goto MD2Mq; ZoVTq: oFLJN: goto ZZ50S; ZZ50S: pxwpp: goto ZcMCD; MqAsH: $step += 50; goto E_vRO; haBau: if (empty($res["\x72\x65\163\165\x6c\x74"]["\x72\x65\x73\165\154\x74"]["\147\145\x74\137\x75\x73\x65\162" . $i])) { goto oFLJN; } goto fdutz; fdutz: foreach ($res["\162\x65\x73\x75\x6c\x74"]["\x72\x65\x73\165\154\164"]["\x67\145\x74\137\165\x73\145\x72" . $i] as $user) { $arUsers[] = $user; H3bYg: } goto jyMt2; RlP37: $slice = count($arPart) + $step; goto rXVnL; MD2Mq: xTliw: goto TfziM; TfziM: WJ2NN: goto MqAsH; E_vRO: vGsvV: goto P63hA; oDjYE: $res = $this->REST->query("\142\x61\x74\143\150", array("\x68\141\x6c\164" => 0, "\x63\x6d\144" => $arPart)); goto FyasX; FyasX: if (empty($res["\162\145\163\165\x6c\x74"]["\x72\145\163\x75\154\164"])) { goto WJ2NN; } goto RlP37; uuarU: if (!($i <= $slice)) { goto xTliw; } goto haBau; P63hA: } goto zGuk5; wJoaY: $arBatch = array("\147\x65\x74\x5f\165\163\145\x72\x30" => "\x75\x73\145\162\x2e\147\x65\x74\x3f" . http_build_query(array("\x41\103\124\x49\126\x45" => "\x59", "\x73\x74\x61\162\x74" => "\x30"))); goto eOiMb; TB9HZ: } private function needUpdateUsers() { goto deURG; C1OTY: nyTuu: goto dPxVX; as2kJ: X9IhC: goto v5V1b; v5V1b: if (!($_SESSION["\x69\165\142\62\64\x5f\x75\x73\145\x72\x73\137\x61\143\164\x75\x61\154"] < time())) { goto nyTuu; } goto JAMfp; dPxVX: return false; goto cNyVS; e2zc6: return true; goto as2kJ; JAMfp: return true; goto C1OTY; deURG: if (!empty($_SESSION["\151\165\142\x32\x34\x5f\165\163\x65\162\163"])) { goto X9IhC; } goto e2zc6; cNyVS: } }
