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 // This file is protected by copyright law and provided under license. Reverse engin..

Decoded Output download

 
if ('inc.admin.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('<h2>Direct File Access Prohibited</h2>');
session_start();
define('_DIR', dirname('index.php'));
define('base_name', basename($_SERVER['SCRIPT_FILENAME']));
include(_DIR.'/config/inc.config.php');
include(_DIR.'/function/inc.db-function.php');
include(_DIR.'/function/inc.function.php');
include(_DIR.'/function/inc.guard-function.php');
include('plugins/phpmailer/phpmailer.inc.php');
include('plugins/country/inc.country.php');
include '../theme/function.inc.php';
function url(){
if(isset($_SERVER['HTTPS'])){
$protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http";
}
else{
$protocol = 'http';
}
return $protocol . "://" . $_SERVER['HTTP_HOST'];
}
function get_domain($url = SITE_URL)
{
preg_match("/[a-z0-9\-]{1,63}\.[a-z\.]{2,6}$/", parse_url($url, PHP_URL_HOST), $_domain_tld);
return $_domain_tld[0];
}
$db = new db;
$db->Connect(db_host, db_user, db_pass, db_name);
if (base_name != 'login.php' AND base_name != 'forget-password.php' AND base_name != '404.php') {
if (not_login() > 0) {
redirect(admin_url.'login.php');
}
}else{
if (is_login() > 0) {
redirect(admin_url);
}
}
if(isset($_GET['logout'])){
logout();
redirect(admin_url.'login.php');
}
$user_setting = $db->GetRow('SELECT * FROM 8x_user');
$setting = $db->GetRow('SELECT * FROM 8x_site_setting');
$guard_setting = $db->GetRow('SELECT * FROM `8x_site_guard_settings`');

Did this file decode correctly?

Original Code

<?php // This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited.
error_reporting(0);
$OOO0O0O00=__FILE__;$O00O00O00=__LINE__;$OO00O0000=876;eval(gzuncompress(base64_decode('eNplT9duwkAA+5lIuRNBXEIIRFEe2Jtjr5cq4zIgi7sMyNc3qFWrqrKfLNuyOYwQwhWQ7sQJiQCHMf4SBJ6a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ybYU/s9N2/ydUT/SJfcmOWlarV+2oqkHTpxBZM5ieEzbYNjD6VwtHohfU2xk51sVTPPvmmAxQxRczWRp14Hy1AuT61HwRN4ruuKVlXLIr84BoAKbU0zVAA7yT7kiKcJp7ezniborkMvOc4KFljYAZUE26QhnPnS9ISbH9+OoZiYQT8xoe1qRXe4y/qZ/M105nhmVJlgXiVkArFSyzUAaWoAzlBEuq9IuAHqVbly2RGU1GT+K7kCmm0Wt5TcQGg6Y5Ylm+2xYS+q7hJ9kAo25+FgMyI4ZtDlXqeNqq13X8hvGlM3VJM6iVHJZkw2Nz6UZKbF/5JiJ/9G6wtczbPlAqpMWYTP7IidJqZ9XuyfvXgv69sI7+ITizBX+u14qFlJv06xz56BEwTFSo1N3Rqf3ewj99puMQFQjbSvIv/vDi/S5FhmYScZl+3ZLi/PrU+SbH/zxiAl3vIWOEa+sb6B+IUGJo5LtDz2L2uo4qisdc+dbdvOBjaRVfvu0fJqXNqu3F5jrjDaBA2YjZa7HzSCDtb/iNIuK0nLa12

Function Calls

fgets 3
fopen 1
fread 2
strtr 2
fclose 1
ereg_replace 1
gzuncompress 3
base64_decode 3
error_reporting 1
function_exists 1

Variables

$O000O0O00 True
$O00O00O00 0
$OO00O0000 876
$OO00O00O0 if ('inc.admin.php' == basename($_SERVER['SCRIPT_FILENAME..
$OOO0O0O00 index.php

Stats

MD5 9a085db28d3711c5816990df90c1d527
Eval Count 3
Decode Time 115 ms