Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
public function SaveScimRoles(array &$form, FormStateInterface $form_state) { ..
Decoded Output download
<? public function SaveScimRoles(array &$form, FormStateInterface $form_state)
{
$Gy = $form_state->getValues();
$uU = $Gy["mo_up_scim_role_mapping_enable"];
$this->config_factory->set("mo_up_scim_role_mapping_enable", $uU)->save();
$ix = $Gy["mo_up_scim_default_role"];
$this->config_factory->set("mo_up_scim_default_role", $ix)->save();
$jd = trim($Gy["mo_up_scim_role_attribute"]);
$this->config_factory->set("mo_up_scim_role_attribute", $jd)->save();
$zu = $Gy["mo_up_scim_roles"];
$Xc = array();
if (!(sizeof($zu) === 1)) {
goto Z9;
}
$Xc = $zu;
Z9:
foreach ($zu as $Fz) {
if (!($Fz["machine_name"] != '' && $Fz["attribute_name"] != '')) {
goto wA;
}
$Xc[$Fz["id"]] = $Fz;
wA:
uh:
}
vf:
$this->config_factory->set("miniorange_scim_roles_map_arr", json_encode($Xc))->save();
\Drupal::messenger()->addMessage(t("Role Mapping successfully saved"), "status");
} ?>
Did this file decode correctly?
Original Code
public function SaveScimRoles(array &$form, FormStateInterface $form_state)
{
$Gy = $form_state->getValues();
$uU = $Gy["\155\157\137\165\x70\x5f\x73\143\151\x6d\137\162\x6f\154\145\137\155\x61\160\x70\x69\x6e\147\137\145\156\x61\142\154\x65"];
$this->config_factory->set("\155\x6f\x5f\165\160\137\x73\x63\x69\155\137\162\x6f\154\x65\137\155\x61\x70\160\x69\156\147\137\x65\156\141\142\x6c\145", $uU)->save();
$ix = $Gy["\x6d\x6f\137\x75\160\137\x73\143\151\155\x5f\144\145\146\141\165\154\164\x5f\x72\157\x6c\145"];
$this->config_factory->set("\155\x6f\x5f\x75\x70\137\163\x63\151\x6d\x5f\x64\x65\x66\141\165\x6c\x74\x5f\x72\157\x6c\x65", $ix)->save();
$jd = trim($Gy["\x6d\x6f\x5f\165\160\137\163\143\x69\x6d\x5f\162\x6f\x6c\x65\137\x61\164\x74\x72\151\142\x75\164\145"]);
$this->config_factory->set("\155\x6f\137\165\160\137\x73\143\x69\155\137\162\157\154\x65\137\141\x74\164\x72\x69\142\x75\x74\x65", $jd)->save();
$zu = $Gy["\x6d\157\137\165\160\137\163\143\x69\x6d\x5f\162\157\x6c\145\163"];
$Xc = array();
if (!(sizeof($zu) === 1)) {
goto Z9;
}
$Xc = $zu;
Z9:
foreach ($zu as $Fz) {
if (!($Fz["\155\x61\x63\x68\x69\x6e\x65\x5f\156\141\155\x65"] != '' && $Fz["\x61\164\x74\162\x69\x62\x75\164\x65\137\156\141\155\x65"] != '')) {
goto wA;
}
$Xc[$Fz["\x69\x64"]] = $Fz;
wA:
uh:
}
vf:
$this->config_factory->set("\x6d\x69\156\151\157\x72\x61\156\x67\145\137\163\x63\x69\x6d\x5f\162\157\154\145\x73\137\x6d\141\x70\137\141\162\162", json_encode($Xc))->save();
\Drupal::messenger()->addMessage(t("\x52\157\x6c\145\40\x4d\x61\160\160\151\x6e\147\40\163\165\x63\x63\x65\163\x73\x66\165\154\x6c\171\x20\163\x61\x76\145\x64"), "\163\164\x61\164\165\163");
}
Function Calls
None |
Stats
MD5 | 23164bdeb68e4bbaedd86379c97ef628 |
Eval Count | 0 |
Decode Time | 39 ms |