Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.79 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for SourceGuardian & phpSHIELD)
  6. *
  7. * @ Version : 2.0.0.4
  8. * @ Author : DeZender
  9. * @ Release on : 21.10.2015
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. ini_set("memory_limit", "-1");
  15. ini_set("MAX_EXECUTION_TIME", "-1");
  16.  
  17.  
  18. class Cdata {
  19.  
  20. public function index() {
  21. $this->load->library("driver");
  22. $this->load->driver("cache", array("adapter" => "memcached"));
  23. $dev = 0;
  24. $log = 0;
  25. $exdate = date("Y-m-d");
  26. $stepone = $this->Cdatas->custom_hash($this->Cdatas->sidik(), 16);
  27. if ($this->Cdatas->tegdis()) {
  28. $sid = $this->cache->get("SID", 300);
  29. if (!$sid) {
  30. $sid = $this->Cdatas->tegasdis();
  31. $this->cache->save("SID", $sid, 300);
  32. }
  33. $expl = explode(".", $this->Cdatas->dpoison($sid, "gandaria8"));
  34. if ($this->Cdatas->dpoison($expl[0]) == $stepone) {
  35. $dal = explode("#", $this->Cdatas->dpoison($expl[1]));
  36. $dev = $dal[1];
  37. $log = "Unlimited";
  38. $exdate = $this->Cdatas->dpoison($expl[2]) == "Unlimited" ? "Unlimited" : ($this->Cdatas->dpoison($expl[2]));
  39. }
  40. else {
  41. $exdate = $this->Cdatas->tegetad() + 30 * 86400;
  42. $dev = 5;
  43. $log = 500;
  44. }
  45. }
  46. else {
  47. $exdate = $this->Cdatas->tegetad() + 30 * 86400;
  48. $dev = 5;
  49. $log = 500;
  50. }
  51. if ($exdate == "Unlimited" || strtotime(date("Y-m-d")) <= $exdate) {
  52. if ($this->input->get()) {
  53. if ($this->input->get("options") == "all") {
  54. $sn = $this->input->get("SN");
  55. $deviceconf = $this->Cdatas->getdeviceconf($sn);
  56. if ($deviceconf) {
  57. $devsave = (array("lastactivity" => date("Y-m-d H:i:s"), "status" => 1));
  58. $this->db->update("iclock", $devsave, array("sn" => $sn));
  59. $resp = "GET OPTION FROM:" . $sn . "\n";
  60. foreach ($deviceconf as $devcon) {
  61. $resp .= "Stamp=" . $devcon->stamp . "\n";
  62. $resp .= "OpStamp=" . $devcon->opstamp . "\n";
  63. $resp .= "PhotoStamp=" . $devcon->photostamp . "\n";
  64. $resp .= "ErrorDelay=" . $devcon->errdelay . "\n";
  65. $resp .= "Delay=" . $devcon->delay . "\n";
  66. $resp .= "TransTimes=" . $devcon->transtimes . "\n";
  67. $resp .= "TransInterval=" . $devcon->transinterval . "\n";
  68. $resp .= "TransFlag=" . $devcon->transflag . "\n";
  69. $resp .= "TimeZone=" . $devcon->timezone . "\n";
  70. $resp .= "Realtime=" . $devcon->realtime . "\n";
  71. $resp .= "Encrypt=" . $devcon->encrypt . "\n";
  72. continue;
  73. }
  74. header("Content-type: text/plain");
  75. echo $resp;
  76. }
  77. else {
  78. if ($this->Cdatas->gettempdev($sn)) {
  79. $dvcarray = (array("condate" => date("Y-m-d H:i:s"), "ipaddress" => $this->ipaddress->get_ip(), "active" => 1));
  80. $this->db->update("devtemp", $dvcarray, array("sn" => $sn));
  81. }
  82. else {
  83. $dvcarray = (array("sn" => $sn, "condate" => date("Y-m-d H:i:s"), "ipaddress" => $this->ipaddress->get_ip(), "active" => 1));
  84. $this->db->insert("devtemp", $dvcarray);
  85. }
  86. }
  87. }
  88. }
  89. if (isset($_POST)) {
  90. $sn = $this->input->get("SN");
  91. $devsave = (array("lastactivity" => date("Y-m-d H:i:s"), "status" => 1));
  92. $this->db->update("iclock", $devsave, array("sn" => $sn));
  93. if ($this->input->get("OpStamp") || $this->input->get("OpStamp") === 0) {
  94. $area = $this->Cdatas->getarea($sn);
  95. $areaonall = $this->Cdatas->areaonall($area);
  96. $opstamp = $this->input->get("OpStamp");
  97. $rawdata = file_get_contents("php://input");
  98. $datarow = explode("" . "\n" . "", $rawdata);
  99. $jmldatarow = count($datarow);
  100. $i = 0;
  101. while ($i < $jmldatarow) {
  102. $i++;
  103. $stampinfo = explode(" ", $datarow[$i]);
  104. if ($stampinfo[0] == "OPLOG") {
  105. .............................................................
  106. ..........................
  107. ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement