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 include_once(ROOT_FOLDER."inc/std_function.inc.php"); function buildMenu(){ $u3254..

Decoded Output download

<?php 
 include_once(ROOT_FOLDER."inc/std_function.inc.php"); function buildMenu(){ $u32545 = array(); $u32540 = array(); $u32550 = array(); $u31940["NameMenu"] = array(); $u31940["NameLink"] = array(); $u31940["TargetLink"] = array(); if ($_SESSION["FO_SYS_Right_Level"]==5){ $u31940 = addGroupLeaderMenu($_SESSION["ID_User"],$u31940); } foreach ($_SESSION["Rights"] as $u29340 => $u32760){ if ($u32760["MenuLevel"]=="" || $u32760["MenuLevel"]==0){ continue; } if(strlen($u32760["MenuLevel"])%2) { $u28615 = "0".$u32760["MenuLevel"]; }else{ $u28615 = $u32760["MenuLevel"]; } $u28590 = str_split($u28615,2); $u28845 = split(';', $u32760["Template"]); if (trim($u28845[0]) == "noblock_url"){ $u31015 = trim($u32760["ColLinkAddress"]); }elseif(trim($u28845[0]) == "noblock_url_relative"){ $u31015 = ROOT_URI.trim($u32760["ColLinkAddress"]); }else{ $u31015 = constant(trim($u28845[0])).$u29340; } for ($u30905 = sizeof($u28590); $u30905 >= 0 ; $u30905--){ if ($u30905 == sizeof($u28590)){  
 if(defined($u32760["Title"])){ 	$u32760["Title"] = constant($u32760["Title"]);} 
 $u32545 = array("I_".$u28590[$u30905]*1 => $u32760["Title"]);  
 $u32540 = array("I_".$u28590[$u30905]*1 => $u31015); $u32550 = array("I_".$u28590[$u30905]*1 => ""); }else{ $u32545 = array("I_".$u28590[$u30905]*1 => $u32545); $u32540 = array("I_".$u28590[$u30905]*1 => $u32540); $u32550 = array("I_".$u28590[$u30905]*1 => $u32550); } } $u31940["NameMenu"] = array_merge_recursive($u32545, $u31940["NameMenu"]); $u31940["NameLink"] = array_merge_recursive($u32540, $u31940["NameLink"]); $u31940["TargetLink"] = array_merge_recursive($u32550, $u31940["TargetLink"]); } recusive_sort(&$u31940); return $u31940; } function addGroupLeaderMenu($u28500,$u31125, $u28975 = "Name"){ if ($_SESSION["SUB_USER"]==""){ $_SESSION["SUB_USER"] = getRelated($u28500, 1, SYS_Var_GroupLeader); } $u31845 = $_SESSION["SUB_USER"]; $u29375 = 1; $u31125["NameMenu"]["GL"][0] = "Group manager"; $u31125["NameLink"]["GL"][0] = "?SUB_USER="; $u31125["TargetLink"]["GL"][0]= "_self"; foreach ($u31845 as $u30915 => $u32760) { $u31125["NameMenu"]["GL"][$u29375] = $u32760["Name"]." (".$u32760["ID_Person2"].")"; $u31125["NameLink"]["GL"][$u29375] = "?SUB_USER=".$u32760["ID_Person2"]; $u31125["TargetLink"]["GL"][$u29375] = "_self"; $u29375++; } return $u31125; } ?>

Did this file decode correctly?

Original Code

<?php
 include_once(ROOT_FOLDER."inc/std_function.inc.php"); function buildMenu(){ $u32545 = array(); $u32540 = array(); $u32550 = array(); $u31940["NameMenu"] = array(); $u31940["NameLink"] = array(); $u31940["TargetLink"] = array(); if ($_SESSION["FO_SYS_Right_Level"]==5){ $u31940 = addGroupLeaderMenu($_SESSION["ID_User"],$u31940); } foreach ($_SESSION["Rights"] as $u29340 => $u32760){ if ($u32760["MenuLevel"]=="" || $u32760["MenuLevel"]==0){ continue; } if(strlen($u32760["MenuLevel"])%2) { $u28615 = "0".$u32760["MenuLevel"]; }else{ $u28615 = $u32760["MenuLevel"]; } $u28590 = str_split($u28615,2); $u28845 = split(';', $u32760["Template"]); if (trim($u28845[0]) == "noblock_url"){ $u31015 = trim($u32760["ColLinkAddress"]); }elseif(trim($u28845[0]) == "noblock_url_relative"){ $u31015 = ROOT_URI.trim($u32760["ColLinkAddress"]); }else{ $u31015 = constant(trim($u28845[0])).$u29340; } for ($u30905 = sizeof($u28590); $u30905 >= 0 ; $u30905--){ if ($u30905 == sizeof($u28590)){ 
 if(defined($u32760["Title"])){ 	$u32760["Title"] = constant($u32760["Title"]);}
 $u32545 = array("I_".$u28590[$u30905]*1 => $u32760["Title"]); 
 $u32540 = array("I_".$u28590[$u30905]*1 => $u31015); $u32550 = array("I_".$u28590[$u30905]*1 => ""); }else{ $u32545 = array("I_".$u28590[$u30905]*1 => $u32545); $u32540 = array("I_".$u28590[$u30905]*1 => $u32540); $u32550 = array("I_".$u28590[$u30905]*1 => $u32550); } } $u31940["NameMenu"] = array_merge_recursive($u32545, $u31940["NameMenu"]); $u31940["NameLink"] = array_merge_recursive($u32540, $u31940["NameLink"]); $u31940["TargetLink"] = array_merge_recursive($u32550, $u31940["TargetLink"]); } recusive_sort(&$u31940); return $u31940; } function addGroupLeaderMenu($u28500,$u31125, $u28975 = "Name"){ if ($_SESSION["SUB_USER"]==""){ $_SESSION["SUB_USER"] = getRelated($u28500, 1, SYS_Var_GroupLeader); } $u31845 = $_SESSION["SUB_USER"]; $u29375 = 1; $u31125["NameMenu"]["GL"][0] = "Group manager"; $u31125["NameLink"]["GL"][0] = "?SUB_USER="; $u31125["TargetLink"]["GL"][0]= "_self"; foreach ($u31845 as $u30915 => $u32760) { $u31125["NameMenu"]["GL"][$u29375] = $u32760["Name"]." (".$u32760["ID_Person2"].")"; $u31125["NameLink"]["GL"][$u29375] = "?SUB_USER=".$u32760["ID_Person2"]; $u31125["TargetLink"]["GL"][$u29375] = "_self"; $u29375++; } return $u31125; } ?>

Function Calls

None

Variables

None

Stats

MD5 62c83be8ca509beb67109e57d1690be6
Eval Count 0
Decode Time 103 ms