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 ${"\x47\x4cO\x42A\x4c\x53"}["\x66\x62\x6f\x68\x77\x65\x64"]="a\x64\x6d\x69n\x69stra\..

Decoded Output download

<?php ${"GLOBALS"}["fbohwed"]="administration";${"GLOBALS"}["abzotgeyfywd"]="sql";${"GLOBALS"}["privvm"]="category";${"GLOBALS"}["ardagfebmew"]="current_user";${"GLOBALS"}["esnprzeyqrfp"]="row";${"GLOBALS"}["ohuhspjmgilc"]="entries";${"GLOBALS"}["dqpiqjk"]="result";${"GLOBALS"}["uevevsz"]="tid";${"GLOBALS"}["eqiglw"]="queryParams";${"GLOBALS"}["trwphtohcv"]="year";${"GLOBALS"}["dmliquhbp"]="cw";${"GLOBALS"}["vvkwkvimat"]="app_strings";${"GLOBALS"}["liriubfwljok"]="message";${"GLOBALS"}["yxwtpn"]="licenceState";if(!defined("sugarEntry")||!sugarEntry)die("Not A Valid Entry Point");require_once("modules/viz_SimpleTimesheet/Utils.php");class viz_SimpleTimesheetController extends SugarController{const PACKAGE_NAME="ViznetSimpleTimesheet";function action_listview(){$qlamgokdy="licenceState";global$current_user,$app_strings;${$qlamgokdy}=Utils::checkActivation();if(!${${"GLOBALS"}["yxwtpn"]}["status"]){${"GLOBALS"}["edfvqilupy"]="licenceState";$odmkeocuy="app_strings";${${"GLOBALS"}["liriubfwljok"]}=${$odmkeocuy}["MSG_VIZSIMPLETIMESHEET_PRODUCT_NOT_ACTIVE"]."<b>".${${"GLOBALS"}["edfvqilupy"]}["message"]."</b>";$this->view_object_map["message"]=${${"GLOBALS"}["liriubfwljok"]};$this->view="activationrequired";}else{$this->view="list";}}function action_detailview(){${"GLOBALS"}["vqygjdp"]="licenceState";global$current_user,$app_strings;${${"GLOBALS"}["yxwtpn"]}=Utils::checkActivation();if(!${${"GLOBALS"}["vqygjdp"]}["status"]){${${"GLOBALS"}["liriubfwljok"]}=${${"GLOBALS"}["vvkwkvimat"]}["MSG_VIZSIMPLETIMESHEET_PRODUCT_NOT_ACTIVE"]."<b>".${${"GLOBALS"}["yxwtpn"]}["message"]."</b>";$this->view_object_map["message"]=${${"GLOBALS"}["liriubfwljok"]};$this->view="activationrequired";}else{$this->view="detail";}}function action_editview(){${"GLOBALS"}["rhrbtikqnc"]="licenceState";${"GLOBALS"}["hvcuxlj"]="licenceState";global$current_user,$app_strings;${${"GLOBALS"}["rhrbtikqnc"]}=Utils::checkActivation();if(!${${"GLOBALS"}["hvcuxlj"]}["status"]){${"GLOBALS"}["sqkwlmn"]="message";${${"GLOBALS"}["sqkwlmn"]}=${${"GLOBALS"}["vvkwkvimat"]}["MSG_VIZSIMPLETIMESHEET_PRODUCT_NOT_ACTIVE"]."<b>".${${"GLOBALS"}["yxwtpn"]}["message"]."</b>";$this->view_object_map["message"]=${${"GLOBALS"}["liriubfwljok"]};$this->view="activationrequired";}else{$pfmqpkkey="year";${${"GLOBALS"}["dmliquhbp"]}=$this->bean->cw==0?null:$this->bean->cw;$pfukryumjhg="queryParams";${${"GLOBALS"}["trwphtohcv"]}=$this->bean->date_from==""?null:date("Y",strtotime($this->bean->date_from));${${"GLOBALS"}["eqiglw"]}=array("module"=>"viz_TimesheetEntry","action"=>"entry","CW"=>${${"GLOBALS"}["dmliquhbp"]},"Year"=>${$pfmqpkkey});if($current_user->id!==$this->bean->assigned_user_id)${$pfukryumjhg}["userId"]=$this->bean->assigned_user_id;SugarApplication::redirect("index.php?".http_build_query(${${"GLOBALS"}["eqiglw"]}));}}function action_getentries(){${"GLOBALS"}["rkixuukopnp"]="tid";${${"GLOBALS"}["rkixuukopnp"]}=$_REQUEST["id"];if(!empty(${${"GLOBALS"}["uevevsz"]})){$ndqjgnvpkfmn="db";$ttyyzcoslf="entries";${"GLOBALS"}["voskpejzugu"]="row";${$ndqjgnvpkfmn}=DBManagerFactory::getInstance();${${"GLOBALS"}["dqpiqjk"]}=$db->query("SELECT Te.id as id, Te.name as name, Te.description as description, Te.hours as hours, Te.report_date as report_date, Uc.hourly_rate_c as hourly_rate from viz_timesheetentry Te JOIN viz_simpletimesheet_viz_timesheetentry_1_c StJ on Te.id = StJ.viz_simpletimesheet_viz_timesheetentry_1viz_timesheetentry_idb LEFT JOIN users_cstm Uc on Uc.id_c = Te.user_id WHERE StJ.viz_simpletimesheet_viz_timesheetentry_1viz_simpletimesheet_ida = '".${${"GLOBALS"}["uevevsz"]}."' AND Te.deleted = 0 AND StJ.deleted=0 order by Te.report_date");${$ttyyzcoslf}=array();while(${${"GLOBALS"}["voskpejzugu"]}=$db->fetchByAssoc(${${"GLOBALS"}["dqpiqjk"]})){$huvpfrmumbv="row";$avhtghkbn="row";${${"GLOBALS"}["ohuhspjmgilc"]}[]=array("id"=>${${"GLOBALS"}["esnprzeyqrfp"]}["id"],"name"=>${${"GLOBALS"}["esnprzeyqrfp"]}["name"],"description"=>${$avhtghkbn}["description"],"hours"=>${${"GLOBALS"}["esnprzeyqrfp"]}["hours"],"report_date"=>${$huvpfrmumbv}["report_date"],"hourly_rate"=>${${"GLOBALS"}["esnprzeyqrfp"]}["hourly_rate"]);}echo json_encode(${${"GLOBALS"}["ohuhspjmgilc"]});exit();}}function action_activation(){global$current_user;if(!is_admin(${${"GLOBALS"}["ardagfebmew"]})){sugar_die($GLOBALS["app_strings"]["ERR_NOT_ADMIN"]);}if($_REQUEST["action_type"]=="save"){$ipprjmesg="category";${${"GLOBALS"}["privvm"]}=self::PACKAGE_NAME."Activation";${"GLOBALS"}["muyoriqmzy"]="sql";$fuqoexp="category";${${"GLOBALS"}["abzotgeyfywd"]}="DELETE FROM config WHERE category = '".${$fuqoexp}."'";$GLOBALS["db"]->query(${${"GLOBALS"}["muyoriqmzy"]});${${"GLOBALS"}["fbohwed"]}=new Administration();if(!empty($_POST["activationkey"]))$administration->saveSetting(${$ipprjmesg},"key",$_POST["activationkey"]);}$this->view="activation";}function action_checkactivation(){echo json_encode(Utils::checkActivation());}} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47\x4cO\x42A\x4c\x53"}["\x66\x62\x6f\x68\x77\x65\x64"]="a\x64\x6d\x69n\x69stra\x74io\x6e";${"\x47\x4c\x4f\x42ALS"}["\x61\x62\x7a\x6f\x74g\x65y\x66\x79\x77\x64"]="sql";${"G\x4c\x4fB\x41\x4c\x53"}["p\x72i\x76\x76\x6d"]="c\x61\x74egory";${"\x47L\x4f\x42\x41\x4c\x53"}["\x61\x72\x64a\x67fe\x62m\x65w"]="cu\x72\x72\x65n\x74_\x75\x73\x65\x72";${"G\x4c\x4f\x42\x41\x4c\x53"}["e\x73n\x70\x72\x7a\x65yq\x72\x66\x70"]="r\x6fw";${"\x47\x4c\x4fB\x41\x4c\x53"}["o\x68\x75\x68\x73p\x6a\x6d\x67\x69\x6c\x63"]="\x65\x6e\x74\x72\x69\x65\x73";${"\x47LO\x42AL\x53"}["d\x71\x70\x69q\x6a\x6b"]="\x72\x65s\x75\x6ct";${"G\x4c\x4f\x42A\x4c\x53"}["\x75\x65\x76\x65v\x73\x7a"]="\x74i\x64";${"\x47LOBA\x4c\x53"}["\x65qi\x67\x6c\x77"]="\x71\x75e\x72\x79\x50\x61\x72\x61\x6ds";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x74\x72\x77p\x68t\x6f\x68\x63\x76"]="y\x65\x61\x72";${"G\x4c\x4f\x42AL\x53"}["\x64\x6d\x6c\x69q\x75hb\x70"]="\x63w";${"GL\x4fB\x41\x4c\x53"}["\x76vk\x77\x6bv\x69\x6d\x61\x74"]="app\x5f\x73\x74ring\x73";${"\x47\x4c\x4fB\x41LS"}["li\x72\x69\x75bf\x77\x6c\x6a\x6f\x6b"]="\x6d\x65\x73\x73\x61ge";${"\x47L\x4fB\x41\x4c\x53"}["\x79\x78\x77\x74pn"]="\x6c\x69c\x65\x6e\x63\x65\x53\x74\x61\x74\x65";if(!defined("\x73ugar\x45\x6e\x74\x72\x79")||!sugarEntry)die("\x4eot\x20\x41 \x56\x61li\x64\x20Ent\x72\x79\x20P\x6fi\x6e\x74");require_once("\x6dod\x75le\x73/viz\x5f\x53\x69\x6dpl\x65\x54\x69\x6d\x65\x73he\x65\x74/\x55tils\x2ep\x68\x70");class viz_SimpleTimesheetController extends SugarController{const PACKAGE_NAME="V\x69\x7anetS\x69\x6dpl\x65Tim\x65sheet";function action_listview(){$qlamgokdy="\x6cice\x6ece\x53t\x61\x74e";global$current_user,$app_strings;${$qlamgokdy}=Utils::checkActivation();if(!${${"\x47L\x4fB\x41\x4c\x53"}["\x79\x78wt\x70n"]}["s\x74\x61\x74\x75\x73"]){${"\x47\x4c\x4fBALS"}["e\x64f\x76\x71\x69lu\x70\x79"]="li\x63\x65\x6ece\x53\x74\x61t\x65";$odmkeocuy="\x61\x70\x70_\x73t\x72\x69\x6e\x67\x73";${${"\x47LOBA\x4c\x53"}["l\x69ri\x75\x62\x66wl\x6aok"]}=${$odmkeocuy}["\x4dSG_VIZ\x53\x49MP\x4cE\x54\x49M\x45\x53HE\x45\x54_PRO\x44U\x43T\x5f\x4e\x4fT\x5f\x41\x43T\x49\x56E"]."\x3cb>".${${"\x47L\x4fB\x41L\x53"}["\x65\x64\x66\x76q\x69l\x75p\x79"]}["me\x73\x73a\x67\x65"]."</b\x3e";$this->view_object_map["\x6d\x65\x73\x73\x61ge"]=${${"G\x4cO\x42\x41\x4c\x53"}["\x6cir\x69\x75\x62\x66\x77\x6c\x6ao\x6b"]};$this->view="a\x63\x74i\x76at\x69o\x6e\x72\x65\x71\x75\x69red";}else{$this->view="l\x69\x73t";}}function action_detailview(){${"\x47L\x4f\x42A\x4c\x53"}["\x76\x71\x79gjd\x70"]="\x6c\x69\x63enceSta\x74\x65";global$current_user,$app_strings;${${"G\x4c\x4fB\x41LS"}["\x79\x78\x77\x74p\x6e"]}=Utils::checkActivation();if(!${${"\x47\x4cOB\x41LS"}["v\x71\x79\x67\x6ad\x70"]}["\x73\x74\x61\x74\x75\x73"]){${${"GL\x4fB\x41\x4c\x53"}["\x6c\x69riu\x62f\x77\x6c\x6a\x6f\x6b"]}=${${"\x47\x4c\x4fB\x41\x4cS"}["v\x76\x6bwkv\x69m\x61\x74"]}["M\x53G_VIZSIMP\x4c\x45\x54I\x4dE\x53H\x45\x45\x54\x5f\x50R\x4f\x44\x55\x43T\x5f\x4e\x4fT_\x41CTIV\x45"]."\x3cb>".${${"\x47LO\x42\x41\x4c\x53"}["\x79\x78\x77\x74\x70\x6e"]}["\x6des\x73age"]."\x3c/\x62>";$this->view_object_map["m\x65\x73s\x61\x67e"]=${${"G\x4c\x4f\x42A\x4c\x53"}["l\x69\x72\x69ub\x66\x77\x6c\x6a\x6fk"]};$this->view="\x61ctiva\x74io\x6erequir\x65\x64";}else{$this->view="det\x61\x69\x6c";}}function action_editview(){${"\x47\x4cO\x42\x41L\x53"}["rh\x72b\x74\x69\x6b\x71\x6e\x63"]="\x6c\x69c\x65\x6e\x63\x65\x53\x74a\x74e";${"GL\x4fB\x41LS"}["\x68\x76\x63\x75\x78\x6cj"]="\x6c\x69\x63\x65n\x63\x65\x53t\x61t\x65";global$current_user,$app_strings;${${"\x47\x4cO\x42\x41LS"}["\x72hr\x62\x74\x69\x6b\x71n\x63"]}=Utils::checkActivation();if(!${${"\x47L\x4f\x42\x41\x4c\x53"}["\x68\x76c\x75\x78l\x6a"]}["st\x61\x74\x75s"]){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x73\x71\x6bwl\x6dn"]="\x6d\x65\x73\x73a\x67e";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["sq\x6b\x77\x6cmn"]}=${${"\x47LO\x42\x41\x4cS"}["\x76\x76kw\x6bvim\x61t"]}["\x4dS\x47_VI\x5aSIMPL\x45TI\x4dESHEE\x54_PR\x4f\x44UCT_N\x4f\x54_A\x43TIV\x45"]."<\x62\x3e".${${"G\x4cO\x42\x41L\x53"}["\x79xwtp\x6e"]}["me\x73sa\x67\x65"]."</b>";$this->view_object_map["m\x65ss\x61ge"]=${${"\x47\x4cO\x42\x41\x4cS"}["\x6c\x69\x72\x69ub\x66wlj\x6f\x6b"]};$this->view="\x61ct\x69v\x61ti\x6fnr\x65quired";}else{$pfmqpkkey="\x79e\x61r";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x64\x6dli\x71\x75\x68b\x70"]}=$this->bean->cw==0?null:$this->bean->cw;$pfukryumjhg="\x71\x75\x65r\x79Pa\x72\x61ms";${${"G\x4cO\x42A\x4c\x53"}["\x74r\x77p\x68\x74o\x68c\x76"]}=$this->bean->date_from==""?null:date("\x59",strtotime($this->bean->date_from));${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x65\x71igl\x77"]}=array("\x6do\x64ul\x65"=>"vi\x7a_Tim\x65\x73h\x65\x65tEn\x74\x72\x79","\x61ctio\x6e"=>"en\x74\x72y","\x43W"=>${${"\x47LOB\x41L\x53"}["d\x6d\x6c\x69\x71\x75\x68bp"]},"Y\x65a\x72"=>${$pfmqpkkey});if($current_user->id!==$this->bean->assigned_user_id)${$pfukryumjhg}["u\x73e\x72\x49d"]=$this->bean->assigned_user_id;SugarApplication::redirect("\x69\x6e\x64\x65\x78.p\x68p?".http_build_query(${${"\x47LO\x42\x41\x4c\x53"}["eqi\x67l\x77"]}));}}function action_getentries(){${"\x47\x4c\x4f\x42A\x4cS"}["rkix\x75uk\x6f\x70np"]="\x74i\x64";${${"\x47L\x4f\x42\x41LS"}["\x72\x6bi\x78u\x75\x6bopn\x70"]}=$_REQUEST["\x69\x64"];if(!empty(${${"\x47\x4c\x4f\x42A\x4c\x53"}["ue\x76ev\x73z"]})){$ndqjgnvpkfmn="\x64b";$ttyyzcoslf="entr\x69e\x73";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x76\x6f\x73\x6bpe\x6azug\x75"]="\x72o\x77";${$ndqjgnvpkfmn}=DBManagerFactory::getInstance();${${"\x47L\x4f\x42\x41\x4c\x53"}["\x64\x71\x70i\x71\x6a\x6b"]}=$db->query("\x53\x45L\x45\x43T \x54\x65.\x69d \x61s\x20\x69d, Te.\x6e\x61me\x20a\x73\x20\x6eam\x65, Te.de\x73\x63riptio\x6e\x20a\x73\x20\x64es\x63\x72\x69\x70t\x69on,\x20\x54\x65.ho\x75\x72s \x61s\x20\x68o\x75\x72\x73,\x20\x54e.\x72\x65\x70\x6f\x72t_dat\x65\x20\x61\x73 \x72e\x70o\x72t\x5fd\x61\x74e,\x20\x55\x63\x2e\x68\x6f\x75r\x6c\x79\x5fra\x74\x65\x5f\x63 as ho\x75r\x6cy_rate\x20\x66\x72om\x20v\x69\x7a_\x74\x69m\x65sh\x65eten\x74\x72y\x20\x54e JOI\x4e \x76i\x7a\x5fsim\x70l\x65t\x69\x6de\x73\x68\x65\x65t_\x76iz_t\x69m\x65\x73h\x65e\x74\x65\x6et\x72y\x5f1_c \x53tJ \x6fn\x20\x54e.\x69d\x20= \x53\x74\x4a\x2eviz_\x73i\x6d\x70\x6c\x65\x74\x69\x6d\x65\x73h\x65e\x74\x5fv\x69\x7a_t\x69\x6desh\x65e\x74\x65\x6e\x74\x72\x79\x5f\x31v\x69z_t\x69mes\x68\x65\x65t\x65n\x74\x72y_idb \x4c\x45FT\x20\x4aOI\x4e\x20u\x73e\x72\x73_c\x73tm\x20U\x63\x20o\x6e\x20\x55c\x2e\x69\x64\x5f\x63 =\x20Te\x2e\x75\x73er_i\x64 WHERE S\x74\x4a.viz_\x73i\x6dpl\x65t\x69m\x65sh\x65\x65t_vi\x7a_t\x69m\x65\x73\x68\x65e\x74\x65\x6et\x72\x79_\x31\x76iz_\x73im\x70l\x65ti\x6de\x73he\x65t\x5fida\x20=\x20'".${${"GLO\x42\x41\x4c\x53"}["\x75\x65\x76e\x76\x73z"]}."' A\x4eD Te.\x64\x65\x6c\x65\x74ed \x3d\x20\x30\x20AN\x44 S\x74J.de\x6c\x65\x74ed=0\x20o\x72der\x20\x62\x79\x20\x54e\x2e\x72\x65p\x6f\x72t_\x64a\x74e");${$ttyyzcoslf}=array();while(${${"G\x4cO\x42A\x4c\x53"}["v\x6fs\x6bp\x65\x6a\x7a\x75\x67\x75"]}=$db->fetchByAssoc(${${"\x47L\x4fB\x41L\x53"}["\x64q\x70\x69q\x6ak"]})){$huvpfrmumbv="\x72\x6fw";$avhtghkbn="\x72\x6f\x77";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["oh\x75\x68\x73\x70\x6a\x6d\x67i\x6c\x63"]}[]=array("\x69\x64"=>${${"G\x4cOBA\x4cS"}["\x65\x73n\x70\x72\x7a\x65\x79qr\x66p"]}["i\x64"],"nam\x65"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65s\x6e\x70\x72\x7a\x65y\x71r\x66p"]}["\x6ea\x6de"],"\x64\x65sc\x72\x69pt\x69on"=>${$avhtghkbn}["\x64e\x73cri\x70t\x69\x6f\x6e"],"\x68o\x75\x72\x73"=>${${"\x47\x4cO\x42\x41LS"}["\x65s\x6e\x70r\x7a\x65\x79\x71\x72\x66\x70"]}["\x68ours"],"re\x70o\x72t\x5f\x64ate"=>${$huvpfrmumbv}["r\x65p\x6f\x72\x74\x5fdate"],"hour\x6cy\x5fr\x61te"=>${${"G\x4c\x4f\x42\x41LS"}["\x65\x73n\x70\x72\x7a\x65yqr\x66\x70"]}["\x68ourl\x79_\x72\x61t\x65"]);}echo json_encode(${${"G\x4c\x4fBA\x4cS"}["o\x68\x75h\x73\x70\x6amg\x69\x6cc"]});exit();}}function action_activation(){global$current_user;if(!is_admin(${${"\x47\x4c\x4f\x42A\x4c\x53"}["ar\x64\x61gf\x65\x62m\x65\x77"]})){sugar_die($GLOBALS["\x61\x70\x70_s\x74r\x69\x6e\x67\x73"]["ERR\x5f\x4eOT_ADM\x49\x4e"]);}if($_REQUEST["\x61\x63\x74\x69o\x6e\x5fty\x70e"]=="\x73ave"){$ipprjmesg="\x63a\x74\x65\x67\x6fr\x79";${${"\x47\x4c\x4f\x42\x41\x4cS"}["pr\x69v\x76\x6d"]}=self::PACKAGE_NAME."\x41\x63\x74\x69\x76\x61tio\x6e";${"\x47L\x4f\x42A\x4cS"}["mu\x79\x6fr\x69\x71\x6d\x7a\x79"]="\x73q\x6c";$fuqoexp="\x63\x61te\x67or\x79";${${"\x47\x4cO\x42A\x4c\x53"}["\x61\x62zot\x67\x65y\x66\x79\x77\x64"]}="\x44\x45\x4cETE \x46\x52\x4fM\x20\x63onf\x69g W\x48E\x52\x45 \x63\x61teg\x6fry = '".${$fuqoexp}."'";$GLOBALS["d\x62"]->query(${${"G\x4c\x4f\x42AL\x53"}["\x6du\x79\x6fr\x69qm\x7ay"]});${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x66\x62\x6fhw\x65\x64"]}=new Administration();if(!empty($_POST["a\x63\x74\x69v\x61\x74i\x6f\x6e\x6b\x65y"]))$administration->saveSetting(${$ipprjmesg},"\x6b\x65y",$_POST["ac\x74ivat\x69\x6f\x6ekey"]);}$this->view="\x61\x63ti\x76\x61t\x69\x6f\x6e";}function action_checkactivation(){echo json_encode(Utils::checkActivation());}}
?>

Function Calls

defined 1

Variables

GLOBALS [{'key': 'fbohwed', 'value': 'administration'}, {'key': 'abzotgeyfywd', 'value': 'sql'}, {'key': 'privvm', 'value': 'category'}, {'key': 'ardagfebmew', 'value': 'current_user'}, {'key': 'esnprzeyqrfp', 'value': 'row'}, {'key': 'ohuhspjmgilc', 'value': 'entries'}, {'key': 'dqpiqjk', 'value': 'result'}, {'key': 'uevevsz', 'value': 'tid'}, {'key': 'eqiglw', 'value': 'queryParams'}, {'key': 'trwphtohcv', 'value': 'year'}, {'key': 'dmliquhbp', 'value': 'cw'}, {'key': 'vvkwkvimat', 'value': 'app_strings'}, {'key': 'liriubfwljok', 'value': 'message'}, {'key': 'yxwtpn', 'value': 'licenceState'}]

Stats

MD5 cba545d381290c7006804209417ff899
Eval Count 0
Decode Time 102 ms