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 use Drupal\Core\Database\Database; use Drupal\Core\Utility\Error; /** * Maj..
Decoded Output download
<?php
use Drupal\Core\Database\Database;
use Drupal\Core\Utility\Error;
/**
* Major updates. Multiple IdP Support Added, UI/UX of the module improved, Configurable option to show or hide login URL on login page, Replaced all tables in module with Drupal Ajax tables
*/
function miniorange_saml_post_update_1()
{
\Drupal::configFactory()->getEditable("miniorange_saml.settings")->set("miniorange_saml_enterprise_major_upgrade", 1)->save();
$J7 = getSchema();
$Hm = \Drupal::database();
$xG = Database::getConnection()->schema();
$MU = \Drupal::service("module_handler")->getName("miniorange_saml");
if (!$xG->tableExists("miniorange_saml_idpdata")) {
goto nu;
}
$yl = ["mo_saml_custom_attrs_map_arr", "mo_saml_role_mapping_arr", "mo_saml_profile_mapping_attributes"];
foreach ($yl as $J7) {
$xG->changeField("miniorange_saml_idpdata", $J7, $J7, ["type" => "blob", "size" => "big"]);
IH:
}
uG:
goto gS;
nu:
$xG->createTable("miniorange_saml_idpdata", $J7);
$Ui = getPreviousConfiguration();
try {
$Hm->insert("miniorange_saml_idpdata")->fields($Ui)->execute();
} catch (\Exception $ID) {
\Drupal::logger("miniorange_saml")->error($ID);
return t("Something went wrong while updating the %module_name module.", ["%module_name" => $MU]);
}
gS:
$FP = \Drupal::configFactory()->getEditable("miniorange_saml.settings");
$FP->set("miniorange_saml_default_idp_index", 0)->save();
return t("%module_name module has been updated successfully.", ["%module_name" => $MU]);
}
function getSchema()
{
return array("description" => t("Stores Identity Providers information"), "fields" => array("id" => array("type" => "serial", "unsigned" => TRUE, "not null" => TRUE), "mo_sp_idp_name" => array("type" => "text", "not null" => TRUE), "mo_sp_idp_issuer" => array("type" => "varchar", "length" => 254, "not null" => TRUE), "mo_sp_nameid_format" => array("type" => "varchar", "length" => 254, "not null" => TRUE), "mo_sp_sso_binding_type" => array("type" => "varchar", "length" => 15, "default" => "HTTP-Redirect", "not null" => TRUE), "mo_sp_login_url" => array("type" => "varchar", "length" => 254, "not null" => TRUE), "mo_sp_slo_binding_type" => array("type" => "varchar", "length" => 15, "default" => "HTTP-Redirect", "not null" => TRUE), "mo_sp_logout_url" => array("type" => "varchar", "length" => 254), "mo_sp_cert" => array("type" => "varchar", "length" => 4096, "not null" => FALSE), "mo_sp_sign_algorithm" => array("type" => "varchar", "length" => 254, "not null" => TRUE), "mo_sp_sign_sso_and_slo_request" => array("type" => "int", "length" => 20, "default" => 0, "not null" => TRUE), "mo_sp_enable_login_with_saml" => array("type" => "int", "length" => 20, "default" => 0, "not null" => TRUE), "mo_sp_send_slo_in_iframe" => array("type" => "int", "length" => 20, "default" => 0, "not null" => TRUE), "mo_sp_character_encoding" => array("type" => "int", "length" => 20, "default" => 0, "not null" => TRUE), "mo_sp_fetch_metadata_after_some_time" => array("type" => "int", "length" => 20, "default" => 0, "not null" => TRUE), "mo_saml_metadata_url" => array("type" => "varchar", "length" => 254), "mo_saml_default_domain" => array("type" => "varchar", "length" => 254), "mo_saml_idp_guest_account" => array("type" => "varchar", "length" => 254), "mo_saml_username_attribute" => array("type" => "varchar", "length" => 254, "default" => "NameID", "not null" => FALSE), "mo_saml_email_attribute" => array("type" => "varchar", "length" => 254, "default" => "NameID", "not null" => FALSE), "mo_saml_custom_attrs_map_arr" => array("type" => "blob", "size" => "big", "not null" => FALSE), "mo_saml_enable_rolemapping" => array("type" => "int", "length" => 20, "default" => 0, "not null" => TRUE), "mo_saml_disable_role_update" => array("type" => "int", "length" => 20, "default" => 0, "not null" => TRUE), "mo_saml_default_role" => array("type" => "varchar", "length" => 254, "not null" => FALSE), "mo_saml_role_attr_name" => array("type" => "varchar", "length" => 254, "not null" => FALSE), "mo_saml_role_mapping_arr" => array("type" => "blob", "size" => "big", "not null" => FALSE), "mo_saml_enable_profile_mapping" => array("type" => "int", "length" => 20, "default" => 0, "not null" => TRUE), "mo_saml_profile_type" => array("type" => "varchar", "length" => 1024, "not null" => FALSE), "mo_saml_profile_mapping_attributes" => array("type" => "blob", "size" => "big", "not null" => FALSE), "mo_sp_show_login_url" => array("type" => "int", "length" => 20, "default" => 0, "not null" => TRUE), "mo_sp_login_link_text" => array("type" => "varchar", "length" => 1024)), "primary key" => array("id"));
}
function getPreviousConfiguration()
{
$yN = \Drupal::config("miniorange_saml.settings");
return ["id" => 1, "mo_sp_idp_name" => $yN->get("miniorange_saml_idp_name"), "mo_sp_idp_issuer" => $yN->get("miniorange_saml_idp_issuer"), "mo_sp_nameid_format" => $yN->get("miniorange_saml_nameid_format"), "mo_sp_sso_binding_type" => $yN->get("miniorange_saml_http_binding"), "mo_sp_login_url" => $yN->get("miniorange_saml_idp_login_url"), "mo_sp_slo_binding_type" => $yN->get("miniorange_saml_slo_http_binding"), "mo_sp_logout_url" => $yN->get("miniorange_saml_idp_logout_url"), "mo_sp_cert" => $yN->get("miniorange_saml_idp_certificate"), "mo_sp_sign_algorithm" => $yN->get("security_signature_algorithm"), "mo_sp_sign_sso_and_slo_request" => (int) $yN->get("miniorange_saml_request_signed") ?? 0, "mo_sp_enable_login_with_saml" => (int) $yN->get("miniorange_saml_enable_login") ?? 0, "mo_sp_fetch_metadata_after_some_time" => (int) $yN->get("miniorange_saml_fetch_metadata_after_some_time") ?? 0, "mo_saml_metadata_url" => $yN->get("miniorange_saml_meta_data_url"), "mo_saml_idp_guest_account" => '', "mo_saml_default_domain" => '', "mo_sp_send_slo_in_iframe" => (int) $yN->get("miniorange_saml_send_slo_in_iframe") ?? 0, "mo_sp_character_encoding" => (int) $yN->get("miniorange_saml_character_encoding") ?? 0, "mo_sp_show_login_url" => (int) $yN->get("miniorange_saml_enable_login") ?? 1, "mo_sp_login_link_text" => "Login with " . $yN->get("miniorange_saml_idp_name"), "mo_saml_username_attribute" => $yN->get("miniorange_saml_username_attribute"), "mo_saml_email_attribute" => $yN->get("miniorange_saml_email_attribute"), "mo_saml_custom_attrs_map_arr" => $yN->get("miniorange_saml_custom_attrs_map_arr"), "mo_saml_enable_rolemapping" => $yN->get("miniorange_saml_enable_rolemapping") ?? 0, "mo_saml_disable_role_update" => (int) $yN->get("miniorange_saml_disable_role_update") ?? 0, "mo_saml_default_role" => $yN->get("miniorange_saml_default_role"), "mo_saml_role_attr_name" => $yN->get("miniorange_saml_role_attr_name"), "mo_saml_role_mapping_arr" => $yN->get("miniorange_saml_role_mapping_arr"), "mo_saml_enable_profile_mapping" => (int) $yN->get("miniorange_saml_enable_profile_mapping") ?? 0, "mo_saml_profile_mapping_attributes" => $yN->get("miniorange_saml_profile_mapping_arr"), "mo_saml_profile_type" => $yN->get("miniorange_saml_profile_entity_type")];
}
/**
* Separator parameter added in role mapping.
*/
function miniorange_saml_post_update_2()
{
$bv = array("type" => "varchar", "length" => 254, "not null" => FALSE);
$xG = Database::getConnection()->schema();
try {
$xG->addField("miniorange_saml_idpdata", "miniorange_saml_role_attr_separator", $bv);
return t("Separator parameter added in Role mapping.");
} catch (\Exception $ID) {
$Yt = Error::decodeException($ID);
$mq = "while updating the table " . "<code>miniorange_saml_idpdata</code>";
\Drupal::logger("miniorange_saml")->critical("%type encountered {$mq}: @message in %function (line %line of %file).", $Yt);
return t("Something went wrong {$mq}. Check the logs for details.");
}
}
?>
Did this file decode correctly?
Original Code
<?php
use Drupal\Core\Database\Database;
use Drupal\Core\Utility\Error;
/**
* Major updates. Multiple IdP Support Added, UI/UX of the module improved, Configurable option to show or hide login URL on login page, Replaced all tables in module with Drupal Ajax tables
*/
function miniorange_saml_post_update_1()
{
\Drupal::configFactory()->getEditable("\x6d\x69\156\151\x6f\x72\141\156\x67\x65\x5f\x73\x61\155\x6c\x2e\x73\145\x74\x74\x69\x6e\147\x73")->set("\x6d\x69\156\151\x6f\162\x61\156\147\145\x5f\163\x61\x6d\154\x5f\x65\156\164\145\x72\x70\162\151\163\x65\137\x6d\x61\x6a\x6f\x72\x5f\x75\x70\147\162\x61\x64\145", 1)->save();
$J7 = getSchema();
$Hm = \Drupal::database();
$xG = Database::getConnection()->schema();
$MU = \Drupal::service("\155\157\144\165\154\x65\137\x68\141\156\x64\x6c\145\x72")->getName("\155\151\156\x69\x6f\162\x61\156\x67\145\137\x73\141\x6d\x6c");
if (!$xG->tableExists("\x6d\151\156\x69\x6f\x72\141\x6e\147\x65\137\x73\141\155\x6c\x5f\151\144\160\144\x61\x74\141")) {
goto nu;
}
$yl = ["\x6d\x6f\x5f\163\141\155\154\137\x63\165\x73\x74\x6f\155\137\141\164\164\x72\x73\137\155\141\x70\x5f\x61\x72\x72", "\155\x6f\x5f\x73\x61\155\154\137\162\x6f\x6c\145\137\x6d\141\160\x70\x69\156\x67\137\141\x72\162", "\155\157\x5f\163\x61\155\x6c\137\160\x72\x6f\146\x69\x6c\145\x5f\155\x61\x70\x70\151\156\x67\x5f\x61\164\164\x72\x69\x62\x75\164\145\x73"];
foreach ($yl as $J7) {
$xG->changeField("\155\x69\x6e\x69\157\162\141\156\147\145\137\x73\x61\x6d\154\x5f\x69\144\x70\144\141\164\141", $J7, $J7, ["\x74\x79\160\145" => "\142\154\157\x62", "\163\151\172\x65" => "\142\x69\x67"]);
IH:
}
uG:
goto gS;
nu:
$xG->createTable("\x6d\151\x6e\x69\x6f\x72\141\156\147\145\137\x73\x61\155\154\137\151\x64\x70\144\141\164\x61", $J7);
$Ui = getPreviousConfiguration();
try {
$Hm->insert("\155\x69\156\x69\x6f\162\x61\156\147\x65\x5f\163\x61\155\154\x5f\151\144\x70\144\x61\x74\141")->fields($Ui)->execute();
} catch (\Exception $ID) {
\Drupal::logger("\x6d\x69\x6e\151\157\x72\x61\x6e\x67\145\x5f\163\141\155\154")->error($ID);
return t("\x53\157\x6d\145\x74\x68\151\156\147\x20\167\145\x6e\164\40\x77\162\157\x6e\x67\40\x77\x68\x69\x6c\145\40\x75\x70\144\141\164\151\x6e\147\40\x74\150\x65\40\45\155\157\144\165\x6c\145\137\x6e\x61\155\145\40\x6d\157\x64\165\154\x65\56", ["\x25\155\x6f\x64\x75\154\x65\x5f\x6e\x61\155\x65" => $MU]);
}
gS:
$FP = \Drupal::configFactory()->getEditable("\x6d\151\x6e\x69\157\x72\141\156\147\145\137\163\x61\x6d\154\56\163\x65\x74\164\x69\x6e\x67\x73");
$FP->set("\x6d\151\x6e\151\157\x72\x61\156\147\x65\x5f\163\141\x6d\x6c\x5f\144\145\x66\x61\x75\x6c\164\137\151\x64\x70\137\151\x6e\x64\x65\170", 0)->save();
return t("\45\155\x6f\x64\x75\154\145\x5f\156\141\155\145\40\155\x6f\144\x75\154\x65\40\150\x61\163\x20\142\x65\145\156\40\x75\x70\144\141\x74\x65\x64\x20\163\x75\x63\x63\x65\x73\163\x66\165\x6c\154\171\x2e", ["\45\155\157\x64\x75\154\x65\137\156\141\x6d\x65" => $MU]);
}
function getSchema()
{
return array("\x64\x65\x73\143\x72\151\160\164\151\x6f\156" => t("\123\164\x6f\162\145\x73\x20\x49\144\x65\x6e\164\x69\x74\171\40\x50\162\x6f\166\151\144\x65\162\x73\x20\151\156\x66\x6f\x72\155\x61\164\x69\157\x6e"), "\146\x69\145\154\144\163" => array("\x69\144" => array("\164\171\160\x65" => "\x73\145\162\151\x61\x6c", "\165\156\x73\151\x67\x6e\145\x64" => TRUE, "\x6e\157\164\x20\156\x75\154\x6c" => TRUE), "\x6d\x6f\x5f\163\x70\x5f\151\144\x70\137\x6e\x61\x6d\145" => array("\x74\x79\160\x65" => "\x74\145\x78\x74", "\156\157\164\40\x6e\165\x6c\154" => TRUE), "\155\x6f\x5f\163\x70\x5f\151\144\x70\x5f\151\x73\163\165\145\162" => array("\x74\x79\x70\x65" => "\x76\x61\x72\143\x68\x61\162", "\154\x65\x6e\x67\x74\150" => 254, "\x6e\x6f\164\x20\x6e\165\154\x6c" => TRUE), "\155\x6f\x5f\x73\x70\x5f\156\x61\x6d\145\x69\144\137\x66\157\x72\x6d\x61\x74" => array("\164\x79\160\x65" => "\166\141\162\x63\150\141\162", "\154\x65\156\147\x74\x68" => 254, "\156\157\x74\x20\156\x75\x6c\x6c" => TRUE), "\x6d\x6f\x5f\x73\x70\x5f\x73\163\157\137\142\151\156\x64\151\x6e\147\x5f\164\171\160\145" => array("\164\171\160\x65" => "\x76\141\x72\143\150\141\x72", "\x6c\x65\x6e\x67\164\150" => 15, "\x64\145\x66\141\165\154\164" => "\x48\x54\x54\x50\55\122\145\144\151\162\x65\x63\164", "\x6e\157\x74\40\156\x75\154\154" => TRUE), "\155\157\137\163\x70\x5f\x6c\x6f\x67\x69\x6e\x5f\165\162\x6c" => array("\x74\171\160\x65" => "\166\x61\162\143\150\141\x72", "\154\x65\x6e\x67\x74\x68" => 254, "\156\x6f\x74\x20\156\x75\x6c\x6c" => TRUE), "\x6d\x6f\137\x73\x70\137\x73\154\x6f\x5f\x62\x69\x6e\144\151\x6e\147\137\164\x79\x70\x65" => array("\164\171\x70\145" => "\x76\x61\x72\143\x68\x61\x72", "\x6c\x65\156\147\164\x68" => 15, "\144\145\x66\x61\165\154\x74" => "\110\124\124\x50\x2d\122\x65\144\151\x72\x65\143\164", "\156\157\164\40\x6e\165\154\x6c" => TRUE), "\x6d\x6f\137\163\x70\137\x6c\x6f\x67\x6f\x75\164\x5f\165\162\154" => array("\x74\x79\x70\x65" => "\x76\x61\162\x63\x68\x61\x72", "\154\x65\156\x67\x74\x68" => 254), "\155\157\137\x73\160\x5f\x63\145\x72\x74" => array("\x74\x79\160\145" => "\166\141\162\x63\x68\x61\162", "\x6c\x65\156\x67\164\x68" => 4096, "\x6e\x6f\x74\x20\x6e\165\154\x6c" => FALSE), "\155\157\137\163\160\137\163\151\x67\x6e\137\x61\154\147\x6f\x72\151\164\150\x6d" => array("\164\x79\160\145" => "\166\x61\162\143\x68\x61\x72", "\x6c\145\x6e\147\x74\150" => 254, "\156\157\164\40\156\165\154\154" => TRUE), "\x6d\157\x5f\x73\x70\x5f\x73\x69\147\x6e\137\163\x73\x6f\x5f\x61\156\x64\137\x73\x6c\157\137\x72\x65\161\165\x65\163\x74" => array("\164\x79\x70\145" => "\151\x6e\x74", "\154\x65\x6e\x67\164\150" => 20, "\x64\145\x66\x61\x75\154\164" => 0, "\156\157\164\40\x6e\x75\x6c\x6c" => TRUE), "\155\157\x5f\163\160\x5f\x65\156\141\142\154\145\x5f\154\157\147\151\x6e\137\167\x69\164\x68\x5f\163\141\155\154" => array("\164\171\x70\x65" => "\151\156\164", "\154\x65\x6e\147\x74\150" => 20, "\144\x65\x66\141\165\x6c\164" => 0, "\156\157\x74\x20\156\x75\154\154" => TRUE), "\x6d\157\137\163\x70\137\x73\145\156\x64\137\x73\154\157\x5f\x69\156\x5f\151\x66\x72\x61\x6d\145" => array("\164\x79\x70\145" => "\x69\156\x74", "\x6c\x65\x6e\x67\164\150" => 20, "\144\145\x66\141\165\154\x74" => 0, "\x6e\x6f\164\40\156\x75\154\x6c" => TRUE), "\x6d\x6f\137\x73\x70\x5f\x63\x68\x61\x72\x61\x63\164\x65\162\x5f\x65\x6e\x63\x6f\x64\151\156\x67" => array("\164\171\160\x65" => "\151\156\x74", "\x6c\x65\x6e\x67\x74\150" => 20, "\x64\x65\146\141\x75\154\164" => 0, "\x6e\x6f\x74\40\x6e\165\x6c\x6c" => TRUE), "\x6d\157\137\163\x70\x5f\x66\145\x74\x63\x68\x5f\155\145\x74\x61\x64\x61\164\x61\137\141\146\x74\x65\x72\x5f\163\157\155\145\x5f\x74\x69\x6d\145" => array("\x74\171\160\145" => "\x69\x6e\x74", "\x6c\145\156\x67\x74\150" => 20, "\x64\x65\146\141\165\x6c\164" => 0, "\x6e\x6f\x74\40\x6e\165\x6c\x6c" => TRUE), "\155\157\137\x73\141\155\154\137\x6d\145\x74\141\x64\x61\x74\x61\137\x75\162\154" => array("\x74\171\160\145" => "\x76\141\x72\x63\x68\x61\x72", "\154\x65\x6e\147\x74\150" => 254), "\x6d\x6f\137\163\x61\x6d\154\137\x64\x65\x66\141\165\154\164\137\x64\x6f\x6d\141\151\x6e" => array("\164\x79\x70\145" => "\166\x61\x72\143\x68\x61\x72", "\x6c\145\156\x67\x74\150" => 254), "\x6d\x6f\x5f\x73\x61\x6d\154\137\151\x64\160\137\x67\165\145\x73\x74\x5f\141\143\x63\x6f\x75\x6e\164" => array("\x74\x79\160\145" => "\x76\x61\162\x63\x68\x61\x72", "\154\145\156\x67\x74\x68" => 254), "\x6d\x6f\x5f\x73\141\x6d\154\x5f\x75\x73\145\x72\156\141\155\145\137\141\x74\x74\x72\151\142\165\x74\x65" => array("\164\171\160\x65" => "\x76\x61\x72\143\x68\141\x72", "\154\145\156\x67\x74\150" => 254, "\144\x65\x66\x61\x75\154\164" => "\x4e\141\155\145\111\x44", "\156\x6f\164\x20\x6e\x75\x6c\x6c" => FALSE), "\x6d\157\x5f\163\141\x6d\x6c\x5f\x65\155\x61\x69\154\137\x61\x74\164\x72\x69\142\165\x74\145" => array("\x74\171\x70\145" => "\166\141\162\143\150\x61\x72", "\154\145\x6e\147\x74\150" => 254, "\144\145\146\141\165\x6c\x74" => "\x4e\141\x6d\145\111\104", "\156\157\164\x20\x6e\x75\x6c\x6c" => FALSE), "\x6d\157\137\x73\x61\x6d\x6c\x5f\x63\x75\x73\164\157\155\137\x61\x74\164\x72\x73\137\x6d\x61\160\137\x61\162\x72" => array("\164\171\160\145" => "\x62\154\x6f\142", "\163\x69\x7a\145" => "\142\151\147", "\x6e\157\x74\x20\x6e\165\154\x6c" => FALSE), "\x6d\x6f\x5f\x73\141\155\154\x5f\x65\x6e\141\x62\154\x65\x5f\x72\157\x6c\145\155\141\160\x70\x69\x6e\x67" => array("\164\x79\160\x65" => "\x69\x6e\x74", "\x6c\145\x6e\147\164\x68" => 20, "\x64\x65\146\x61\x75\154\164" => 0, "\156\157\x74\x20\x6e\x75\154\x6c" => TRUE), "\x6d\157\x5f\163\141\x6d\x6c\x5f\144\x69\x73\x61\142\x6c\x65\x5f\x72\157\154\x65\137\x75\160\x64\141\164\x65" => array("\164\x79\x70\x65" => "\x69\x6e\164", "\x6c\145\156\147\164\150" => 20, "\144\145\146\141\x75\x6c\x74" => 0, "\x6e\x6f\164\40\x6e\165\154\x6c" => TRUE), "\155\x6f\x5f\163\x61\x6d\154\137\x64\145\146\141\165\154\164\137\x72\157\x6c\x65" => array("\x74\171\x70\145" => "\166\141\162\x63\x68\141\162", "\x6c\x65\x6e\x67\x74\150" => 254, "\x6e\157\x74\40\156\x75\x6c\x6c" => FALSE), "\x6d\157\137\163\141\x6d\154\x5f\162\x6f\154\x65\137\x61\164\164\162\x5f\156\x61\155\x65" => array("\x74\171\160\x65" => "\166\141\162\x63\150\141\162", "\x6c\x65\x6e\x67\164\x68" => 254, "\x6e\x6f\164\40\156\x75\x6c\x6c" => FALSE), "\155\157\x5f\163\x61\x6d\154\x5f\162\157\x6c\145\137\x6d\141\160\x70\151\156\x67\137\x61\x72\162" => array("\x74\x79\160\145" => "\142\x6c\x6f\x62", "\163\x69\x7a\145" => "\142\x69\x67", "\x6e\157\x74\40\x6e\165\x6c\154" => FALSE), "\x6d\x6f\137\x73\141\155\x6c\x5f\145\x6e\141\x62\154\145\x5f\160\x72\157\x66\x69\x6c\145\137\155\141\x70\160\151\156\147" => array("\x74\x79\160\x65" => "\151\156\x74", "\154\145\x6e\147\x74\x68" => 20, "\x64\145\146\141\x75\154\x74" => 0, "\x6e\x6f\x74\x20\x6e\165\x6c\x6c" => TRUE), "\155\x6f\x5f\163\x61\x6d\x6c\x5f\x70\162\157\x66\151\x6c\x65\x5f\x74\171\160\x65" => array("\164\x79\160\145" => "\166\x61\162\x63\150\x61\162", "\x6c\x65\x6e\147\164\x68" => 1024, "\156\x6f\x74\40\x6e\x75\154\x6c" => FALSE), "\155\157\x5f\163\141\155\154\x5f\160\x72\x6f\x66\x69\x6c\145\137\x6d\x61\160\160\x69\156\147\137\x61\x74\x74\x72\151\x62\165\164\x65\163" => array("\x74\x79\x70\x65" => "\x62\154\157\142", "\x73\x69\x7a\x65" => "\142\x69\147", "\156\157\x74\40\156\x75\x6c\x6c" => FALSE), "\155\157\x5f\x73\160\137\x73\150\157\x77\x5f\x6c\x6f\x67\151\156\137\x75\x72\x6c" => array("\x74\x79\x70\145" => "\151\x6e\164", "\x6c\x65\156\x67\164\150" => 20, "\x64\145\146\141\x75\154\x74" => 0, "\156\157\164\40\x6e\165\x6c\154" => TRUE), "\155\157\137\x73\x70\137\x6c\x6f\147\151\156\137\x6c\x69\156\x6b\137\x74\x65\x78\x74" => array("\164\x79\x70\x65" => "\x76\x61\162\x63\x68\141\x72", "\x6c\145\x6e\x67\x74\150" => 1024)), "\160\x72\x69\155\x61\x72\x79\40\x6b\x65\x79" => array("\x69\x64"));
}
function getPreviousConfiguration()
{
$yN = \Drupal::config("\155\x69\156\151\157\x72\141\x6e\x67\145\x5f\163\x61\155\x6c\x2e\x73\x65\164\x74\151\x6e\x67\163");
return ["\x69\x64" => 1, "\x6d\x6f\x5f\x73\x70\x5f\151\x64\x70\x5f\x6e\141\x6d\145" => $yN->get("\155\x69\x6e\151\x6f\162\141\156\147\145\x5f\163\141\155\154\x5f\x69\x64\160\137\156\141\x6d\145"), "\x6d\x6f\137\x73\160\137\151\144\x70\x5f\151\x73\163\165\145\162" => $yN->get("\x6d\151\x6e\x69\157\162\x61\x6e\147\x65\137\163\141\155\x6c\x5f\x69\144\160\x5f\x69\x73\163\x75\145\x72"), "\x6d\157\x5f\163\160\137\156\141\x6d\x65\151\x64\x5f\146\157\162\155\141\164" => $yN->get("\x6d\151\156\151\157\162\141\156\x67\x65\137\x73\141\x6d\x6c\x5f\x6e\x61\155\145\151\x64\137\146\x6f\162\x6d\x61\164"), "\x6d\157\x5f\163\160\137\x73\163\x6f\137\x62\151\x6e\x64\x69\156\x67\x5f\164\171\x70\x65" => $yN->get("\155\x69\156\151\157\x72\x61\x6e\x67\x65\137\163\x61\x6d\x6c\x5f\150\x74\x74\x70\137\x62\151\x6e\144\151\x6e\x67"), "\x6d\157\x5f\x73\x70\x5f\x6c\157\x67\x69\x6e\137\x75\162\154" => $yN->get("\x6d\x69\x6e\151\157\162\x61\156\x67\145\x5f\163\x61\155\154\137\151\x64\160\x5f\154\x6f\147\151\156\x5f\x75\x72\x6c"), "\155\x6f\x5f\x73\160\137\163\154\x6f\137\142\x69\x6e\144\151\156\147\137\164\x79\160\x65" => $yN->get("\x6d\x69\156\151\157\x72\x61\156\x67\x65\137\163\x61\x6d\154\x5f\x73\x6c\157\x5f\x68\164\x74\x70\137\142\x69\156\144\151\x6e\147"), "\x6d\157\137\x73\x70\137\154\157\147\x6f\165\164\137\165\162\x6c" => $yN->get("\x6d\x69\x6e\x69\x6f\162\141\x6e\147\145\x5f\163\141\155\154\137\151\x64\x70\x5f\154\157\x67\157\165\164\137\165\x72\154"), "\x6d\157\x5f\x73\x70\137\143\x65\x72\x74" => $yN->get("\x6d\x69\x6e\151\157\162\141\156\147\145\x5f\163\x61\x6d\154\137\151\x64\x70\x5f\x63\x65\162\x74\x69\x66\x69\x63\x61\164\145"), "\x6d\x6f\x5f\163\160\137\163\151\147\x6e\x5f\x61\x6c\147\x6f\162\151\164\150\155" => $yN->get("\x73\x65\143\165\x72\x69\164\171\137\x73\x69\147\156\x61\164\x75\x72\145\x5f\141\x6c\147\157\162\x69\x74\150\x6d"), "\x6d\x6f\137\x73\x70\137\x73\x69\x67\156\137\x73\x73\x6f\x5f\141\156\144\x5f\163\x6c\x6f\x5f\x72\x65\161\x75\x65\163\164" => (int) $yN->get("\155\151\x6e\x69\157\162\141\156\147\145\137\x73\x61\155\154\137\x72\x65\x71\165\145\x73\164\137\x73\151\x67\x6e\145\x64") ?? 0, "\155\x6f\137\163\160\137\145\156\141\142\x6c\145\x5f\154\157\147\151\156\137\167\x69\x74\x68\137\163\x61\x6d\154" => (int) $yN->get("\x6d\x69\156\151\x6f\162\x61\x6e\147\145\137\x73\141\x6d\154\x5f\145\156\x61\142\154\145\137\154\x6f\x67\x69\x6e") ?? 0, "\x6d\x6f\137\x73\x70\x5f\x66\145\164\x63\150\137\155\145\164\x61\x64\x61\x74\141\137\141\146\164\145\x72\x5f\163\x6f\x6d\145\x5f\164\x69\x6d\145" => (int) $yN->get("\x6d\151\156\151\x6f\162\x61\x6e\147\145\137\x73\x61\x6d\154\x5f\x66\145\x74\x63\150\x5f\155\145\x74\x61\144\141\x74\141\x5f\141\146\164\145\x72\x5f\x73\x6f\x6d\145\137\164\151\x6d\145") ?? 0, "\155\x6f\137\x73\141\155\x6c\137\155\x65\164\141\x64\x61\164\141\137\x75\x72\x6c" => $yN->get("\155\151\156\151\x6f\162\141\156\147\145\137\x73\x61\x6d\154\137\x6d\145\x74\141\x5f\144\141\164\141\x5f\165\x72\x6c"), "\155\x6f\x5f\x73\141\x6d\154\x5f\x69\144\160\x5f\x67\x75\145\163\x74\x5f\x61\x63\x63\157\x75\156\164" => '', "\155\x6f\137\163\x61\x6d\154\x5f\144\145\146\141\165\x6c\164\x5f\144\157\x6d\x61\x69\x6e" => '', "\155\157\x5f\x73\160\137\x73\x65\156\144\x5f\x73\154\157\137\x69\156\x5f\x69\146\x72\141\155\145" => (int) $yN->get("\155\x69\156\x69\x6f\x72\141\x6e\147\145\x5f\163\x61\155\154\x5f\163\x65\156\144\x5f\x73\x6c\x6f\x5f\151\156\x5f\151\146\162\141\x6d\x65") ?? 0, "\155\157\137\163\160\x5f\x63\150\x61\162\x61\x63\x74\145\x72\x5f\145\156\x63\157\144\151\x6e\147" => (int) $yN->get("\x6d\151\x6e\151\157\x72\x61\x6e\x67\x65\x5f\163\x61\155\154\137\x63\x68\x61\x72\141\x63\x74\145\162\x5f\x65\156\x63\157\144\151\x6e\x67") ?? 0, "\x6d\157\x5f\163\x70\137\x73\150\157\167\137\x6c\157\x67\151\x6e\x5f\x75\x72\154" => (int) $yN->get("\155\x69\156\151\x6f\162\141\x6e\147\145\x5f\163\x61\x6d\154\137\145\156\141\142\154\x65\x5f\154\x6f\147\x69\156") ?? 1, "\x6d\x6f\x5f\163\x70\137\154\x6f\147\x69\156\x5f\x6c\151\x6e\x6b\137\164\x65\x78\x74" => "\114\x6f\147\151\x6e\40\167\x69\x74\x68\x20" . $yN->get("\155\x69\x6e\x69\x6f\162\x61\156\x67\145\137\163\x61\x6d\154\137\x69\x64\x70\x5f\x6e\x61\x6d\x65"), "\x6d\x6f\137\x73\141\155\x6c\137\x75\163\x65\162\156\x61\x6d\145\x5f\141\164\x74\162\151\142\x75\164\x65" => $yN->get("\155\x69\156\151\x6f\162\x61\156\147\x65\x5f\163\x61\155\x6c\137\165\163\x65\x72\x6e\x61\155\145\137\x61\164\x74\x72\151\142\165\x74\145"), "\x6d\x6f\x5f\163\141\155\154\x5f\x65\155\141\151\x6c\137\x61\x74\164\x72\151\x62\165\164\x65" => $yN->get("\x6d\151\x6e\151\157\162\x61\156\147\x65\x5f\x73\141\x6d\154\x5f\x65\x6d\141\x69\154\137\141\x74\x74\x72\x69\x62\x75\164\x65"), "\155\157\x5f\163\x61\x6d\x6c\x5f\143\165\163\164\157\155\x5f\x61\164\x74\162\x73\x5f\155\141\x70\x5f\x61\162\162" => $yN->get("\x6d\x69\156\151\157\162\141\156\147\x65\x5f\x73\141\155\154\x5f\143\165\163\x74\x6f\x6d\x5f\141\164\x74\x72\163\x5f\x6d\141\160\137\141\162\x72"), "\155\x6f\137\163\x61\155\154\137\x65\156\141\x62\x6c\145\137\x72\157\x6c\x65\x6d\141\x70\160\151\x6e\x67" => $yN->get("\x6d\x69\x6e\x69\x6f\162\141\x6e\x67\145\137\163\141\x6d\154\137\x65\x6e\141\142\154\x65\x5f\162\x6f\154\x65\155\141\160\160\x69\x6e\x67") ?? 0, "\155\157\137\x73\141\x6d\154\137\144\x69\x73\141\x62\154\145\x5f\162\157\154\x65\137\165\160\144\x61\164\x65" => (int) $yN->get("\155\151\x6e\x69\x6f\x72\x61\156\147\145\137\x73\x61\x6d\154\x5f\144\x69\x73\141\x62\154\x65\x5f\x72\x6f\x6c\x65\x5f\x75\160\144\x61\x74\145") ?? 0, "\x6d\157\137\x73\x61\x6d\x6c\x5f\x64\x65\x66\x61\x75\x6c\164\x5f\162\x6f\x6c\x65" => $yN->get("\x6d\151\156\x69\x6f\162\141\x6e\147\145\x5f\163\x61\x6d\x6c\x5f\144\145\x66\141\x75\x6c\x74\137\x72\157\x6c\145"), "\155\157\137\x73\141\155\154\x5f\162\157\x6c\145\137\141\164\x74\162\x5f\156\141\x6d\145" => $yN->get("\x6d\151\156\x69\157\162\141\x6e\147\x65\137\x73\141\155\x6c\137\162\157\x6c\x65\x5f\x61\x74\x74\x72\137\156\x61\155\145"), "\155\157\137\163\x61\155\x6c\137\162\x6f\154\145\137\155\141\160\x70\x69\156\147\x5f\141\x72\162" => $yN->get("\155\151\156\x69\x6f\x72\x61\x6e\147\145\137\x73\x61\x6d\x6c\x5f\162\x6f\x6c\145\x5f\155\x61\x70\x70\151\x6e\x67\137\x61\x72\x72"), "\x6d\157\137\x73\x61\x6d\154\137\145\156\141\142\x6c\x65\137\x70\162\x6f\x66\x69\x6c\145\x5f\155\141\x70\x70\151\156\x67" => (int) $yN->get("\x6d\151\156\151\x6f\x72\141\156\x67\145\137\x73\x61\155\154\137\x65\156\x61\x62\154\145\x5f\160\x72\157\146\151\x6c\x65\x5f\x6d\141\x70\x70\x69\x6e\x67") ?? 0, "\x6d\x6f\x5f\x73\141\x6d\154\137\160\162\157\x66\151\154\x65\x5f\155\x61\160\x70\151\156\x67\x5f\141\164\164\162\x69\x62\165\x74\145\x73" => $yN->get("\x6d\151\156\x69\x6f\x72\x61\156\147\x65\x5f\x73\141\x6d\x6c\x5f\x70\x72\157\146\x69\x6c\145\x5f\x6d\x61\160\x70\x69\156\147\x5f\x61\x72\x72"), "\x6d\x6f\137\x73\x61\155\154\137\x70\x72\x6f\146\151\x6c\x65\x5f\x74\171\160\145" => $yN->get("\155\x69\x6e\x69\x6f\x72\141\x6e\x67\x65\x5f\163\141\x6d\154\137\160\x72\157\146\x69\x6c\145\x5f\x65\x6e\164\151\x74\171\x5f\x74\171\160\145")];
}
/**
* Separator parameter added in role mapping.
*/
function miniorange_saml_post_update_2()
{
$bv = array("\164\x79\x70\145" => "\x76\141\x72\x63\x68\x61\x72", "\154\x65\156\x67\x74\150" => 254, "\156\157\x74\x20\156\165\x6c\154" => FALSE);
$xG = Database::getConnection()->schema();
try {
$xG->addField("\155\151\156\151\157\x72\x61\x6e\147\145\x5f\163\141\x6d\x6c\x5f\x69\144\x70\x64\x61\x74\x61", "\155\x69\156\151\x6f\x72\141\x6e\147\x65\137\163\141\x6d\154\x5f\162\x6f\154\x65\x5f\141\x74\x74\x72\137\x73\145\x70\x61\162\x61\x74\157\162", $bv);
return t("\x53\x65\160\141\x72\141\x74\x6f\x72\x20\160\141\x72\x61\155\x65\x74\x65\x72\x20\x61\144\144\x65\144\x20\151\156\x20\x52\157\x6c\145\40\x6d\141\160\x70\x69\156\x67\56");
} catch (\Exception $ID) {
$Yt = Error::decodeException($ID);
$mq = "\167\x68\x69\x6c\145\40\x75\x70\144\141\x74\x69\x6e\x67\x20\164\150\x65\x20\164\141\142\154\145\40" . "\74\143\157\144\x65\x3e\155\151\156\151\x6f\x72\x61\x6e\x67\145\137\x73\x61\x6d\154\137\x69\x64\x70\x64\141\164\x61\x3c\x2f\x63\157\x64\x65\76";
\Drupal::logger("\x6d\x69\156\151\157\162\141\x6e\x67\145\137\163\141\155\x6c")->critical("\x25\164\x79\x70\x65\40\x65\x6e\143\157\165\x6e\164\145\162\145\x64\x20{$mq}\72\40\100\155\x65\163\x73\141\x67\x65\x20\151\156\40\45\x66\x75\x6e\x63\x74\151\x6f\156\x20\x28\x6c\x69\156\x65\40\45\154\x69\x6e\x65\x20\157\146\40\45\x66\x69\154\145\51\56", $Yt);
return t("\123\157\x6d\x65\164\x68\x69\156\x67\x20\x77\145\156\164\40\x77\162\157\x6e\147\40{$mq}\x2e\40\103\150\145\143\x6b\40\x74\x68\145\x20\x6c\157\x67\x73\x20\146\157\162\40\x64\x65\x74\141\151\x6c\x73\x2e");
}
}
Function Calls
None |
Stats
MD5 | 63187721b421c4beb97d829155c62d41 |
Eval Count | 0 |
Decode Time | 74 ms |