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 eval(gzinflate(base64_decode(' zVjvbts2EP/sAn0HxjVKuYjlpl2DDY6dNm2KBHVb I0mLDW0h0B..
Decoded Output download
?><?php
error_reporting(E_ALL);
ob_start();
session_start();
/*== LogOut
==*/
/*===
Define var for access other files.
Load cms setting in $cms
Load database utility
Load mother model module
Load mother admin controller module
Load utilities function as define in utilities.class.php
===*/
class PublicKey {
private $key = '|-|T|3-6|V|5';
private $type = array('local','ip','domain','folder','cms');
public function mdp($str){
$encrypt = md5($str);
$str = $encrypt.$this->key;
$encrypt = md5($str);
$this->key = md5($this->key);
$str = $encrypt.$this->key;
$encrypt = md5($str);
return $encrypt;
}
public function keytype($key, $type = 2){
$p_key = substr($key, 0, 16);
$a_key = substr($key, 16, 16);
return 'htb'.$p_key.$type.$a_key;
}
public function validkey($key){
@$type = $key[19];
if(strlen($key) != 36)
return false;
else if(!array_key_exists($type, $this->type))
return false;
else{
if($type == 0){
//local
$skey = 'localhost';
}
else if($type == 1){
//IP
$skey = gethostbyname($_SERVER['HTTP_HOST']);
}
else if($type == 2){
//domain
$skey = ($_SERVER['HTTP_HOST']);
$skey = str_replace('www.', '', $skey);
}
else if($type == 3){
//folder
$skey = dirname($_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']);
$skey = str_replace('www.', '', $skey);
}
else if($type == 4){
//cms
$skey = 'cms';
}
$encrypt = $this->mdp($skey);
$keygen = $this->keytype($encrypt, $type);
if($key == $keygen) return true;
return false;
}
}
}
define("CMS_INDEX", "Powered by HTB");
//define("CMS_ADMIN", "Powered by HTB");
require_once('systems/setting.sys.php');
$cms->_dir = str_replace('\', '/', dirname(__FILE__)) . '/';
$publicKey = new PublicKey();
if($publicKey->validkey(PUBLIC_KEY) == false)
exit(0);
$cms->set->set('_dir', dirname(__FILE__) . '/');
$cms->set->set('_dir_core', $cms->_dir.'cores/');
$cms->set->set('_dir_module', $cms->_dir.'modules/');
$cms->set->set('_dir_sys', $cms->_dir.'systems/');
$cms->set->set('_dir_inc', $cms->_dir.'includes/');
$cms->set->set('_index', 'modules/home/index/');
$cms->set->set('_ext', '.php');
$cms->set->set('_ext_core', '.class'.$cms->_ext);
$cms->set->set('_ext_module', '.model'.$cms->_ext);
$cms->set->set('_ext_ctrl', '.controller'.$cms->_ext);
$cms->set->set('_ext_actrl', '.admin.controller'.$cms->_ext);
$cms->set->set('_ext_ictrl', '.index.controller'.$cms->_ext);
$cms->set->set('_ext_sys', '.sys'.$cms->_ext);
$cms->set->set('_ext_inc', '.inc'.$cms->_ext);
$cms->set->set('_ext_view', '.view');
$cms->set->set('_site', $__siteURL);
$cms->set->set('_theme', $__siteURL.$__themeURL);
$cms->set->set('_bcb', $__homeBCB);
require_once($cms->_dir.'cores/db.class.php');
require_once($cms->_dir."cores/i.model.php");
require_once($cms->_dir."cores/i.index.controller.php");
require_once($cms->_dir."systems/utilities.sys.php");
require_once($cms->_dir."modules/manager/model.php");
require_once($cms->_dir."modules/staticpage/model.php");
if(property_exists($cms, 'maintenance') && $cms->maintenance == 1){
if(file_exists('maintenance.php')){
require_once 'errors/maintenance.php';
}
else{
$static = new Staticpage();
$maintenance = $static->select_name('Bo tr');
echo '<meta charset="utf-8"/>';
if(isset($maintenance->content))
echo @$maintenance->content;
else echo 'Under construction!';
}
exit();
}
#------------------------------------------------------------------------------
require_once($cms->_dir.$__themeURL."index.php");
#--------------------------------------------------------------------------------------
ob_flush();
?>
<script type="text/javascript">
document.title = '<?php echo $cms->title;?>';
$('#breadcrumb').html('<?php echo $cms->_bcb;?>');
</script><?
Did this file decode correctly?
Original Code
<?php eval(gzinflate(base64_decode('
zVjvbts2EP/sAn0HxjVKuYjlpl2DDY6dNm2KBHVb
I0mLDW0h0BIdc9Mfj6SSGk2eZl/3BPu6J9mb7I7U
vzqynaTFMBkWJPJ+x98dj8ejdgc7u7Pp7O4dAheX
MpGe5LNEahGfOvves+Gw3bOdydhTmkntYENDcaV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dD5169Ei9q+goS1Mg7WDizjg
nxGMvQXhaRLxrulaA+eftXU6LaJqlWzhY2rrbihm
LGXoW4stfUxdcza4EdqHUiUbuTg13EgBKzWY08dt
9YhSj/HwbfWYkGmgGny6EQMMl4Yl4N8IeSb4uaVu
nlbKK6F5Hlgtz7y+OxquhMDRLqrBwN5ou9bhx/44
R5NMBUby3vM9e4ZaSI5XF3owLs+DtCadVhBNixA2
FBHQvCZgcdavg81zQXluzRL5OmC+oiMWs1Muu1+z
LX25VoHSTAt/BkoWdFSy+0wmMy51WbyDHthFsPjT
PGagmrbJ/fvZxFWaaytdUIhfE3JlVTV2fuqKk6od
hJqPImj818jVx8AlJ4WW9UC2wx0X7nBqD3hfGZdj
MU5D7mvP7E9075+//kigvPj7T1qng/vThNCdiGtG
/CmTEOP9ZqonnR+b3QGtP5AJhSuhOnpngJHGY113
bjJDPK0VX3ZKs6zeQQxL/P4CRUNqzpQb67yKO3jV
TFMC3et812vVUqgkEbdp12Cxfr4zjZJO9vFtEqZq
aqzfHdy9s6N8KaC6xXq039SQWLu/sjNmW5sDiwoS
P41gHlwtdIgxRM3HPut/a5bp6e0WsdBy6L2x5Czw
ZRqNadud6ih0ruIwTyIM+ex07bCDnd1/AQ==
'))); ?>
Function Calls
gzinflate | 1 |
base64_decode | 1 |
Stats
MD5 | ba105e5d342f413c6f7b14d887ca95f7 |
Eval Count | 1 |
Decode Time | 99 ms |