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
$O000O0O00=$OOO000O00($OOO0O0O00,'rb');$O0O00OO00($O000O0O00,0x532);$OO00O00O0=$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,0x17c),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'));eval($OO00O00O0);$OO00O00O0=str_replace('__FILE__',"'".$OOO0O0O00."'",$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,$OO00O0000),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')));fclose($O000O0O00);eval($OO00O00O0);
if ( !defined('AREA') ) {die('Access denied');}
function fn_link_wg_pamanager()
{
return fn_get_lang_var('fn_link_wg_pamanager');
}
function fn_counter_txt()
{
return fn_get_lang_var('fn_counter_txt');
}
function fn_wg_pamanager_delete_product($product_id)
{
db_query("DELETE FROM ?:wg_availability WHERE product_id = ?i",$product_id);
}
function fn_wg_pamanager_get_product_data($product_id,&$field_list,&$join,$auth)
{
$field_list .= ', avail_until as avail_until';
$field_list .= ', status_after as status_after';
$join .= db_quote(" LEFT JOIN ?:wg_availability ON ?:wg_availability.product_id = ?i",$product_id);
return true;
}
function fn_wg_pamanager_update_product($product_data,$product_id)
{
if (!empty($product_data['avail_since'])) {
$_avail_since = fn_parse_date($product_data['avail_since']);
}
if (!empty($product_data['avail_until'])) {
$_avail_until = fn_parse_date($product_data['avail_until'],true);
}
if (!empty($_avail_until) ||!empty($_avail_since)) {
if (!empty($_avail_until) &&$_avail_until <$_avail_since) {
$_avail_until = fn_parse_date($_avail_since,true);
}
$_data = array(
'product_id'=>$product_id,
'avail_since'=>$_avail_since,
'avail_until'=>$_avail_until,
'status_after'=>$product_data['status_after']
);
db_query("REPLACE INTO ?:wg_availability ?e",$_data);
}else {
fn_wg_pamanager_delete_product($product_id);
}
}
function fn_get_pam ($product_id)
{
$select_pam = db_get_row("SELECT avail_until FROM ?:wg_availability WHERE product_id='$product_id'");
return $select_pam['avail_until'];
}
function fn_date_format_pam($timestamp,$format = '%b %e, %Y')
{
if (substr(PHP_OS,0,3) == 'WIN') {
$hours = strftime('%I',$timestamp);
$short_hours = ($hours <10) ?substr($hours,-1) : $hours;
$_win_from = array ('%e','%T','%D','%l');
$_win_to = array ('%d','%H:%M:%S','%m/%d/%y',$short_hours);
$format = str_replace($_win_from,$_win_to,$format);
}
$date = getdate($timestamp);
$d = $date['mday'];
$y = $date['year'];
$wn = 0;
$w = $date['wday'];
$hr = $date['hours'];
$pm = ($hr >= 12);
$ir = ($pm) ?($hr -12) : $hr;
$dy = $date['yday'];
if ($ir == 0) {
$ir = 12;
}
$min = $date['minutes'];
$sec = $date['seconds'];
$s['%B'] = $date['month'];
$s['%c'] = '';
$s['%C'] = 1 +floor($y / 100);
$s['%d'] = ($d <10) ?('0'.$d) : $d;
$s['%e'] = $d;
$s['%'] = $s['%b'];
$s['%H'] = ($hr <10) ?('0'.$hr) : $hr;
$s['%I'] = ($ir <10) ?('0'.$ir) : $ir;
$s['%j'] = ($dy <100) ?(($dy <10) ?('00'.$dy) : ('0'.$dy)) : $dy;
$s['%k'] = $hr;
$s['%l'] = $ir;
$s['%m'] = ($m <10) ?('0'.$m) : $m;
$s['%M'] = ($min <10) ?('0'.$min) : $min;
$s['%n'] = "
";
$s['%p'] = $pm ?'PM': 'AM';
$s['%P'] = $pm ?'pm': 'am';
$s['%s'] = floor($timestamp / 1000);
$s['%S'] = ($sec <10) ?('0'.$sec) : $sec;
$s['%t'] = " ";
$s['%T'] = $s['%H'] .':'.$s['%M'] .':'.$s['%S'];
$s['%U'] = $s['%W'] = $s['%V'] = ($wn <10) ?('0'.$wn) : $wn;
$s['%u'] = $w +1;
$s['%w'] = $w;
$s['%y'] = substr($y,2,2);
$s['%Y'] = $y;
$s['%%'] = '%';
$s['%D'] = $s['%m'] .'/'.$s['%d'] .'/'.$s['%y'];
return preg_replace("/(%.)/e","\$s['']",$format);
}
;
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. Full license at: http://www.webgraphiq.com/license.html */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0xfb8;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NTMyKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdFbnRlcnlvdXdraFJIWUtOV09VVEFhQmJDY0RkRmZHZ0lpSmpMbE1tUHBRcVNzVnZYeFp6MDEyMzQ1Njc4OSsvPScsJ0F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9LCbOihTShgBaSF2AIGXpMdl93c19XCB1idMymcbkgcoaScbOlb3nZd2O1C3WPkunZd2O1C3OgDBWpKXp9tm0hcmaVC3Opd24IcM5gc2a0b3nidUEPkunZd2O1C3OgDBWptmShkuYldoajfy9XCB0INUnLCl9mcbOgFM93htkTOAxyW1WICbciDBxgfB50DBXIOlkNTUE/Kmfmb2y2CBlSCBkpdol0GUnbUraUOUnXFM9LfBY0b2lLNUFLFukvcuajfy9pctFJhTShFMa0fbkVwtOzcBxlC3OgFoysBZfifMypdy91dmOpdtffKXp9tMc1dMY0DB9VwocVb2OifoagcM9ZdBy0b3nidUILfolscbY0CB1XRtOMd3ksCbWINUEmkBwIkBASwtackZLhGXppcJEPF3aJF3OZhynwAy9NAZXXReHpwe09wtfbUA4mhUn7tJOPd3aZFZE9wuY0FMc0DB1lhtFlUUFSkuOpdBazfoysFtL7tJOzDo9Zfy9Pd3aZFZE9wtILDo91FmHINerXhUE/F3aJF3OZhtOPd3aZFZXsHULIKJELDo91FmH7tJOgf2lVb2cZd20INUniFmkiGUEPkZalkZXmkaWmRtFlOtFSkZaSkZL7tJOgf2lVb3Ovwe0ICbkZCbLIhtFlctFSkZawKJaYKJaTkZXmkB0vkBWvkbLmRtOzDo9Zfy9Pd3aZFZL7tJOMd3ksCbWINUnzfukgFMaXdoyjcUILb3fpdl9MFM9sRtOgf2lVb3OvRtOMd3ksCbWpKXp9tJOLCbOlwe0Ic2a0coy0cUILfolscbY0CB1XhTShkoWINUELcoy0caSmdBOiGUffKXPLGUE9wtOLCbOlBZf5cByZk107tJO3dJE9weE7tJO3we0IkoOifoadk3fLCbLmbTShkoiZwe0IkoOifoadk2ivfbkzk107tJOXdUE9wtILDuwINj0IHTwpKXPLDbwINUEPkunshUE/htOPFJEsHTwpwePIkoiZKXPLcuLINUELcoy0caSmGBOiGUffKXppcJEPkolZwe09weEpwuShkolZwe0IHTw7tm0hko1pdJE9wtOLCbOlBZfsDB51foazk107tJOzcBHINUELcoy0caSmF2ajd25LFZffKXPLF1SmkAwmbUE9wtOLCbOlBZfsd250DtffKXPLF1SmkBHmbUE9wtFmKXPLF1SmkAHmbUE9werIh2cSd29ZhtO5wt8IHTEXhTShkuYdkZaLk10INUEPkoWINerXhUE/htFXkZ4LctLIKJELceShkuYdkZalk10INUELceShkuYdkZbeStffwe0IkuYdkZaJk107tJOzBZFlUtffwe0IhtOPFJE8HTEpwe8PkzEmRJOPFJLIKJELDuw7tJOzBZFlUUffwe0IhtOpFJE8HTEpwe8PkzEmRJOpFJLIKJELDbw7tJOzBZFlDJffwe0IhtOLGUE8HTEXhUE/htILcuLINerXhUE/htFXHtFVkoO5hUE6wtImHtFVkoO5hULIKJELcuL7tJOzBZFlDZffwe0IkoiZKXPLF1SmkBXmbUE9wtOpFjShkuYdkZask10INUEPko0INerXhUE/htFXkZ4LdULIKJELdTShkuYdkZaYk10INUEPko1pdJE8HTEpwe8PkzEmRJOsDB4pwePIko1pdjShkuYdkZaVk10INUEJbo4JKXPLF1SmkbEmbUE9wtOXdUE/k1nYkzPIk0yYkzShkuYdkZaWk10INUELFo0INZfXdUF6wtfidUF7tJOzBZFlFZffwe0IcMxvd3wPkuOpdBazfoysFtEvwerXHeEpKXPLF1SmkaHmbUE9wtILF2ajweXxHtLINZImHtFVkuYlCZLIKJELF2ajKXPLF1SmkbWmbUE9wtkFftw7tJOzBZFlatffwe0IkuYdkZawk10IRJF6kZ4LF1SmkA0mbUEVkzPmRJOzBZFlAZffKXPLF1SmkaAmbUE9wtOzBZFlaZffwe0IkuYdkZaBk10INUEPkufVweXxHtLINZImHtFVkufVhUE6wtO3djShkuYdkZa1k10INUELfZEqHTShkuYdkZa3k10INUELfzShkuYdkZa5k10INUnzfBkzfuwPkuLSHJXZhTShkuYdkZack10INUELGTShkuYdkZAlk10INUEmkUF7tJOzBZFlOtffwe0IkuYdkZask10IRJFvkZ4LF1SmkBWmbUEVkZ8mRJOzBZFlGUffKXpZcbO1FM4IFuklc19ZcbnSCBYlhtwvhtAVhU9lwJXJbtOzBZfFbermbUwSkocvFM1iftL7tm0hKX==alVnRPIq
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
defined | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | bd9e86d1cffc4cd3490c87e7944fb8dc |
Eval Count | 3 |
Decode Time | 152 ms |