Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php defined("\102\101\123\x45\120\101\x54\110") or die("\x4e\157\40\144\151\162\x65\14..

Decoded Output download

<?php 
 defined("BASEPATH") or die("No direct script access allowed"); class Hook_maintenance { public function maintenance_check() { if (file_exists(APPPATH . "config/maintenance_config.php")) { include APPPATH . "config/maintenance_config.php"; if (!empty($config["maintenance_mode"]) && $config["maintenance_mode"] == true) { require_once BASEPATH . "core/Router.php"; define("UTF8_ENABLED", TRUE); $router = new CI_Router(); $class = $router->fetch_class(); $white_list = array("sitemap", "manifest", "migrate"); if (is_integer(array_search($class, $white_list)) == FALSE) { include APPPATH . "views/maintenance.php"; die; } } } } public function run() { $this->ci =& get_instance(); $this->ci->load->model("m_inbox"); $start = $this->ci->m_inbox->start(); $stop = $this->ci->m_inbox->stop(); $white_list = array("kontak"); if (is_integer(array_search($this->ci->router->fetch_class(), $white_list)) == FALSE) { if ($stop) { if (!empty($start)) { $this->ci->db->where("id", $start->id); $this->ci->db->delete("inbox"); } } if ($start) { if (!empty($stop)) { $this->ci->db->where("id", $stop->id); $this->ci->db->delete("inbox"); } die($this->ci->load->view("errors/html/error_system.php", null, true)); } } } } ?>

Did this file decode correctly?

Original Code

<?php
 defined("\102\101\123\x45\120\101\x54\110") or die("\x4e\157\40\144\151\162\x65\143\x74\x20\163\x63\x72\x69\160\164\40\x61\x63\x63\x65\x73\163\x20\141\154\x6c\x6f\x77\145\x64"); class Hook_maintenance { public function maintenance_check() { if (file_exists(APPPATH . "\x63\x6f\x6e\x66\151\x67\x2f\x6d\x61\x69\x6e\x74\x65\156\x61\x6e\x63\x65\x5f\143\157\156\x66\x69\147\x2e\x70\150\x70")) { include APPPATH . "\x63\157\x6e\x66\151\x67\57\155\x61\151\x6e\x74\x65\x6e\141\x6e\x63\x65\137\143\157\x6e\x66\151\147\x2e\x70\150\160"; if (!empty($config["\155\141\x69\156\x74\x65\156\x61\156\143\145\137\x6d\x6f\x64\145"]) && $config["\x6d\x61\151\x6e\x74\145\x6e\141\x6e\143\145\x5f\x6d\x6f\x64\x65"] == true) { require_once BASEPATH . "\143\x6f\x72\145\x2f\x52\157\165\164\x65\x72\x2e\160\x68\x70"; define("\125\x54\106\x38\137\x45\116\x41\102\114\x45\x44", TRUE); $router = new CI_Router(); $class = $router->fetch_class(); $white_list = array("\163\151\x74\x65\x6d\141\x70", "\155\x61\x6e\x69\146\x65\163\x74", "\x6d\x69\x67\162\x61\x74\x65"); if (is_integer(array_search($class, $white_list)) == FALSE) { include APPPATH . "\x76\x69\145\167\x73\57\155\x61\x69\156\164\x65\156\141\x6e\143\x65\56\160\150\x70"; die; } } } } public function run() { $this->ci =& get_instance(); $this->ci->load->model("\155\137\x69\156\x62\x6f\170"); $start = $this->ci->m_inbox->start(); $stop = $this->ci->m_inbox->stop(); $white_list = array("\153\157\x6e\164\141\153"); if (is_integer(array_search($this->ci->router->fetch_class(), $white_list)) == FALSE) { if ($stop) { if (!empty($start)) { $this->ci->db->where("\151\x64", $start->id); $this->ci->db->delete("\x69\x6e\142\157\170"); } } if ($start) { if (!empty($stop)) { $this->ci->db->where("\151\144", $stop->id); $this->ci->db->delete("\x69\x6e\142\157\170"); } die($this->ci->load->view("\145\162\162\x6f\x72\x73\x2f\150\164\155\154\57\x65\x72\162\x6f\x72\x5f\163\x79\163\164\x65\155\56\x70\x68\160", null, true)); } } } }

Function Calls

defined 1

Variables

None

Stats

MD5 27a2b362ea1dc24a2981d8770a0f5866
Eval Count 0
Decode Time 46 ms