Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
function getUserFormData($a0,$u1,$c2){$n4=manageUsersForms(DTK_BOT_SESSION,"search",null);..
Decoded Output download
<? function getUserFormData($a0,$u1,$c2){$n4=manageUsersForms(DTK_BOT_SESSION,"search",null);if($n4[0]==-1){return(array(-1,__LINE__,"ERROR with manageUsersForms: ".$n4[0].",".$n4[1].",".$n4[2]));}if($n4[0]==0){return(null);}$c5=$n4[1];$b6=$c5[0]["key"];$i7="admin/forms/".$b6.".xml";$g8=array("chapters"=>array());$v9=new DomDocument();$v9-> Load($i7);switch($u1){case "preferences":$e10=array();$x11=$v9->getElementsByTagName("preference");foreach($x11 as $y12){if(!is_null($y12)){$c13=(string)$y12->getAttribute("name");$j14=(string)$y12->getAttribute("type");switch($j14){case "float":$k15=(float)$y12->nodeValue;break;case "int":$k15=(int)$y12->nodeValue;break;default:$k15=(string)$y12->nodeValue;}$e10[$c13]=$k15;}}return(array(1,$e10));}$r17=$v9->getElementsByTagName("chapter");$v18=0;foreach($r17 as $i19){$v18++;if(!is_null($c2)){if($c2!=$v18){continue;}}$g20=array("questions"=>array());$q21=(int)$i19->getAttribute("number");$j22=$i19->getElementsByTagName("question");foreach($j22 as $o23){$q24=(int)$o23->getAttribute("qid");$z25=(int)$o23->getAttribute("type");$j26=(int)$o23->getAttribute("obligatory");$h27=$o23->nodeValue;array_push($g20["questions"],array("qid"=>$q24,"type"=>$z25,"obligatory"=>$j26,"answers"=>$h27));}array_push($g8["chapters"],$g20);}return(array(1,$g8));} ?>
Did this file decode correctly?
Original Code
function getUserFormData($a0,$u1,$c2){$n4=manageUsersForms(DTK_BOT_SESSION,"search",null);if($n4[0]==-1){return(array(-1,__LINE__,"ERROR with manageUsersForms: ".$n4[0].",".$n4[1].",".$n4[2]));}if($n4[0]==0){return(null);}$c5=$n4[1];$b6=$c5[0]["key"];$i7="admin/forms/".$b6.".xml";$g8=array("chapters"=>array());$v9=new DomDocument();$v9-> Load($i7);switch($u1){case "preferences":$e10=array();$x11=$v9->getElementsByTagName("preference");foreach($x11 as $y12){if(!is_null($y12)){$c13=(string)$y12->getAttribute("name");$j14=(string)$y12->getAttribute("type");switch($j14){case "float":$k15=(float)$y12->nodeValue;break;case "int":$k15=(int)$y12->nodeValue;break;default:$k15=(string)$y12->nodeValue;}$e10[$c13]=$k15;}}return(array(1,$e10));}$r17=$v9->getElementsByTagName("chapter");$v18=0;foreach($r17 as $i19){$v18++;if(!is_null($c2)){if($c2!=$v18){continue;}}$g20=array("questions"=>array());$q21=(int)$i19->getAttribute("number");$j22=$i19->getElementsByTagName("question");foreach($j22 as $o23){$q24=(int)$o23->getAttribute("qid");$z25=(int)$o23->getAttribute("type");$j26=(int)$o23->getAttribute("obligatory");$h27=$o23->nodeValue;array_push($g20["questions"],array("qid"=>$q24,"type"=>$z25,"obligatory"=>$j26,"answers"=>$h27));}array_push($g8["chapters"],$g20);}return(array(1,$g8));}
Function Calls
None |
Stats
MD5 | 7acfc44c66322db5ff8f7c37b9d66961 |
Eval Count | 0 |
Decode Time | 59 ms |