Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
namespace GDPlayer; use GDPlayer\{Helper, InstanceCache, Login, Model, Security}; class A..
Decoded Output download
<? namespace GDPlayer; use GDPlayer\{Helper, InstanceCache, Login, Model, Security}; class Ajax { protected $currentUser = false; protected $isAdmin = false; protected $iCache; protected $model; protected $session; protected $helper; protected $security; protected $epeMelemek = false; const STATUS_OK = "ok"; const STATUS_FAIL = "fail"; const MESSAGE_UNAUTHORIZE = "You are not authorized to access this feature"; const MESSAGE_NOT_EXIST = "What do you want?"; const MESSAGE_INVALID = "Invalid parameters"; const MESSAGE_STATUS_INVALID = "Invalid status"; public function __construct() { goto SnGceGTCc3O9vXpw; kMmkELB1kSZQ2Yvp: $this->currentUser = current_user(); goto NOVLQLutDzbvk46Z; z6f3_xLQH6NfTQnH: $this->model = new Model(); goto loTGYNSn9ha5dPj2; cXbehJLmY1NQIUmv: $this->helper = new Helper(); goto xo1RHaGfufeAOTAq; loTGYNSn9ha5dPj2: $this->session = new Login(); goto cXbehJLmY1NQIUmv; NOVLQLutDzbvk46Z: $this->isAdmin = $this->currentUser && intval($this->currentUser["role"]) === 0; goto KLrv_HyyshNx7TQb; kSrnh5zowuVUnSeg: $this->iCache = new InstanceCache(); goto z6f3_xLQH6NfTQnH; BXsjwSI9vn0rIEyX: $this->epeMelemek = $this->security->mekNgumbe(); goto kMmkELB1kSZQ2Yvp; SnGceGTCc3O9vXpw: session_write_close(); goto kSrnh5zowuVUnSeg; xo1RHaGfufeAOTAq: $this->security = new Security(); goto BXsjwSI9vn0rIEyX; KLrv_HyyshNx7TQb: } protected function tableValidation(int $id = 0, string $colId = "id", $table = null) { goto u3inAvk8N8Tqj2T6; tjwahLO_mzedglb4: goto ptYgVecn5Xn6tN6V; goto usv2CyW8t7evPX3a; CqSKJTYw06l0C_pC: session_write_close(); goto ZsRCZFd1mVEMAt8N; ZsRCZFd1mVEMAt8N: $table->setCriteria("uid", $this->currentUser["id"], "=", "AND"); goto tjwahLO_mzedglb4; vMnhSjKT6eKMdyF2: session_write_close(); goto fWYgO7_BsEB4DQ0_; fWYgO7_BsEB4DQ0_: $table->setCriteria($colId, $id, "="); goto e3k2_K2H2kMUr52K; usv2CyW8t7evPX3a: sCDN3H7ezKscbrpi: goto vMnhSjKT6eKMdyF2; e3k2_K2H2kMUr52K: ptYgVecn5Xn6tN6V: goto ETDxQjOZdg1WWV3o; u3inAvk8N8Tqj2T6: session_write_close(); goto dUrG0wusnAKjb4fh; dUrG0wusnAKjb4fh: if ($this->isAdmin) { goto sCDN3H7ezKscbrpi; } goto CqSKJTYw06l0C_pC; ETDxQjOZdg1WWV3o: } protected function extractDatatablesQry(array $get = [], array $columns = [], string $defaultOrderBy = '', string $defaultOrderDir = "asc") { goto YGVoB4YI7ufSFWDV; KyLAuhMWpuOvV_Qj: return ["draw" => sanitize_int($get["draw"] ?? 1), "start" => sanitize_int($get["start"] ?? 0), "length" => sanitize_int($get["length"] ?? 10), "search" => sanitize_html($get["search"]["value"] ?? ''), "orderBy" => $columns[$orderByInt] ?? $defaultOrderBy, "orderDir" => sanitize_html($get["order"][0]["dir"] ?? $defaultOrderDir)]; goto mJd2BR2j_qz0tW8A; p0_zlAulpY8xSXmc: $orderByInt = sanitize_int($get["order"][0]["column"] ?? 0); goto KyLAuhMWpuOvV_Qj; YGVoB4YI7ufSFWDV: session_write_close(); goto p0_zlAulpY8xSXmc; mJd2BR2j_qz0tW8A: } public function gzipJsonResponse(string $json = '') { goto d85N47_wIFTnwtMi; pS_YeB1Jo43LBCqg: $header = corsResponseHeaders(); goto iK6BXvi_ua94DCDb; T41z11CWhIBw1gdA: createResponseHeaders($header); goto uR4uJCKvKix8QRA0; d85N47_wIFTnwtMi: session_write_close(); goto pS_YeB1Jo43LBCqg; uR4uJCKvKix8QRA0: return (string) gzipResponse($json); goto jyVLc4kRv9j4fdmZ; iK6BXvi_ua94DCDb: $header[] = "Cache-Control: no-cache"; goto DAfRAam2X1slPbrq; DAfRAam2X1slPbrq: $header[] = "Content-Type: application/json; charset=utf-8"; goto T41z11CWhIBw1gdA; jyVLc4kRv9j4fdmZ: } public function toDataTablesJson(int $draw = 1, array $data = [], int $recordsTotal = 0, int $recordsFiltered = 0) { goto uKmJYXmAM6t2QWIb; q31tIC1SnEKc_Em2: cfFzB9EI7HMmLEiD: goto nbUWc0346U6qL0_P; CVeCMpMNDZYuv9bG: $recordsTotal = 0; goto q31tIC1SnEKc_Em2; nbUWc0346U6qL0_P: return (string) json_encode(["draw" => $draw, "data" => $data, "recordsTotal" => $recordsTotal, "recordsFiltered" => $recordsFiltered]); goto aKt0BE56xKBMhqbg; KPKXEPG2if5SbSvm: $data = []; goto tjvAh9uHagAfh2iy; tjvAh9uHagAfh2iy: $recordsFiltered = 0; goto CVeCMpMNDZYuv9bG; uKmJYXmAM6t2QWIb: session_write_close(); goto mn2V9FPrqleRQwBe; UM2F9Ylm1RpCmaO8: session_write_close(); goto KPKXEPG2if5SbSvm; mn2V9FPrqleRQwBe: if ($this->epeMelemek) { goto cfFzB9EI7HMmLEiD; } goto UM2F9Ylm1RpCmaO8; aKt0BE56xKBMhqbg: } public function toCustomJson(array $result = []) { session_write_close(); return (string) json_encode($this->epeMelemek ? $result : []); } public function toJson(int $status = 0, string $message = '', $result = null) { session_write_close(); return (string) json_encode(["status" => $status ? self::STATUS_OK : self::STATUS_FAIL, "message" => $message, "result" => $result]); } public function notAuthorize() { session_write_close(); return $this->toJson(0, self::MESSAGE_UNAUTHORIZE); } public function notValid() { session_write_close(); return $this->toJson(0, self::MESSAGE_INVALID); } public function notExist() { session_write_close(); return $this->toJson(0, self::MESSAGE_NOT_EXIST); } }
?>
Did this file decode correctly?
Original Code
namespace GDPlayer; use GDPlayer\{Helper, InstanceCache, Login, Model, Security}; class Ajax { protected $currentUser = false; protected $isAdmin = false; protected $iCache; protected $model; protected $session; protected $helper; protected $security; protected $epeMelemek = false; const STATUS_OK = "\157\x6b"; const STATUS_FAIL = "\146\x61\151\x6c"; const MESSAGE_UNAUTHORIZE = "\x59\157\165\40\x61\x72\x65\40\156\157\x74\40\141\x75\164\x68\x6f\x72\x69\172\145\144\x20\164\x6f\40\x61\x63\143\x65\163\163\40\x74\x68\151\x73\40\x66\145\141\164\x75\x72\145"; const MESSAGE_NOT_EXIST = "\x57\150\x61\x74\x20\x64\x6f\x20\x79\157\165\x20\167\x61\156\164\77"; const MESSAGE_INVALID = "\111\x6e\x76\x61\154\151\144\40\160\x61\x72\141\155\145\164\x65\x72\163"; const MESSAGE_STATUS_INVALID = "\x49\x6e\166\141\x6c\x69\144\x20\163\164\x61\164\165\x73"; public function __construct() { goto SnGceGTCc3O9vXpw; kMmkELB1kSZQ2Yvp: $this->currentUser = current_user(); goto NOVLQLutDzbvk46Z; z6f3_xLQH6NfTQnH: $this->model = new Model(); goto loTGYNSn9ha5dPj2; cXbehJLmY1NQIUmv: $this->helper = new Helper(); goto xo1RHaGfufeAOTAq; loTGYNSn9ha5dPj2: $this->session = new Login(); goto cXbehJLmY1NQIUmv; NOVLQLutDzbvk46Z: $this->isAdmin = $this->currentUser && intval($this->currentUser["\162\157\154\145"]) === 0; goto KLrv_HyyshNx7TQb; kSrnh5zowuVUnSeg: $this->iCache = new InstanceCache(); goto z6f3_xLQH6NfTQnH; BXsjwSI9vn0rIEyX: $this->epeMelemek = $this->security->mekNgumbe(); goto kMmkELB1kSZQ2Yvp; SnGceGTCc3O9vXpw: session_write_close(); goto kSrnh5zowuVUnSeg; xo1RHaGfufeAOTAq: $this->security = new Security(); goto BXsjwSI9vn0rIEyX; KLrv_HyyshNx7TQb: } protected function tableValidation(int $id = 0, string $colId = "\x69\144", $table = null) { goto u3inAvk8N8Tqj2T6; tjwahLO_mzedglb4: goto ptYgVecn5Xn6tN6V; goto usv2CyW8t7evPX3a; CqSKJTYw06l0C_pC: session_write_close(); goto ZsRCZFd1mVEMAt8N; ZsRCZFd1mVEMAt8N: $table->setCriteria("\165\x69\144", $this->currentUser["\151\x64"], "\75", "\x41\x4e\x44"); goto tjwahLO_mzedglb4; vMnhSjKT6eKMdyF2: session_write_close(); goto fWYgO7_BsEB4DQ0_; fWYgO7_BsEB4DQ0_: $table->setCriteria($colId, $id, "\x3d"); goto e3k2_K2H2kMUr52K; usv2CyW8t7evPX3a: sCDN3H7ezKscbrpi: goto vMnhSjKT6eKMdyF2; e3k2_K2H2kMUr52K: ptYgVecn5Xn6tN6V: goto ETDxQjOZdg1WWV3o; u3inAvk8N8Tqj2T6: session_write_close(); goto dUrG0wusnAKjb4fh; dUrG0wusnAKjb4fh: if ($this->isAdmin) { goto sCDN3H7ezKscbrpi; } goto CqSKJTYw06l0C_pC; ETDxQjOZdg1WWV3o: } protected function extractDatatablesQry(array $get = [], array $columns = [], string $defaultOrderBy = '', string $defaultOrderDir = "\x61\163\143") { goto YGVoB4YI7ufSFWDV; KyLAuhMWpuOvV_Qj: return ["\x64\x72\141\x77" => sanitize_int($get["\144\x72\x61\167"] ?? 1), "\x73\x74\141\x72\x74" => sanitize_int($get["\x73\x74\x61\x72\x74"] ?? 0), "\154\x65\x6e\x67\164\150" => sanitize_int($get["\x6c\145\x6e\147\164\x68"] ?? 10), "\163\145\141\x72\x63\150" => sanitize_html($get["\x73\x65\x61\162\143\x68"]["\x76\x61\x6c\x75\145"] ?? ''), "\x6f\x72\144\x65\162\x42\x79" => $columns[$orderByInt] ?? $defaultOrderBy, "\157\x72\x64\145\162\104\151\x72" => sanitize_html($get["\x6f\162\x64\x65\x72"][0]["\x64\x69\162"] ?? $defaultOrderDir)]; goto mJd2BR2j_qz0tW8A; p0_zlAulpY8xSXmc: $orderByInt = sanitize_int($get["\157\x72\x64\x65\162"][0]["\x63\157\154\165\x6d\x6e"] ?? 0); goto KyLAuhMWpuOvV_Qj; YGVoB4YI7ufSFWDV: session_write_close(); goto p0_zlAulpY8xSXmc; mJd2BR2j_qz0tW8A: } public function gzipJsonResponse(string $json = '') { goto d85N47_wIFTnwtMi; pS_YeB1Jo43LBCqg: $header = corsResponseHeaders(); goto iK6BXvi_ua94DCDb; T41z11CWhIBw1gdA: createResponseHeaders($header); goto uR4uJCKvKix8QRA0; d85N47_wIFTnwtMi: session_write_close(); goto pS_YeB1Jo43LBCqg; uR4uJCKvKix8QRA0: return (string) gzipResponse($json); goto jyVLc4kRv9j4fdmZ; iK6BXvi_ua94DCDb: $header[] = "\x43\141\x63\150\x65\55\x43\157\156\x74\162\157\154\x3a\40\x6e\157\55\143\x61\143\150\x65"; goto DAfRAam2X1slPbrq; DAfRAam2X1slPbrq: $header[] = "\x43\157\156\x74\145\156\164\x2d\124\x79\160\145\72\40\141\160\x70\x6c\x69\143\x61\164\x69\157\156\x2f\152\x73\157\156\x3b\x20\x63\150\x61\162\163\145\164\75\165\164\x66\x2d\70"; goto T41z11CWhIBw1gdA; jyVLc4kRv9j4fdmZ: } public function toDataTablesJson(int $draw = 1, array $data = [], int $recordsTotal = 0, int $recordsFiltered = 0) { goto uKmJYXmAM6t2QWIb; q31tIC1SnEKc_Em2: cfFzB9EI7HMmLEiD: goto nbUWc0346U6qL0_P; CVeCMpMNDZYuv9bG: $recordsTotal = 0; goto q31tIC1SnEKc_Em2; nbUWc0346U6qL0_P: return (string) json_encode(["\144\162\x61\x77" => $draw, "\x64\141\x74\x61" => $data, "\x72\x65\143\x6f\x72\144\163\124\x6f\x74\x61\x6c" => $recordsTotal, "\x72\x65\x63\157\162\144\x73\x46\151\154\164\145\162\145\144" => $recordsFiltered]); goto aKt0BE56xKBMhqbg; KPKXEPG2if5SbSvm: $data = []; goto tjvAh9uHagAfh2iy; tjvAh9uHagAfh2iy: $recordsFiltered = 0; goto CVeCMpMNDZYuv9bG; uKmJYXmAM6t2QWIb: session_write_close(); goto mn2V9FPrqleRQwBe; UM2F9Ylm1RpCmaO8: session_write_close(); goto KPKXEPG2if5SbSvm; mn2V9FPrqleRQwBe: if ($this->epeMelemek) { goto cfFzB9EI7HMmLEiD; } goto UM2F9Ylm1RpCmaO8; aKt0BE56xKBMhqbg: } public function toCustomJson(array $result = []) { session_write_close(); return (string) json_encode($this->epeMelemek ? $result : []); } public function toJson(int $status = 0, string $message = '', $result = null) { session_write_close(); return (string) json_encode(["\163\164\141\x74\x75\163" => $status ? self::STATUS_OK : self::STATUS_FAIL, "\155\x65\x73\x73\x61\x67\145" => $message, "\162\145\x73\x75\154\x74" => $result]); } public function notAuthorize() { session_write_close(); return $this->toJson(0, self::MESSAGE_UNAUTHORIZE); } public function notValid() { session_write_close(); return $this->toJson(0, self::MESSAGE_INVALID); } public function notExist() { session_write_close(); return $this->toJson(0, self::MESSAGE_NOT_EXIST); } }
Function Calls
None |
Stats
MD5 | 6e16930e01ae368ccd48e2e95ec33a2d |
Eval Count | 0 |
Decode Time | 43 ms |