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 $_GPC, $_W; $uniacid = $_W["\165\x6e\151\141\x63\x69\144"]; $start = st..

Decoded Output download

<?php 
 global $_GPC, $_W; 
 $uniacid = $_W["uniacid"]; 
 $start = strtotime(date("Y-m-d" . "00:00:01", time())); 
 $end = strtotime(date("Y-m-d" . "23:59:59", time())); 
 $getuniacid = $_GPC["uniacid"]; 
 $sql = "select `id` from" . tablename("yyf_hotel_order") . " where `uniacid`='{ 
$getuniacid} 
'  and (`addtime` > '{ 
$start} 
' and '{ 
$end} 
' > `addtime`) and `notice`='0' limit 1"; 
 $res = pdo_fetch($sql); 
 if ($res) { 
 echo 1; 
} 
 echo 0; 
 ?>

Did this file decode correctly?

Original Code

<?php
 global $_GPC, $_W;
 $uniacid = $_W["\165\x6e\151\141\x63\x69\144"];
 $start = strtotime(date("\x59\55\x6d\55\144" . "\x30\x30\x3a\60\60\x3a\60\x31", time()));
 $end = strtotime(date("\131\x2d\x6d\55\x64" . "\62\x33\x3a\65\x39\x3a\65\x39", time()));
 $getuniacid = $_GPC["\x75\x6e\x69\141\143\151\144"];
 $sql = "\163\x65\x6c\x65\x63\x74\40\x60\151\144\x60\x20\x66\x72\x6f\155" . tablename("\x79\x79\146\x5f\150\157\x74\145\154\x5f\x6f\162\144\145\x72") . "\40\167\x68\x65\x72\x65\x20\x60\x75\156\x69\x61\143\151\x64\x60\x3d\x27{
$getuniacid}
\x27\x20\x20\x61\x6e\144\40\50\x60\x61\144\x64\x74\151\155\x65\140\x20\76\40\47{
$start}
\x27\x20\141\x6e\x64\40\47{
$end}
\47\x20\76\x20\140\141\144\144\164\x69\x6d\x65\140\51\40\141\x6e\x64\40\140\156\157\164\151\143\145\x60\75\47\x30\47\40\x6c\x69\155\151\x74\40\x31";
 $res = pdo_fetch($sql);
 if ($res) {
 echo 1;
}
 echo 0;

Function Calls

date 1
time 1

Variables

$uniacid None

Stats

MD5 dd35845d155121609a211b48fa766653
Eval Count 0
Decode Time 81 ms