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 function miniorange_saml_customer_setup($gN, &$hL) { $xl = variable_get("..
Decoded Output download
<?php
function miniorange_saml_customer_setup($gN, &$hL)
{
$xl = variable_get("miniorange_saml_status", '');
if ($xl == "PLUGIN_CONFIGURATION" && variable_get("miniorange_saml_license_key", NULL) == NULL) {
goto PC;
}
if ($xl == "VALIDATE_OTP") {
goto xG;
}
if ($xl == "PLUGIN_CONFIGURATION") {
goto P1;
}
goto Ya;
xG:
$gN["miniorange_saml_customer_otp_token"] = array("#type" => "textfield", "#title" => t("OTP"));
$gN["miniorange_saml_customer_validate_otp_button"] = array("#type" => "submit", "#value" => t("Validate OTP"), "#submit" => array("miniorange_saml_validate_otp_submit"));
$gN["miniorange_saml_customer_setup_resendotp"] = array("#type" => "submit", "#value" => t("Resend OTP"), "#submit" => array("miniorange_saml_resend_otp"));
$gN["miniorange_saml_customer_setup_back"] = array("#type" => "submit", "#value" => t("Back"), "#submit" => array("miniorange_saml_back"));
return $gN;
goto Ya;
P1:
$gN["markup_top"] = array("#markup" => "<div>Thank you for registering with miniOrange</div>" . "<h4>Your Profile: </h4>");
$Sg = array("email" => array("data" => t("Customer Email")), "customerid" => array("data" => t("Customer ID")), "token" => array("data" => t("Token Key")), "apikey" => array("data" => t("API Key")));
$Ij = array();
$Ij[0] = array("email" => variable_get("miniorange_saml_customer_admin_email", ''), "customerid" => variable_get("miniorange_saml_customer_id", ''), "token" => variable_get("miniorange_saml_customer_admin_token", ''), "apikey" => variable_get("miniorange_saml_customer_api_key", ''));
$gN["fieldset"]["customerinfo"] = array("#theme" => "table", "#header" => $Sg, "#rows" => $Ij);
return $gN;
Ya:
goto jn;
PC:
$gN["miniorange_saml_license_key"] = array("#type" => "textfield", "#title" => t("License Key"), "#attributes" => array("placeholder" => "Enter your license key to activate the plugin"), "#required" => TRUE);
$gN["miniorange_saml_customer_validate_license_button"] = array("#type" => "submit", "#value" => t("Activate License"), "#submit" => array("miniorange_saml_validate_license_submit"));
return $gN;
jn:
$gN["markup_14"] = array("#markup" => "<h3>Register with miniOrange</h3>");
$gN["markup_15"] = array("#markup" => "Just complete the short registration below to configure" . " the SAML Plugin. Please enter a valid email id <br>that you have" . " access to. You will be able to move forward after verifying an OTP" . " that we will send to this email.");
$gN["miniorange_saml_customer_setup_username"] = array("#type" => "textfield", "#title" => t("Email"), "#required" => TRUE);
$gN["miniorange_saml_customer_setup_phone"] = array("#type" => "textfield", "#title" => t("Phone"));
$gN["markup_16"] = array("#markup" => "<b>NOTE:</b> We will only call if you need support.");
$gN["miniorange_saml_customer_setup_password"] = array("#type" => "password_confirm", "#required" => TRUE);
$gN["miniorange_saml_customer_setup_button"] = array("#type" => "submit", "#value" => t("Register"), "#submit" => array("miniorange_saml_customer_setup_submit"));
return $gN;
}
function miniorange_saml_validate_otp_submit(&$gN, $hL)
{
$et = $gN["miniorange_saml_customer_otp_token"]["#value"];
$ug = variable_get("miniorange_saml_customer_admin_email", NULL);
$pw = variable_get("miniorange_saml_customer_admin_phone", NULL);
$sK = variable_get("miniorange_saml_tx_id", NULL);
$N2 = new MiniorangeSAMLCustomer($ug, $pw, NULL, $et);
$TB = json_decode($N2->validateOtp($sK));
if ($TB->status == "SUCCESS") {
goto ao;
}
drupal_set_message(t("Error validating OTP"), "error");
goto ld;
ao:
$xl = "PLUGIN_CONFIGURATION";
variable_set("miniorange_saml_status", $xl);
variable_del("miniorange_saml_tx_id");
$QV = variable_get("miniorange_saml_customer_admin_password", '');
$N2 = new MiniorangeSAMLCustomer($ug, $pw, $QV, NULL);
$S2 = json_decode($N2->createCustomer());
if ($S2->status == "SUCCESS") {
goto Wf;
}
drupal_set_message(t("Error creating customer"), "error");
goto Ec;
Wf:
$xl = "PLUGIN_CONFIGURATION";
variable_set("miniorange_saml_status", $xl);
variable_set("miniorange_saml_customer_admin_email", $ug);
variable_set("miniorange_saml_customer_admin_phone", $pw);
variable_set("miniorange_saml_customer_admin_token", $S2->token);
variable_set("miniorange_saml_customer_id", $S2->id);
variable_set("miniorange_saml_customer_api_key", $S2->apiKey);
drupal_set_message(t("Customer account created. Please verify your license key to activate plugin"));
Ec:
ld:
}
function miniorange_saml_resend_otp(&$gN, $hL)
{
variable_del("miniorange_saml_tx_id");
$ug = variable_get("miniorange_saml_customer_admin_email", NULL);
$pw = variable_get("miniorange_saml_customer_admin_phone", NULL);
$N2 = new MiniorangeSAMLCustomer($ug, $pw, NULL, NULL);
$yP = json_decode($N2->sendOtp());
if (!($yP->status == "SUCCESS")) {
goto eN;
}
variable_set("miniorange_saml_tx_id", $yP->txId);
$xl = "VALIDATE_OTP";
variable_set("miniorange_saml_status", $xl);
drupal_set_message(t("Verify email address by entering the passcode sent to @username", array("@username" => $ug)));
eN:
}
function miniorange_saml_customer_setup_submit(&$gN, $hL)
{
$ug = $gN["miniorange_saml_customer_setup_username"]["#value"];
$pw = $gN["miniorange_saml_customer_setup_phone"]["#value"];
$QV = $gN["miniorange_saml_customer_setup_password"]["#value"]["pass1"];
$N2 = new MiniorangeSAMLCustomer($ug, $pw, $QV, NULL);
$zI = json_decode($N2->checkCustomer());
if ($zI->status == "CUSTOMER_NOT_FOUND") {
goto Gy;
}
if ($zI->status == "CURL_ERROR") {
goto EG;
}
$SR = json_decode($N2->getCustomerKeys());
if (json_last_error() == JSON_ERROR_NONE) {
goto Af;
}
drupal_set_message(t("Invalid credentials"), "error");
goto kj;
Af:
variable_set("miniorange_saml_customer_id", $SR->id);
variable_set("miniorange_saml_customer_admin_token", $SR->token);
variable_set("miniorange_saml_customer_admin_email", $ug);
variable_set("miniorange_saml_customer_admin_phone", $pw);
variable_set("miniorange_saml_customer_api_key", $SR->apiKey);
$xl = "PLUGIN_CONFIGURATION";
variable_set("miniorange_saml_status", $xl);
drupal_set_message(t("Successfully retrieved your account."));
kj:
if (variable_get("miniorange_saml_license_key")) {
goto lg;
}
$xl = "PLUGIN_CONFIGURATION";
variable_set("miniorange_saml_status", $xl);
goto TD;
lg:
$Rm = variable_get("miniorange_saml_customer_admin_token");
$PW = AESEncryption::decrypt_data(variable_get("miniorange_saml_license_key"), $Rm);
$ug = variable_get("miniorange_saml_customer_admin_email", NULL);
$pw = variable_get("miniorange_saml_customer_admin_phone", NULL);
$WS = new MiniorangeSAMLCustomer($ug, $pw, NULL, NULL);
$jz = json_decode($WS->verifyLicense($PW), true);
if (strcasecmp($jz["status"], "SUCCESS") == 0) {
goto NF;
}
drupal_set_message(t("License key for this instance is incorrect. Make sure you have not tampered with it at all. Please enter a valid license key."), "error");
variable_del("miniorange_saml_license_key");
goto G1;
NF:
drupal_set_message(t("Your license is verified. You can now setup the plugin."));
G1:
TD:
goto Ta;
Gy:
variable_set("miniorange_saml_customer_admin_email", $ug);
variable_set("miniorange_saml_customer_admin_phone", $pw);
variable_set("miniorange_saml_customer_admin_password", $QV);
$yP = json_decode($N2->sendOtp());
if (!($yP->status == "SUCCESS")) {
goto jp;
}
variable_set("miniorange_saml_tx_id", $yP->txId);
$xl = "VALIDATE_OTP";
variable_set("miniorange_saml_status", $xl);
drupal_set_message(t("Verify email address by entering the passcode sent to @username", array("@username" => $ug)));
jp:
goto Ta;
EG:
drupal_set_message(t("cURL is not enabled. Please enable cURL"), "error");
Ta:
}
function miniorange_saml_back(&$gN, $hL)
{
$xl = "CUSTOMER_SETUP";
variable_set("miniorange_saml_status", $xl);
variable_del("miniorange_saml_customer_admin_email");
variable_del("miniorange_saml_customer_admin_phone");
variable_del("miniorange_saml_tx_id");
drupal_set_message(t("Register/Login with your miniOrange Account"));
}
function miniorange_saml_validate_license_submit(&$gN, $hL)
{
$PW = trim($gN["miniorange_saml_license_key"]["#value"]);
$ug = variable_get("miniorange_saml_customer_admin_email", NULL);
$pw = variable_get("miniorange_saml_customer_admin_phone", NULL);
$WS = new MiniorangeSAMLCustomer($ug, $pw, NULL, NULL);
$jz = json_decode($WS->verifyLicense($PW), true);
if (strcasecmp($jz["status"], "SUCCESS") == 0) {
goto mm;
}
if (strcasecmp($jz["status"], "FAILED") == 0) {
goto aR;
}
drupal_set_message(t("An error occured while processing your request. Please Try again."), "error");
goto o2;
aR:
if (strcasecmp($jz["message"], "Code has Expired") == 0) {
goto L2;
}
drupal_set_message(t("You have entered an invalid license key. Please enter a valid license key."), "error");
goto hP;
L2:
drupal_set_message(t("License key you have entered has already been used. Please enter a key which has not been used before on any other instance or if you have exausted all your keys thenbuy more license from Licensing"), "error");
hP:
o2:
goto Zg;
mm:
$Rm = variable_get("miniorange_saml_customer_admin_token");
variable_set("miniorange_saml_license_key", AESEncryption::encrypt_data($PW, $Rm));
variable_set("t_site_status", AESEncryption::encrypt_data("false", $Rm));
variable_set("site_ck_l", AESEncryption::encrypt_data("true", $Rm));
drupal_set_message(t("Your license is verified. You can now setup the plugin."));
Zg:
}
?>
Did this file decode correctly?
Original Code
<?php
function miniorange_saml_customer_setup($gN, &$hL)
{
$xl = variable_get("\155\151\156\x69\157\162\141\x6e\x67\x65\137\163\141\155\x6c\137\x73\164\141\x74\x75\163", '');
if ($xl == "\x50\114\x55\x47\111\116\137\103\x4f\116\x46\x49\107\125\x52\101\124\111\x4f\116" && variable_get("\155\151\x6e\151\157\x72\x61\156\147\145\x5f\x73\x61\x6d\x6c\137\154\151\143\145\x6e\163\145\x5f\153\x65\x79", NULL) == NULL) {
goto PC;
}
if ($xl == "\126\x41\114\x49\104\x41\x54\x45\x5f\x4f\x54\120") {
goto xG;
}
if ($xl == "\x50\x4c\125\x47\111\x4e\x5f\103\117\116\106\111\107\125\122\x41\124\x49\117\116") {
goto P1;
}
goto Ya;
xG:
$gN["\155\x69\x6e\x69\x6f\162\141\156\x67\x65\x5f\x73\141\155\154\137\x63\165\x73\x74\x6f\155\145\162\x5f\157\x74\x70\x5f\164\157\x6b\145\x6e"] = array("\43\164\x79\160\145" => "\x74\145\170\164\146\151\145\154\144", "\x23\x74\x69\x74\154\x65" => t("\x4f\x54\x50"));
$gN["\155\151\156\151\157\x72\x61\156\x67\x65\137\x73\x61\155\x6c\x5f\143\x75\163\164\x6f\x6d\x65\162\x5f\166\141\x6c\151\144\x61\x74\145\x5f\x6f\164\160\x5f\142\165\x74\164\157\156"] = array("\43\x74\171\x70\x65" => "\x73\x75\142\x6d\x69\164", "\43\x76\x61\x6c\x75\145" => t("\126\x61\x6c\x69\144\x61\x74\145\40\117\x54\x50"), "\x23\163\x75\142\155\151\x74" => array("\155\x69\x6e\151\x6f\x72\141\x6e\147\x65\x5f\163\x61\x6d\154\137\166\x61\x6c\151\144\x61\164\x65\x5f\157\x74\160\x5f\163\x75\x62\x6d\151\164"));
$gN["\x6d\151\x6e\x69\157\162\x61\x6e\147\x65\x5f\163\141\155\x6c\137\x63\x75\163\x74\157\x6d\145\x72\137\163\145\164\x75\x70\137\x72\x65\x73\x65\156\144\157\x74\x70"] = array("\x23\x74\x79\x70\x65" => "\163\165\x62\x6d\x69\x74", "\x23\166\x61\x6c\165\x65" => t("\122\x65\163\145\x6e\144\40\117\x54\120"), "\x23\x73\x75\x62\x6d\x69\164" => array("\155\151\x6e\151\157\x72\x61\156\147\145\x5f\163\x61\x6d\154\137\162\145\163\145\156\x64\x5f\157\x74\160"));
$gN["\x6d\151\156\151\157\x72\141\156\x67\145\x5f\x73\x61\x6d\x6c\137\x63\165\163\x74\157\x6d\x65\x72\x5f\163\145\x74\165\x70\x5f\x62\x61\143\153"] = array("\43\x74\x79\160\x65" => "\163\165\142\155\x69\x74", "\x23\x76\x61\154\x75\x65" => t("\102\141\143\153"), "\x23\163\x75\142\x6d\x69\x74" => array("\x6d\x69\x6e\151\x6f\x72\141\156\x67\145\x5f\x73\141\155\x6c\137\x62\141\x63\x6b"));
return $gN;
goto Ya;
P1:
$gN["\155\x61\162\153\165\x70\137\x74\157\x70"] = array("\43\x6d\141\x72\x6b\x75\x70" => "\x3c\144\x69\x76\x3e\124\x68\141\x6e\x6b\40\171\x6f\x75\x20\146\x6f\162\40\x72\145\x67\x69\163\164\x65\x72\x69\156\x67\40\167\x69\164\x68\x20\155\151\x6e\151\x4f\x72\x61\x6e\x67\x65\74\x2f\144\151\166\x3e" . "\74\x68\64\76\131\x6f\165\x72\x20\120\x72\157\146\x69\154\x65\72\x20\x3c\57\x68\64\76");
$Sg = array("\x65\x6d\x61\x69\x6c" => array("\x64\x61\164\141" => t("\103\x75\163\164\x6f\155\145\162\x20\x45\x6d\x61\151\154")), "\x63\x75\163\x74\157\x6d\145\x72\x69\144" => array("\144\141\x74\141" => t("\x43\x75\x73\164\157\x6d\x65\162\40\x49\104")), "\x74\157\153\145\x6e" => array("\144\x61\x74\141" => t("\x54\157\x6b\145\x6e\40\113\x65\x79")), "\141\x70\151\153\145\x79" => array("\x64\x61\x74\x61" => t("\101\x50\111\40\113\145\x79")));
$Ij = array();
$Ij[0] = array("\x65\x6d\x61\151\154" => variable_get("\x6d\x69\156\x69\x6f\162\x61\156\147\x65\137\163\141\x6d\154\x5f\x63\x75\x73\x74\x6f\x6d\145\x72\137\x61\144\155\x69\x6e\x5f\x65\155\141\x69\154", ''), "\x63\165\x73\164\157\155\145\162\151\144" => variable_get("\x6d\151\156\151\157\162\141\156\x67\x65\137\x73\x61\155\154\137\143\165\163\x74\157\155\145\162\x5f\151\x64", ''), "\x74\x6f\153\x65\x6e" => variable_get("\x6d\151\156\x69\157\162\x61\156\x67\x65\137\x73\141\x6d\154\137\143\165\163\164\x6f\x6d\x65\162\x5f\x61\144\155\x69\156\x5f\x74\157\153\x65\x6e", ''), "\141\160\151\153\145\x79" => variable_get("\155\x69\x6e\151\x6f\162\141\x6e\x67\145\137\163\141\x6d\154\x5f\x63\165\x73\164\157\x6d\x65\x72\137\141\x70\151\x5f\153\x65\x79", ''));
$gN["\146\151\145\154\144\x73\145\164"]["\143\x75\x73\164\157\155\x65\x72\151\156\x66\x6f"] = array("\43\164\150\x65\155\145" => "\164\141\142\154\x65", "\x23\x68\145\x61\144\x65\162" => $Sg, "\43\162\157\x77\x73" => $Ij);
return $gN;
Ya:
goto jn;
PC:
$gN["\x6d\151\156\151\157\x72\141\x6e\147\x65\137\163\141\x6d\154\x5f\x6c\151\143\145\156\163\x65\137\x6b\145\171"] = array("\43\164\171\160\x65" => "\x74\x65\x78\164\x66\x69\x65\x6c\144", "\x23\164\x69\x74\x6c\145" => t("\x4c\151\143\145\x6e\x73\145\40\113\145\x79"), "\x23\x61\x74\x74\x72\151\142\165\x74\145\x73" => array("\160\154\141\x63\x65\150\x6f\154\x64\145\x72" => "\105\156\164\145\x72\x20\x79\x6f\165\162\40\154\151\143\145\x6e\x73\x65\40\x6b\x65\171\40\164\157\40\x61\143\x74\151\166\141\164\145\40\164\150\x65\x20\160\x6c\165\147\x69\x6e"), "\x23\162\x65\161\x75\x69\x72\145\x64" => TRUE);
$gN["\x6d\x69\156\x69\x6f\x72\x61\x6e\x67\145\x5f\x73\x61\155\x6c\137\x63\165\163\x74\x6f\x6d\x65\x72\137\166\141\x6c\151\x64\x61\164\x65\x5f\154\x69\x63\145\x6e\163\145\137\142\x75\164\x74\157\x6e"] = array("\x23\x74\171\x70\145" => "\163\x75\142\155\151\x74", "\43\166\x61\x6c\165\x65" => t("\101\143\164\151\x76\141\164\x65\40\x4c\151\143\145\156\x73\x65"), "\x23\163\x75\142\155\x69\164" => array("\155\x69\x6e\151\157\162\x61\156\x67\145\137\163\141\x6d\154\137\166\141\154\151\x64\x61\x74\x65\137\154\151\x63\145\156\163\x65\137\163\165\x62\155\x69\164"));
return $gN;
jn:
$gN["\155\x61\x72\x6b\x75\160\x5f\61\64"] = array("\x23\x6d\141\162\153\x75\x70" => "\x3c\x68\x33\76\122\x65\x67\151\163\x74\x65\x72\40\167\151\x74\x68\40\x6d\x69\156\151\117\162\x61\156\x67\x65\x3c\x2f\x68\63\76");
$gN["\155\x61\x72\x6b\x75\160\x5f\x31\x35"] = array("\43\155\141\x72\x6b\165\160" => "\x4a\x75\163\x74\x20\x63\x6f\155\x70\154\x65\164\145\x20\x74\x68\x65\40\163\150\157\162\164\x20\x72\145\147\x69\163\164\x72\141\x74\x69\157\156\x20\142\145\x6c\157\167\40\164\157\x20\x63\157\156\146\151\x67\165\x72\145" . "\x20\164\150\145\x20\123\x41\115\114\40\x50\x6c\x75\147\151\x6e\x2e\40\x50\x6c\145\x61\163\145\40\145\156\x74\145\162\40\x61\x20\166\x61\x6c\151\144\x20\145\x6d\141\x69\154\40\x69\144\40\x3c\x62\x72\76\x74\150\141\x74\x20\x79\157\x75\40\x68\141\x76\x65" . "\40\141\x63\x63\x65\x73\x73\40\x74\x6f\x2e\40\x59\157\165\x20\x77\x69\x6c\154\40\142\x65\40\x61\142\x6c\x65\x20\x74\157\40\155\157\166\145\40\x66\x6f\x72\167\141\162\x64\40\x61\x66\x74\x65\x72\x20\166\145\x72\x69\x66\x79\x69\156\x67\40\x61\x6e\40\117\124\x50" . "\x20\164\x68\x61\x74\x20\x77\x65\40\x77\151\154\154\40\163\x65\x6e\x64\x20\x74\157\40\164\150\x69\x73\40\x65\x6d\x61\151\x6c\56");
$gN["\x6d\x69\x6e\x69\x6f\x72\141\x6e\x67\x65\137\x73\141\x6d\x6c\x5f\x63\165\163\x74\x6f\x6d\145\162\x5f\163\x65\x74\165\x70\137\165\x73\x65\x72\156\141\x6d\x65"] = array("\43\x74\171\x70\x65" => "\x74\x65\170\x74\x66\x69\145\x6c\144", "\x23\x74\x69\x74\154\x65" => t("\x45\x6d\x61\151\x6c"), "\43\x72\145\x71\165\151\162\145\x64" => TRUE);
$gN["\155\x69\x6e\151\157\x72\x61\156\147\x65\137\163\x61\x6d\x6c\137\x63\x75\163\164\157\155\145\162\137\163\x65\x74\x75\x70\137\x70\150\157\156\145"] = array("\43\164\x79\160\145" => "\x74\x65\x78\x74\146\x69\x65\x6c\144", "\x23\x74\151\164\154\x65" => t("\x50\x68\157\156\x65"));
$gN["\x6d\x61\x72\x6b\165\x70\x5f\x31\66"] = array("\x23\x6d\141\x72\153\x75\160" => "\74\x62\x3e\x4e\117\124\x45\72\x3c\57\142\x3e\x20\x57\x65\40\x77\151\154\154\x20\157\156\x6c\x79\40\x63\x61\154\x6c\x20\151\x66\x20\x79\157\x75\x20\x6e\x65\145\x64\40\163\165\x70\160\157\x72\164\56");
$gN["\155\x69\x6e\151\157\x72\141\156\x67\145\137\x73\141\x6d\x6c\x5f\x63\165\x73\164\x6f\x6d\145\162\x5f\163\x65\x74\165\x70\x5f\160\x61\163\163\x77\157\162\x64"] = array("\x23\x74\x79\x70\145" => "\x70\x61\x73\x73\x77\x6f\x72\144\x5f\x63\x6f\x6e\x66\151\x72\155", "\43\162\x65\x71\x75\x69\x72\x65\x64" => TRUE);
$gN["\x6d\x69\156\151\x6f\x72\x61\x6e\147\145\x5f\163\x61\x6d\x6c\x5f\x63\x75\x73\164\157\x6d\145\x72\137\x73\x65\164\165\x70\137\x62\165\164\x74\x6f\156"] = array("\43\x74\x79\x70\x65" => "\x73\x75\x62\x6d\151\164", "\x23\x76\x61\x6c\x75\x65" => t("\122\x65\x67\151\x73\x74\145\162"), "\43\x73\165\x62\x6d\151\x74" => array("\x6d\151\156\x69\x6f\162\x61\156\x67\145\x5f\163\x61\x6d\154\137\143\x75\163\x74\x6f\x6d\x65\162\x5f\x73\145\164\165\x70\137\163\165\x62\x6d\x69\x74"));
return $gN;
}
function miniorange_saml_validate_otp_submit(&$gN, $hL)
{
$et = $gN["\x6d\151\156\151\x6f\x72\x61\x6e\x67\145\137\x73\141\x6d\154\x5f\x63\x75\163\x74\157\x6d\x65\162\x5f\157\x74\160\137\164\x6f\153\x65\x6e"]["\43\166\x61\x6c\x75\145"];
$ug = variable_get("\155\x69\156\x69\x6f\162\x61\x6e\x67\145\137\163\x61\155\x6c\x5f\143\165\163\164\x6f\155\145\162\137\141\x64\155\151\x6e\137\145\x6d\x61\x69\154", NULL);
$pw = variable_get("\x6d\151\x6e\x69\x6f\x72\141\x6e\x67\145\137\163\141\x6d\154\x5f\143\165\x73\x74\157\155\x65\162\x5f\141\x64\155\151\156\137\x70\x68\x6f\x6e\x65", NULL);
$sK = variable_get("\x6d\151\156\151\157\x72\141\156\x67\145\x5f\x73\x61\155\154\x5f\x74\x78\137\151\144", NULL);
$N2 = new MiniorangeSAMLCustomer($ug, $pw, NULL, $et);
$TB = json_decode($N2->validateOtp($sK));
if ($TB->status == "\x53\125\x43\103\x45\123\x53") {
goto ao;
}
drupal_set_message(t("\x45\162\162\x6f\x72\x20\x76\x61\154\151\x64\x61\x74\x69\x6e\147\40\117\124\x50"), "\145\162\x72\x6f\162");
goto ld;
ao:
$xl = "\x50\114\125\107\x49\x4e\x5f\x43\117\116\x46\x49\x47\x55\x52\x41\x54\x49\x4f\x4e";
variable_set("\155\x69\156\x69\x6f\162\141\x6e\x67\x65\x5f\x73\141\155\x6c\x5f\x73\164\141\x74\x75\163", $xl);
variable_del("\x6d\151\156\x69\x6f\162\141\x6e\x67\145\x5f\x73\x61\155\x6c\137\x74\x78\137\x69\144");
$QV = variable_get("\x6d\x69\156\151\x6f\162\141\x6e\147\145\137\x73\141\155\x6c\x5f\x63\x75\163\164\157\x6d\145\x72\137\141\x64\x6d\x69\x6e\x5f\160\141\x73\x73\x77\x6f\162\x64", '');
$N2 = new MiniorangeSAMLCustomer($ug, $pw, $QV, NULL);
$S2 = json_decode($N2->createCustomer());
if ($S2->status == "\x53\x55\103\x43\105\x53\x53") {
goto Wf;
}
drupal_set_message(t("\x45\162\x72\x6f\x72\40\143\x72\145\x61\164\151\156\x67\x20\143\165\163\164\x6f\155\145\162"), "\x65\x72\x72\157\162");
goto Ec;
Wf:
$xl = "\x50\114\125\107\x49\116\137\x43\117\x4e\x46\111\107\125\x52\101\124\x49\x4f\116";
variable_set("\x6d\x69\156\151\157\162\x61\x6e\147\145\137\163\x61\x6d\x6c\137\x73\x74\x61\x74\x75\x73", $xl);
variable_set("\x6d\151\156\x69\x6f\x72\x61\x6e\x67\145\137\163\x61\x6d\x6c\137\x63\x75\163\x74\157\155\145\162\x5f\x61\144\155\151\x6e\x5f\145\x6d\141\151\154", $ug);
variable_set("\155\x69\156\x69\x6f\x72\141\x6e\x67\x65\137\163\x61\x6d\154\x5f\143\165\163\x74\157\x6d\x65\x72\x5f\141\144\155\151\x6e\137\160\x68\157\x6e\145", $pw);
variable_set("\x6d\151\156\151\157\x72\141\156\147\x65\137\163\141\155\154\137\x63\165\163\x74\157\155\145\162\x5f\x61\144\x6d\x69\156\137\164\x6f\153\x65\x6e", $S2->token);
variable_set("\155\151\x6e\x69\157\x72\141\156\x67\145\137\163\141\x6d\154\137\143\165\163\164\157\155\145\162\137\x69\x64", $S2->id);
variable_set("\x6d\151\156\x69\x6f\x72\x61\156\147\145\x5f\163\x61\x6d\x6c\137\143\165\163\x74\157\155\x65\162\137\141\x70\151\137\x6b\145\x79", $S2->apiKey);
drupal_set_message(t("\x43\165\x73\164\157\x6d\145\x72\x20\x61\x63\143\157\x75\x6e\x74\x20\x63\162\145\141\x74\145\x64\56\x20\x50\154\145\141\x73\145\40\x76\x65\x72\151\x66\x79\x20\171\x6f\x75\162\40\154\x69\x63\x65\156\163\145\40\153\x65\171\40\x74\157\x20\141\x63\164\151\x76\141\x74\145\40\160\154\165\147\x69\x6e"));
Ec:
ld:
}
function miniorange_saml_resend_otp(&$gN, $hL)
{
variable_del("\x6d\151\156\151\x6f\162\x61\156\147\145\x5f\x73\x61\x6d\154\137\x74\170\x5f\x69\144");
$ug = variable_get("\x6d\151\156\151\157\162\x61\156\147\145\137\163\x61\x6d\x6c\x5f\143\165\163\164\x6f\155\145\162\x5f\141\144\x6d\151\156\x5f\x65\x6d\141\x69\x6c", NULL);
$pw = variable_get("\155\151\x6e\x69\x6f\x72\141\156\x67\x65\x5f\163\141\x6d\x6c\137\143\165\x73\x74\157\x6d\x65\162\137\x61\144\155\151\156\x5f\160\x68\x6f\156\x65", NULL);
$N2 = new MiniorangeSAMLCustomer($ug, $pw, NULL, NULL);
$yP = json_decode($N2->sendOtp());
if (!($yP->status == "\x53\x55\x43\103\x45\x53\x53")) {
goto eN;
}
variable_set("\155\151\x6e\151\x6f\162\141\x6e\x67\x65\137\x73\141\x6d\x6c\137\164\x78\137\151\144", $yP->txId);
$xl = "\126\101\114\111\104\x41\124\x45\137\x4f\x54\120";
variable_set("\x6d\151\x6e\x69\157\x72\141\x6e\147\145\x5f\163\x61\x6d\154\x5f\x73\164\141\x74\165\163", $xl);
drupal_set_message(t("\126\145\162\x69\146\x79\x20\x65\155\141\x69\154\40\141\144\x64\162\x65\x73\x73\40\142\171\40\x65\156\164\145\x72\151\x6e\x67\40\x74\x68\145\40\160\141\163\x73\x63\157\x64\145\x20\163\x65\156\x74\40\x74\157\x20\100\x75\x73\145\x72\x6e\141\x6d\145", array("\x40\x75\163\145\x72\156\x61\155\145" => $ug)));
eN:
}
function miniorange_saml_customer_setup_submit(&$gN, $hL)
{
$ug = $gN["\x6d\x69\156\151\157\162\141\156\147\x65\x5f\x73\141\x6d\154\137\x63\x75\x73\x74\x6f\155\145\162\x5f\163\x65\x74\x75\x70\137\x75\163\x65\162\x6e\141\x6d\x65"]["\43\166\141\154\x75\145"];
$pw = $gN["\x6d\x69\x6e\x69\157\x72\141\x6e\147\145\x5f\x73\141\x6d\x6c\x5f\x63\x75\x73\164\157\x6d\x65\x72\137\x73\145\164\x75\160\137\x70\150\157\156\145"]["\43\166\x61\x6c\165\x65"];
$QV = $gN["\x6d\151\156\151\157\162\x61\x6e\147\x65\137\x73\x61\155\x6c\x5f\143\x75\x73\x74\157\x6d\145\x72\x5f\x73\x65\164\165\x70\x5f\160\141\163\x73\x77\157\162\144"]["\43\x76\141\154\x75\145"]["\x70\141\163\163\x31"];
$N2 = new MiniorangeSAMLCustomer($ug, $pw, $QV, NULL);
$zI = json_decode($N2->checkCustomer());
if ($zI->status == "\x43\x55\123\124\x4f\115\x45\x52\x5f\x4e\x4f\x54\x5f\x46\x4f\x55\x4e\x44") {
goto Gy;
}
if ($zI->status == "\x43\x55\122\114\x5f\105\122\122\117\x52") {
goto EG;
}
$SR = json_decode($N2->getCustomerKeys());
if (json_last_error() == JSON_ERROR_NONE) {
goto Af;
}
drupal_set_message(t("\111\156\x76\141\x6c\151\144\x20\x63\162\145\144\145\x6e\x74\151\x61\154\x73"), "\x65\x72\x72\157\x72");
goto kj;
Af:
variable_set("\155\151\x6e\151\x6f\x72\x61\x6e\147\145\137\163\141\x6d\154\137\143\x75\163\164\157\155\145\x72\137\151\144", $SR->id);
variable_set("\155\x69\x6e\x69\157\x72\141\x6e\147\145\137\163\141\x6d\x6c\137\x63\165\x73\x74\157\x6d\x65\162\137\141\144\x6d\x69\x6e\137\164\x6f\x6b\145\x6e", $SR->token);
variable_set("\155\x69\x6e\x69\157\162\141\156\x67\x65\137\163\x61\155\x6c\x5f\x63\x75\x73\x74\x6f\x6d\x65\x72\137\141\x64\x6d\x69\156\137\x65\x6d\141\151\x6c", $ug);
variable_set("\155\151\156\x69\157\162\x61\156\147\x65\137\x73\141\x6d\154\x5f\143\x75\x73\164\157\155\x65\162\137\141\x64\155\x69\156\x5f\160\150\x6f\156\x65", $pw);
variable_set("\155\151\156\x69\157\x72\x61\156\147\x65\137\163\x61\x6d\x6c\x5f\x63\x75\x73\x74\157\x6d\145\x72\137\141\x70\151\137\x6b\145\x79", $SR->apiKey);
$xl = "\120\114\125\x47\111\x4e\x5f\x43\x4f\116\106\x49\x47\125\x52\101\124\x49\x4f\116";
variable_set("\155\151\156\151\157\x72\x61\156\147\x65\x5f\x73\x61\155\x6c\137\x73\164\x61\164\x75\163", $xl);
drupal_set_message(t("\x53\165\143\x63\x65\x73\163\x66\165\154\154\171\x20\162\145\x74\x72\x69\145\x76\145\144\x20\x79\x6f\165\x72\x20\141\x63\x63\x6f\x75\156\x74\x2e"));
kj:
if (variable_get("\x6d\151\x6e\151\x6f\x72\141\x6e\147\x65\137\x73\141\155\154\x5f\154\151\x63\145\156\x73\145\x5f\x6b\x65\x79")) {
goto lg;
}
$xl = "\x50\114\x55\x47\111\116\x5f\103\117\116\x46\111\x47\125\x52\x41\124\x49\117\x4e";
variable_set("\155\x69\156\151\x6f\x72\141\x6e\x67\145\137\x73\141\155\154\x5f\x73\164\141\164\x75\x73", $xl);
goto TD;
lg:
$Rm = variable_get("\155\x69\156\x69\157\x72\141\156\147\x65\137\163\x61\x6d\154\x5f\143\165\163\x74\157\155\145\x72\137\141\x64\x6d\151\x6e\x5f\164\157\153\145\156");
$PW = AESEncryption::decrypt_data(variable_get("\x6d\151\156\151\157\x72\141\x6e\147\145\x5f\x73\141\x6d\x6c\x5f\154\x69\143\x65\156\x73\145\137\153\x65\171"), $Rm);
$ug = variable_get("\155\x69\156\151\157\162\x61\156\x67\x65\137\163\x61\x6d\154\x5f\x63\165\163\164\157\155\x65\162\137\141\144\x6d\x69\156\137\145\x6d\141\151\154", NULL);
$pw = variable_get("\x6d\151\x6e\x69\x6f\162\141\x6e\x67\145\137\163\141\155\x6c\137\x63\165\163\164\157\x6d\145\162\x5f\141\144\x6d\151\156\137\x70\150\x6f\x6e\x65", NULL);
$WS = new MiniorangeSAMLCustomer($ug, $pw, NULL, NULL);
$jz = json_decode($WS->verifyLicense($PW), true);
if (strcasecmp($jz["\163\x74\141\164\x75\163"], "\x53\125\x43\103\105\x53\123") == 0) {
goto NF;
}
drupal_set_message(t("\114\x69\143\x65\x6e\x73\x65\40\x6b\145\x79\x20\x66\x6f\162\x20\x74\150\x69\x73\x20\151\x6e\x73\x74\141\156\x63\x65\x20\151\163\x20\x69\156\x63\x6f\162\x72\x65\143\x74\56\40\115\141\153\x65\40\x73\x75\162\145\x20\x79\157\165\40\150\x61\166\145\40\156\x6f\x74\40\164\141\155\x70\x65\162\x65\144\x20\167\151\164\x68\x20\x69\x74\x20\141\164\x20\141\x6c\x6c\56\x20\120\154\145\141\x73\145\x20\145\156\x74\x65\162\x20\x61\40\166\x61\x6c\x69\144\x20\x6c\x69\143\x65\x6e\x73\145\x20\x6b\x65\171\x2e"), "\145\162\x72\x6f\162");
variable_del("\155\x69\x6e\x69\x6f\x72\x61\x6e\147\145\137\163\x61\x6d\154\137\154\151\x63\x65\156\163\x65\137\153\145\x79");
goto G1;
NF:
drupal_set_message(t("\131\x6f\x75\x72\40\154\151\x63\x65\156\163\145\x20\x69\163\x20\x76\145\162\x69\x66\151\145\x64\56\x20\131\157\165\40\143\x61\156\x20\156\157\167\x20\x73\x65\164\x75\x70\40\x74\x68\x65\x20\x70\154\165\x67\x69\x6e\56"));
G1:
TD:
goto Ta;
Gy:
variable_set("\x6d\x69\156\151\157\x72\x61\156\x67\x65\137\163\141\155\154\x5f\x63\x75\163\164\x6f\155\x65\x72\x5f\141\x64\155\151\x6e\137\145\x6d\x61\151\x6c", $ug);
variable_set("\155\x69\156\x69\x6f\x72\x61\x6e\x67\x65\x5f\163\141\x6d\x6c\x5f\x63\x75\x73\164\157\155\145\162\x5f\141\144\155\x69\156\x5f\160\x68\x6f\x6e\145", $pw);
variable_set("\x6d\x69\x6e\151\157\x72\x61\x6e\x67\145\137\163\141\155\154\x5f\143\x75\x73\164\157\155\145\162\x5f\141\144\155\151\156\x5f\x70\x61\x73\x73\167\x6f\162\x64", $QV);
$yP = json_decode($N2->sendOtp());
if (!($yP->status == "\x53\x55\103\x43\105\x53\x53")) {
goto jp;
}
variable_set("\x6d\x69\156\x69\x6f\x72\141\x6e\147\x65\x5f\x73\141\155\x6c\x5f\x74\x78\137\x69\144", $yP->txId);
$xl = "\x56\101\114\x49\104\101\x54\x45\x5f\x4f\x54\120";
variable_set("\155\x69\156\x69\157\162\141\156\147\x65\x5f\163\x61\155\x6c\x5f\163\164\x61\x74\165\x73", $xl);
drupal_set_message(t("\x56\x65\162\x69\x66\171\x20\145\155\x61\x69\154\40\141\144\x64\162\145\163\x73\x20\x62\x79\x20\145\x6e\164\x65\162\151\156\147\40\164\x68\x65\x20\160\x61\163\163\x63\x6f\144\145\40\163\145\156\x74\40\x74\x6f\40\100\165\x73\145\162\156\141\x6d\145", array("\100\x75\163\x65\x72\156\141\x6d\145" => $ug)));
jp:
goto Ta;
EG:
drupal_set_message(t("\143\x55\x52\114\x20\151\x73\40\156\157\164\x20\x65\156\141\142\x6c\x65\x64\x2e\x20\120\x6c\145\x61\163\x65\x20\145\156\x61\x62\154\145\40\143\x55\x52\114"), "\145\162\x72\x6f\x72");
Ta:
}
function miniorange_saml_back(&$gN, $hL)
{
$xl = "\103\x55\x53\124\x4f\x4d\x45\122\137\123\105\x54\x55\120";
variable_set("\x6d\x69\156\151\x6f\x72\x61\156\x67\145\x5f\163\x61\x6d\x6c\x5f\163\x74\141\x74\165\163", $xl);
variable_del("\x6d\151\156\x69\157\x72\x61\x6e\x67\145\137\163\141\x6d\154\x5f\x63\x75\163\164\157\155\145\x72\137\141\144\155\151\156\137\145\155\x61\151\154");
variable_del("\155\x69\156\x69\x6f\x72\141\x6e\x67\145\x5f\163\x61\155\154\x5f\143\165\x73\x74\x6f\155\145\162\137\x61\144\155\x69\156\137\x70\150\157\156\x65");
variable_del("\155\151\x6e\151\x6f\x72\141\156\147\x65\x5f\163\x61\x6d\154\137\x74\x78\x5f\151\144");
drupal_set_message(t("\122\145\147\151\163\x74\x65\162\x2f\114\x6f\x67\151\156\x20\167\x69\164\150\40\171\x6f\x75\162\x20\x6d\151\x6e\x69\117\162\141\x6e\147\x65\40\101\143\143\157\165\x6e\164"));
}
function miniorange_saml_validate_license_submit(&$gN, $hL)
{
$PW = trim($gN["\x6d\151\x6e\151\x6f\x72\x61\156\147\145\137\x73\x61\155\154\x5f\154\151\143\145\x6e\163\145\x5f\153\145\x79"]["\43\x76\x61\x6c\x75\x65"]);
$ug = variable_get("\x6d\x69\156\151\157\x72\141\x6e\x67\145\x5f\x73\x61\x6d\x6c\137\143\x75\x73\164\x6f\x6d\145\x72\137\141\x64\155\151\x6e\137\145\155\141\x69\154", NULL);
$pw = variable_get("\x6d\x69\156\x69\157\x72\141\x6e\147\x65\137\163\141\155\154\137\143\x75\x73\164\x6f\155\145\x72\137\141\x64\155\x69\x6e\137\160\150\x6f\156\145", NULL);
$WS = new MiniorangeSAMLCustomer($ug, $pw, NULL, NULL);
$jz = json_decode($WS->verifyLicense($PW), true);
if (strcasecmp($jz["\x73\x74\x61\164\x75\163"], "\x53\125\103\103\x45\x53\123") == 0) {
goto mm;
}
if (strcasecmp($jz["\163\164\x61\x74\x75\163"], "\x46\101\111\x4c\x45\x44") == 0) {
goto aR;
}
drupal_set_message(t("\x41\156\x20\x65\162\x72\157\162\x20\157\x63\x63\165\x72\x65\144\40\x77\x68\151\154\x65\40\x70\162\x6f\143\x65\163\x73\x69\156\147\40\x79\157\x75\x72\x20\162\145\x71\x75\145\163\164\56\x20\120\154\145\x61\x73\145\40\124\162\x79\40\141\x67\x61\151\x6e\56"), "\x65\162\162\157\162");
goto o2;
aR:
if (strcasecmp($jz["\155\145\163\163\x61\x67\145"], "\103\x6f\x64\x65\40\150\141\163\x20\x45\x78\160\151\x72\x65\x64") == 0) {
goto L2;
}
drupal_set_message(t("\x59\157\x75\40\x68\141\x76\145\40\145\x6e\x74\x65\x72\x65\144\40\141\156\x20\151\x6e\x76\141\154\151\144\40\x6c\151\x63\145\156\x73\x65\x20\153\x65\x79\56\x20\x50\x6c\x65\141\x73\145\x20\x65\x6e\x74\x65\x72\40\x61\x20\166\141\154\151\144\40\154\151\143\x65\x6e\x73\145\40\x6b\x65\171\56"), "\145\162\x72\157\162");
goto hP;
L2:
drupal_set_message(t("\114\x69\x63\x65\156\x73\145\40\x6b\145\x79\x20\x79\x6f\165\x20\150\141\x76\x65\40\145\156\x74\x65\162\145\x64\40\x68\141\163\40\141\x6c\162\145\x61\x64\x79\x20\142\x65\145\156\x20\165\x73\145\x64\x2e\40\120\x6c\x65\141\x73\x65\40\x65\156\x74\x65\x72\x20\x61\x20\x6b\145\171\40\x77\x68\x69\x63\x68\x20\x68\141\163\40\156\x6f\164\40\142\145\145\x6e\40\x75\x73\x65\x64\x20\142\x65\146\x6f\x72\x65\x20\157\156\x20\x61\156\x79\40\157\x74\x68\x65\162\x20\151\156\x73\164\141\156\x63\145\x20\157\162\40\151\x66\40\171\x6f\165\40\150\141\166\x65\40\x65\x78\x61\165\x73\164\145\144\40\x61\x6c\x6c\x20\x79\x6f\165\162\40\x6b\145\x79\x73\x20\x74\150\145\x6e\142\x75\171\x20\x6d\x6f\x72\145\40\154\x69\143\145\x6e\x73\145\x20\x66\162\157\x6d\x20\114\x69\143\x65\156\163\151\156\147"), "\x65\x72\162\157\162");
hP:
o2:
goto Zg;
mm:
$Rm = variable_get("\x6d\151\x6e\x69\x6f\162\141\156\x67\x65\x5f\163\x61\x6d\x6c\x5f\x63\165\163\x74\157\155\x65\x72\x5f\141\144\x6d\x69\156\137\x74\157\x6b\x65\x6e");
variable_set("\x6d\x69\156\151\157\162\x61\156\147\x65\x5f\x73\x61\155\x6c\x5f\154\x69\143\145\156\163\145\137\153\145\171", AESEncryption::encrypt_data($PW, $Rm));
variable_set("\164\x5f\x73\151\164\145\137\x73\x74\x61\164\165\163", AESEncryption::encrypt_data("\x66\x61\x6c\163\145", $Rm));
variable_set("\x73\x69\164\145\137\x63\153\x5f\154", AESEncryption::encrypt_data("\x74\162\x75\x65", $Rm));
drupal_set_message(t("\x59\157\165\162\40\154\x69\x63\145\156\163\145\40\x69\x73\40\x76\145\x72\x69\146\151\x65\144\x2e\x20\131\157\165\x20\x63\141\x6e\x20\156\x6f\167\40\163\145\x74\x75\160\40\164\150\145\x20\160\154\x75\x67\x69\x6e\56"));
Zg:
}
Function Calls
| None |
Stats
| MD5 | d32db7bd60132131dfcd86c4215c63f5 |
| Eval Count | 0 |
| Decode Time | 90 ms |