function set_permissions($id_profile, $tabs)
 {
     ${"GLOBALS"}["owuxtjj"] = "classes";
     $ersxjahvsivr = "classes";
     ${"GLOBALS"}["srcwor"] = "tabs";
     ${$ersxjahvsivr} = array_keys(${${"GLOBALS"}["srcwor"]});
     foreach (${${"GLOBALS"}["owuxtjj"]} as ${${"GLOBALS"}["lopcfvl"]}) {
         ${"GLOBALS"}["vlfiyelsex"] = "class";
         $mrgvvljcigx = "classname";
         ${"GLOBALS"}["lawbeotfpxg"] = "class";
         $lyzrjlnwfb = "tabs";
         ${"GLOBALS"}["foldgqbgy"] = "class";
         $uzsnnkxp = "class";
         $qnleejtf = "class";
         ${$mrgvvljcigx} = ${${"GLOBALS"}["lopcfvl"]};
         $edqwbpr = "tabs";
         $monvoyijl = "id_profile";
         ${"GLOBALS"}["ntxxbxbjdld"] = "tabs";
         if (isset(${$lyzrjlnwfb}[${$uzsnnkxp}]["new_class"]) and !empty(${${"GLOBALS"}["rzchhrej"]}[${${"GLOBALS"}["vlfiyelsex"]}]["new_class"])) {
             ${${"GLOBALS"}["uhijycecvb"]} = ${${"GLOBALS"}["rzchhrej"]}[${$qnleejtf}]["new_class"];
         }
         AgileInstaller::update_access(${$monvoyijl}, ${${"GLOBALS"}["uhijycecvb"]}, ${$edqwbpr}[${${"GLOBALS"}["lopcfvl"]}]["view"], ${${"GLOBALS"}["rzchhrej"]}[${${"GLOBALS"}["lawbeotfpxg"]}]["edit"], ${${"GLOBALS"}["ntxxbxbjdld"]}[${${"GLOBALS"}["foldgqbgy"]}]["add"], ${${"GLOBALS"}["rzchhrej"]}[${${"GLOBALS"}["lopcfvl"]}]["delete"]);
     }
 }