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 global $_W, $_GPC; $uniacid = $_W["\x75\x6e\151\x61\x63\x69\144"]; load()->fun..
Decoded Output download
<?php
global $_W, $_GPC;
$uniacid = $_W["uniacid"];
load()->func("tpl");
$v = pdo_fetch("SELECT * FROM " . tablename("yyf_hotel_tabbar") . " where `uniacid`='{
$uniacid}
' order by id desc limit 1");
if (!($v["id"] == '')) {
$buyShop = pdo_tableexists("yyf_hotel_shop_order");
if (!checksubmit()) {
include $this->template("tabbar");
function move_img() {
$source_dir = MODULE_ROOT . "/images/tabbar";
$to_dir = ATTACHMENT_ROOT . "/images/yyfhotel/tabbar";
if (is_dir($to_dir)) {
copy_dir($source_dir, $to_dir);
}
function copy_dir($from_dir, $to_dir) {
$from_files = scandir($from_dir);
if (empty($from_files)) {
return true;
}
function tabbar($imgdir, $m1name, $m2name, $m3name, $m4name, $m1path, $m2path, $m3path, $m4path, $border_color, $background_color, $sel_color, $color, $uniacid) {
$data = array();
$data["color"] = $color;
$data["background_color"] = $background_color;
$data["sel_color"] = $sel_color;
$data["border_color"] = $border_color;
$data["m1_name"] = $m1name;
$data["m2_name"] = $m2name;
$data["m3_name"] = $m3name;
$data["m4_name"] = $m4name;
$data["m1_path"] = $m1path;
$data["m2_path"] = $m2path;
$data["m3_path"] = $m3path;
$data["m4_path"] = $m4path;
$data["m1_img"] = $imgdir . "tabbar/b1.png";
$data["m2_img"] = $imgdir . "tabbar/b2.png";
$data["m3_img"] = $imgdir . "tabbar/b3.png";
$data["m4_img"] = $imgdir . "tabbar/b4.png";
$data["uniacid"] = $uniacid;
$data["m1_selimg"] = $imgdir . "tabbar/b11.png";
$data["m2_selimg"] = $imgdir . "tabbar/b22.png";
$data["m3_selimg"] = $imgdir . "tabbar/b33.png";
$data["m4_selimg"] = $imgdir . "tabbar/b44.png";
$data["uptime"] = time();
pdo_insert("yyf_hotel_tabbar", $data);
}
?>
Did this file decode correctly?
Original Code
<?php
global $_W, $_GPC;
$uniacid = $_W["\x75\x6e\151\x61\x63\x69\144"];
load()->func("\x74\x70\x6c");
$v = pdo_fetch("\x53\x45\x4c\105\x43\x54\x20\x2a\x20\x46\x52\x4f\x4d\x20" . tablename("\171\x79\146\x5f\150\157\164\x65\154\x5f\x74\x61\x62\x62\x61\162") . "\x20\167\150\x65\x72\x65\x20\140\x75\156\151\x61\143\151\144\140\75\47{
$uniacid}
\x27\40\x6f\162\144\x65\162\x20\x62\171\x20\x69\x64\x20\x64\x65\x73\x63\x20\x6c\151\x6d\151\164\40\61");
if (!($v["\x69\x64"] == '')) {
$buyShop = pdo_tableexists("\x79\171\x66\137\x68\157\x74\145\x6c\137\x73\150\157\x70\137\157\162\144\145\x72");
if (!checksubmit()) {
include $this->template("\x74\x61\142\x62\141\x72");
function move_img() {
$source_dir = MODULE_ROOT . "\57\x69\x6d\141\147\x65\163\x2f\x74\x61\x62\142\141\x72";
$to_dir = ATTACHMENT_ROOT . "\57\151\x6d\x61\147\x65\x73\x2f\x79\x79\x66\150\x6f\164\x65\154\x2f\x74\x61\x62\x62\x61\x72";
if (is_dir($to_dir)) {
copy_dir($source_dir, $to_dir);
}
function copy_dir($from_dir, $to_dir) {
$from_files = scandir($from_dir);
if (empty($from_files)) {
return true;
}
function tabbar($imgdir, $m1name, $m2name, $m3name, $m4name, $m1path, $m2path, $m3path, $m4path, $border_color, $background_color, $sel_color, $color, $uniacid) {
$data = array();
$data["\x63\x6f\154\x6f\162"] = $color;
$data["\x62\x61\143\153\147\162\157\x75\156\x64\137\x63\157\154\x6f\162"] = $background_color;
$data["\x73\x65\154\x5f\143\x6f\154\x6f\x72"] = $sel_color;
$data["\x62\x6f\162\144\x65\162\137\143\x6f\154\157\162"] = $border_color;
$data["\155\61\137\x6e\x61\155\145"] = $m1name;
$data["\155\62\x5f\156\141\x6d\x65"] = $m2name;
$data["\x6d\63\137\156\141\x6d\x65"] = $m3name;
$data["\155\x34\137\156\x61\155\x65"] = $m4name;
$data["\x6d\x31\137\160\141\164\x68"] = $m1path;
$data["\x6d\x32\x5f\160\141\164\x68"] = $m2path;
$data["\155\63\x5f\160\x61\164\150"] = $m3path;
$data["\x6d\x34\137\x70\x61\164\x68"] = $m4path;
$data["\x6d\x31\137\151\155\x67"] = $imgdir . "\x74\141\x62\142\141\x72\57\142\61\56\x70\156\147";
$data["\x6d\x32\137\151\x6d\147"] = $imgdir . "\164\141\142\142\x61\x72\57\x62\x32\x2e\160\x6e\147";
$data["\x6d\63\x5f\151\x6d\x67"] = $imgdir . "\x74\x61\142\142\141\162\x2f\x62\x33\x2e\x70\156\x67";
$data["\x6d\64\137\151\155\147"] = $imgdir . "\164\x61\142\142\x61\x72\57\x62\64\56\160\156\x67";
$data["\x75\x6e\x69\x61\143\151\144"] = $uniacid;
$data["\x6d\61\x5f\x73\145\x6c\x69\x6d\x67"] = $imgdir . "\164\x61\142\142\141\x72\x2f\x62\61\x31\56\x70\156\147";
$data["\155\x32\137\163\x65\154\x69\155\x67"] = $imgdir . "\x74\x61\142\142\x61\162\x2f\x62\62\x32\x2e\160\x6e\x67";
$data["\155\x33\137\x73\145\x6c\151\155\x67"] = $imgdir . "\x74\x61\142\142\x61\162\x2f\x62\x33\63\56\160\156\x67";
$data["\x6d\x34\x5f\163\145\154\x69\x6d\147"] = $imgdir . "\x74\x61\x62\142\141\x72\57\x62\x34\x34\x2e\160\156\x67";
$data["\165\x70\164\x69\155\145"] = time();
pdo_insert("\171\171\146\137\x68\157\164\145\154\137\x74\141\142\x62\141\162", $data);
}
Function Calls
None |
Stats
MD5 | a524cdb9148eb1128ef8a8c5ccd5b6ae |
Eval Count | 0 |
Decode Time | 108 ms |