Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for SourceGuardian & phpSHIELD)
- *
- * @ Version : 2.0.0.4
- * @ Author : DeZender
- * @ Release on : 21.10.2015
- * @ Official site : http://DeZender.Net
- *
- */
- ini_set("memory_limit", "-1");
- ini_set("MAX_EXECUTION_TIME", "-1");
- class Cdata {
- public function index() {
- $this->load->library("driver");
- $this->load->driver("cache", array("adapter" => "memcached"));
- $dev = 0;
- $log = 0;
- $exdate = date("Y-m-d");
- $stepone = $this->Cdatas->custom_hash($this->Cdatas->sidik(), 16);
- if ($this->Cdatas->tegdis()) {
- $sid = $this->cache->get("SID", 300);
- if (!$sid) {
- $sid = $this->Cdatas->tegasdis();
- $this->cache->save("SID", $sid, 300);
- }
- $expl = explode(".", $this->Cdatas->dpoison($sid, "gandaria8"));
- if ($this->Cdatas->dpoison($expl[0]) == $stepone) {
- $dal = explode("#", $this->Cdatas->dpoison($expl[1]));
- $dev = $dal[1];
- $log = "Unlimited";
- $exdate = $this->Cdatas->dpoison($expl[2]) == "Unlimited" ? "Unlimited" : ($this->Cdatas->dpoison($expl[2]));
- }
- else {
- $exdate = $this->Cdatas->tegetad() + 30 * 86400;
- $dev = 5;
- $log = 500;
- }
- }
- else {
- $exdate = $this->Cdatas->tegetad() + 30 * 86400;
- $dev = 5;
- $log = 500;
- }
- if ($exdate == "Unlimited" || strtotime(date("Y-m-d")) <= $exdate) {
- if ($this->input->get()) {
- if ($this->input->get("options") == "all") {
- $sn = $this->input->get("SN");
- $deviceconf = $this->Cdatas->getdeviceconf($sn);
- if ($deviceconf) {
- $devsave = (array("lastactivity" => date("Y-m-d H:i:s"), "status" => 1));
- $this->db->update("iclock", $devsave, array("sn" => $sn));
- $resp = "GET OPTION FROM:" . $sn . "\n";
- foreach ($deviceconf as $devcon) {
- $resp .= "Stamp=" . $devcon->stamp . "\n";
- $resp .= "OpStamp=" . $devcon->opstamp . "\n";
- $resp .= "PhotoStamp=" . $devcon->photostamp . "\n";
- $resp .= "ErrorDelay=" . $devcon->errdelay . "\n";
- $resp .= "Delay=" . $devcon->delay . "\n";
- $resp .= "TransTimes=" . $devcon->transtimes . "\n";
- $resp .= "TransInterval=" . $devcon->transinterval . "\n";
- $resp .= "TransFlag=" . $devcon->transflag . "\n";
- $resp .= "TimeZone=" . $devcon->timezone . "\n";
- $resp .= "Realtime=" . $devcon->realtime . "\n";
- $resp .= "Encrypt=" . $devcon->encrypt . "\n";
- continue;
- }
- header("Content-type: text/plain");
- echo $resp;
- }
- else {
- if ($this->Cdatas->gettempdev($sn)) {
- $dvcarray = (array("condate" => date("Y-m-d H:i:s"), "ipaddress" => $this->ipaddress->get_ip(), "active" => 1));
- $this->db->update("devtemp", $dvcarray, array("sn" => $sn));
- }
- else {
- $dvcarray = (array("sn" => $sn, "condate" => date("Y-m-d H:i:s"), "ipaddress" => $this->ipaddress->get_ip(), "active" => 1));
- $this->db->insert("devtemp", $dvcarray);
- }
- }
- }
- }
- if (isset($_POST)) {
- $sn = $this->input->get("SN");
- $devsave = (array("lastactivity" => date("Y-m-d H:i:s"), "status" => 1));
- $this->db->update("iclock", $devsave, array("sn" => $sn));
- if ($this->input->get("OpStamp") || $this->input->get("OpStamp") === 0) {
- $area = $this->Cdatas->getarea($sn);
- $areaonall = $this->Cdatas->areaonall($area);
- $opstamp = $this->input->get("OpStamp");
- $rawdata = file_get_contents("php://input");
- $datarow = explode("" . "\n" . "", $rawdata);
- $jmldatarow = count($datarow);
- $i = 0;
- while ($i < $jmldatarow) {
- $i++;
- $stampinfo = explode(" ", $datarow[$i]);
- if ($stampinfo[0] == "OPLOG") {
- .............................................................
- ..........................
- ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement