Advertisement
Guest User

Untitled

a guest
Oct 5th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Loader)
  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. function xAbort($message = "") {
  15. throw new Exception($message);
  16. }
  17.  
  18. function xSysInfo($message, $type = 0) {
  19. $_GS["info"][$type][] = $message;
  20. if ($type < 2) {
  21. return null;
  22. }
  23. xAddToLog($message, "system");
  24. if ($type == 2) {
  25. xabort($message);
  26. }
  27. xStop($message);
  28. }
  29.  
  30. function xSysWarning($message) {
  31. xsysinfo($message, 1);
  32. }
  33.  
  34. function xSysError($message) {
  35. xsysinfo($message, 2);
  36. }
  37.  
  38. function xSysStop($message, $and_refresh = false) {
  39. if ($and_refresh && !(headers_sent())) {
  40. refreshToURL(5);
  41. }
  42. xsysinfo($message, 3);
  43. }
  44.  
  45. function xTerminal($is_debug = false) {
  46. global $_GS;
  47. if ($is_debug) {
  48. error_reporting(30719);
  49. }
  50. ob_implicit_flush();
  51. header("Content-Type: text/plain; charset=\"utf-8\"");
  52. header("Pragma: no-cache");
  53. $_GS["as_term"] = true;
  54. }
  55.  
  56. function xEcho() {
  57. global $_GS;
  58. foreach (func_num_args() ? func_get_args() : array("- - - - -") as $message) {
  59. if (is_array($message) || is_object($message)) {
  60. $message = print_r($message, true);
  61. }
  62. $message .= HS2_NL;
  63. if (!$_GS["as_term"]) {
  64. $message = nl2br($message);
  65. }
  66. echo($message);
  67. }
  68. }
  69.  
  70. function xStop() {
  71. foreach (func_get_args() as $message) {
  72. xecho($message);
  73. }
  74. exit();
  75. }
  76.  
  77. function xAddToLog($message, $topic = "", $clear_before = false) {
  78. global $_GS;
  79. $fname = "logs/log_" . $topic . ".txt";
  80. if ($clear_before) {
  81. unlink($fname);
  82. }
  83. clearstatcache();
  84. $t = file_exists($fname) ? @filemtime($fname) : 0;
  85. if ($f = fopen($fname, "a")) {
  86. $d = abs(time() - $t);
  87. if (10 <= $d) {
  88. fwrite($f, "- - - - - [" . gmdate("d.m.y H:i:s") . ($d <= 120 ? " +" . $d : "") . "] - - - - -" . HS2_NL);
  89. }
  90. if (is_array($message) || is_object($message)) {
  91. $message = print_r($message, true);
  92. }
  93. fwrite($f, "<" . $_GS["module"] . "> " . $message . HS2_NL);
  94. fclose($f);
  95. }
  96. }
  97.  
  98. function getRootURL($as_HTTPS = false) {
  99. global $_GS;
  100. return $as_HTTPS ? "https" : "http" . "://" . $_GS["domain"] . "/" . $_GS["root_dir"];
  101. }
  102.  
  103. function ss1Elem(&$s) {
  104. if (!(is_array($s))) {
  105. $s = stripslashes($s);
  106. return null;
  107. }
  108. foreach ($s as $i => $v) {
  109. ss1Elem($s[$i]);
  110. }
  111. }
  112.  
  113. function fromGPC($s) {
  114. if (!(is_null($s))) {
  115. if (get_magic_quotes_gpc()) {
  116. ss1elem(&$s);
  117. }
  118. mTrim($s);
  119. }
  120. return $s;
  121. }
  122.  
  123. function filterInput($s, $mask = "") {
  124. if (is_null($s) || !$mask) {
  125. return $s;
  126. }
  127. if ($mask == "*") {
  128. return strip_tags($s);
  129. }
  130. preg_match("/^" . $mask . "\$/", $s, $a);
  131. return $a[0];
  132. }
  133.  
  134. function _arr_val(&$arr, $p) {
  135. if (!(isset($arr))) {
  136. return null;
  137. }
  138. if (preg_match("/(.+)\\[(.*)\\]/", $p, $a)) {
  139. return _arr_val($arr[$a[1]], $a[2]);
  140. }
  141. return @$arr[$p];
  142. }
  143.  
  144. function isset_IN($p = "btn") {
  145. global $_IN;
  146. return !(is_null(_arr_val(&$_IN, $p)));
  147. }
  148.  
  149. function _IN($p, $mask = "") {
  150. global $_IN;
  151. return filterinput(_arr_val(&$_IN, $p), $mask);
  152. }
  153.  
  154. function _COOKIE($p, $mask = "") {
  155. ...........................................................
  156. .........................
  157. .......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement