Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function xAbort($message = '')
- {
- throw new Exception($message);
- }
- function xSysInfo($message, $type = 0)
- {
- $_GS['info'][$type][] = $message;
- if ($type < 2) {
- return NULL;
- }
- xAddToLog($message, 'system');
- if ($type == 2) {
- xabort($message);
- }
- xStop($message);
- }
- function xSysWarning($message)
- {
- xsysinfo($message, 1);
- }
- function xSysError($message)
- {
- xsysinfo($message, 2);
- }
- function xSysStop($message, $and_refresh = false)
- {
- if ($and_refresh && !headers_sent()) {
- refreshToURL(5);
- }
- xsysinfo($message, 3);
- }
- function xTerminal($is_debug = false)
- {
- global $_GS;
- if ($is_debug) {
- error_reporting(32767);
- }
- ob_implicit_flush();
- header('Content-Type: text/plain; charset="utf-8"');
- header('Pragma: no-cache');
- $_GS['as_term'] = true;
- }
- function xEcho()
- {
- global $_GS;
- foreach (func_num_args() ? func_get_args() : ['- - - - -'] as $message) {
- if (is_array($message) || is_object($message)) {
- $message = print_r($message, true);
- }
- $message .= HS2_NL;
- if (!$_GS['as_term']) {
- $message = nl2br($message);
- }
- echo $message;
- }
- }
- function xStop()
- {
- foreach (func_get_args() as $message) {
- xecho($message);
- }
- exit();
- }
- function xAddToLog($message, $topic = '', $clear_before = false)
- {
- global $_GS;
- $fname = 'logs/log_' . $topic . '.txt';
- if ($clear_before) {
- unlink($fname);
- }
- clearstatcache();
- $t = (file_exists($fname) ? @filemtime($fname) : 0);
- if ($f = fopen($fname, 'a')) {
- $d = abs(time() - $t);
- if (10 <= $d) {
- fwrite($f, '- - - - - [' . gmdate('d.m.y H:i:s') . ($d <= 120 ? ' +' . $d : '') . '] - - - - -' . HS2_NL);
- }
- if (is_array($message) || is_object($message)) {
- $message = print_r($message, true);
- }
- fwrite($f, '<' . $_GS['module'] . '> ' . $message . HS2_NL);
- fclose($f);
- }
- }
- function getRootURL($as_HTTPS = false)
- {
- global $_GS;
- return ($as_HTTPS ? 'https' : 'http') . '://' . $_GS['domain'] . '/' . $_GS['root_dir'];
- }
- function ss1Elem(&$s)
- {
- if (!is_array($s)) {
- $s = stripslashes($s);
- }
- else {
- foreach ($s as $i => $v) {
- ss1Elem($s[$i]);
- }
- }
- }
- function fromGPC($s)
- {
- if (!is_null($s)) {
- if (get_magic_quotes_gpc()) {
- ss1elem($s);
- }
- mTrim($s);
- }
- return $s;
- }
- function filterInput($s, $mask = '')
- {
- if (is_null($s) || !$mask) {
- return $s;
- }
- if ($mask == '*') {
- return strip_tags($s);
- }
- preg_match('/^' . $mask . '$/', $s, $a);
- return $a[0];
- }
- function _arr_val(&$arr, $p)
- {
- if (!isset($arr)) {
- return NULL;
- }
- if (preg_match('/(.+)\\[(.*)\\]/', $p, $a)) {
- return _arr_val($arr[$a[1]], $a[2]);
- }
- return @$arr[$p];
- }
- function isset_IN($p = 'btn')
- {
- global $_IN;
- return !is_null(_arr_val($_IN, $p));
- }
- function _IN($p, $mask = '')
- {
- global $_IN;
- return filterinput(_arr_val($_IN, $p), $mask);
- }
- function _COOKIE($p, $mask = '')
- {
- return isset($_COOKIE[$p]) ? filterinput(fromgpc($_COOKIE[$p]), $mask) : NULL;
- }
- function _GET($p, $mask = '')
- {
- return isset($_GET[$p]) ? filterinput(fromgpc($_GET[$p]), $mask) : NULL;
- }
- function _POST($p, $mask = '')
- {
- return isset($_POST[$p]) ? filterinput(fromgpc($_POST[$p]), $mask) : NULL;
- .................................................................................
- ...........................................
- ......................
Add Comment
Please, Sign In to add comment