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 mo_ldap_local_support() { $current_user = wp_get_current_user();..
Decoded Output download
<?php
function mo_ldap_local_support()
{
$current_user = wp_get_current_user();
show_plugin_export_form();
if (get_option("mo_ldap_local_admin_email")) {
goto Jc;
}
$Of = $current_user->user_email;
goto CT;
Jc:
$Of = get_option("mo_ldap_local_admin_email");
CT:
$PR = get_option("mo_ldap_local_server_url") ? Mo_Ldap_Local_Util::decrypt(get_option("mo_ldap_local_server_url")) : '';
?>
<div class="mo_ldap_support_layout">
<h3>Support</h3>
<form name="f" method="post" action="">
<div>Need any help? Just send us a query so we can help you.<br /><br /></div>
<div>
<table class="mo_ldap_settings_table">
<tr><td>
<input type="email" class="mo_ldap_table_textbox" id="query_email" name="query_email" value="<?php
echo $Of;
?>
" placeholder="Enter your email" required />
</td>
</tr>
<tr><td>
<input type="text" class="mo_ldap_table_textbox" name="query_phone" id="query_phone" value="<?php
echo get_option("mo_ldap_local_admin_phone");
?>
" placeholder="Enter your phone"/>
</td>
</tr>
<tr>
<td>
<textarea id="query" name="query" class="mo_ldap_settings_textarea" required style="border-radius:4px;resize: vertical;width:100%" cols="52" rows="7" placeholder="Write your query here"></textarea>
</td>
</tr>
</table>
</div>
<input type="hidden" name="option" value="mo_ldap_login_send_query"/>
<input type="hidden" id="server_url" value=<?php
echo $PR;
?>
>
<input type="button" onclick="popupForm()" name="send_query" id="send_query_support" value="Submit Query" style="margin-bottom:3%;" class="button button-primary button-large" />
</form>
<br />
</div>
<script>
jQuery("#query_phone").intlTelInput();
function popupForm()
{
var queryEmail = document.getElementById("query_email").value;
var queryPhone = document.getElementById("query_phone").value;
var queryValue = document.getElementById("query").value;
var serverUrl = document.getElementById("server_url").value;
if(validateEmail()){
if(queryValue.length>0)
{
if(serverUrl.length>0){
var mo_ldap_modal = document.getElementById('ldapModal');
mo_ldap_modal.style.display = "block";
var span = document.getElementsByClassName("mo_ldap_close")[0];
document.getElementById("inner_form_email_id").value = queryEmail;
document.getElementById("inner_form_phone_id").value = queryPhone;
document.getElementById("inner_form_query_id").value = queryValue;
span.onclick = function () {
mo_ldap_modal.style.display = "none";
}
window.onclick = function (event) {
if (event.target == mo_ldap_modal) {
mo_ldap_modal.style.display = "none";
}
}
}
else
{
document.getElementById("inner_form_email_id").value = queryEmail;
document.getElementById("inner_form_phone_id").value = queryPhone;
document.getElementById("inner_form_query_id").value = queryValue;
document.getElementById('export_configuration_choice').value='';
document.getElementById('mo_ldap_export_pop_up').submit();
}
}
else
{
alert("Query field cannot be empty!");
}
}
}
function validateEmail()
{
var email = document.getElementById('query_email');
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email.value))
{
return (true)
}
else
{
alert("You have entered an invalid email address!")
return (false)
}
}
function validateQuery()
{
var query = document.getElementById('query');
if (/^[a-zA-Z?,.\(\)\/@ 0-9]*$/.test(query.value) && query.value.length >10)
{
return true;
}
else
{
alert("Please enter a valid query");
return false;
}
}
</script>
<?php
}
function show_plugin_export_form()
{
wp_enqueue_style("mo_ldap_admin_plugins_page_style", plugins_url("includes/css/mo_ldap_plugins_page.css", __FILE__));
?>
</head>
<body>
<!-- The Modal -->
<div id="ldapModal" class="mo_ldap_modal">
<!-- Modal content -->
<div class="mo_ldap_modal-content">
<span class="mo_ldap_close">×</span>
<h3 style="margin: 2%;">Send LDAP Configuration? </h3>
<form name="f" method="post" action="" id="mo_ldap_export_pop_up">
<input type="hidden" name="option" value="mo_ldap_login_send_query"/>
<input type="hidden" id="inner_form_email_id" name="inner_form_email_id" />
<input type="hidden" id="inner_form_phone_id" name="inner_form_phone_id" />
<input type="hidden" id="inner_form_query_id" name="inner_form_query_id" />
<input type="hidden" id="export_configuration_choice" name="export_configuration_choice" value ="yes">
<div>
<p style="margin:2%">
<br>
<h4>Do you also want to send us your configuration information?</h4>
<p>It helps us better understand the query and save time.<br>
<br>Configuration information includes your :
<br>1.LDAP Server Name
<br>2.Service Account DN
<br>3.Search Base
<br>4.LDAP Search Filter<br>
<br>NOTE: <b>No Passwords</b> (Service Account Password) are <b>shared</b> while sending Configuration.
</p>
<br><br>
<div class="mo_ldap_modal-footer" style="text-align: center">
<input type="submit" name="miniorange_ldap_export_submit" id="miniorange_ldap_export_submit"
class="button button-primary button-large" value="Yes"/ >
<input type="button" name="miniorange_ldap_export_skip"
class="button button-large" value="No"
onclick="document.getElementById('export_configuration_choice').value='no';document.getElementById('mo_ldap_export_pop_up').submit();"/>
</div>
</div>
</form>
</div>
</div>
<?php
}
function feature_request()
{
$current_user = wp_get_current_user();
if (get_option("mo_ldap_local_admin_email")) {
goto pv;
}
$Of = $current_user->user_email;
goto c5;
pv:
$Of = get_option("mo_ldap_local_admin_email");
c5:
?>
<div class="mo_ldap_support_layout" id="mo_ldap_support_layout_ldap" style="position: relative; line-height: 2">
<h3>Feature Request</h3>
<form name="f" method="post" action="">
<div>
<i>If you didn't find what you are looking for in the plugin or any of the licensing plans. Please let us know, we will respond back at the earliest and will guide you in the right direction as per your requirement.</i></div>
<div>
<table class="mo_ldap_settings_table">
<tr><td>
<input type="email" class="mo_ldap_table_textbox" id="query_email" name="query_email" value="<?php
echo $Of;
?>
" placeholder="Enter your email" required />
</td>
</tr>
<tr><td>
<input type="text" class="mo_ldap_table_textbox" name="query_phone" id="query_phone" value="<?php
echo get_option("mo_ldap_local_admin_phone");
?>
" placeholder="Enter your phone"/>
</td>
</tr>
<tr>
<td>
<textarea id="query" name="query" required class="mo_ldap_settings_textarea" style="border-radius:4px;resize: vertical;width:100%" cols="52" rows="7" onkeyup="mo_ldap_valid(this)" onblur="mo_ldap_valid(this)" onkeypress="mo_ldap_valid(this)" placeholder="Write your query here"></textarea>
</td>
</tr>
</table>
</div>
<input type="hidden" name="option" value="mo_ldap_login_send_feature_request_query"/>
<input type="submit" name="send_query" id="send_query" value="Submit Query" style="margin-bottom:3%;" class="button button-primary button-large" />
</form>
<br />
</div>
<script>
jQuery("#query_phone").intlTelInput();
</script>
<?php
}
?>
Did this file decode correctly?
Original Code
<?php
function mo_ldap_local_support()
{
$current_user = wp_get_current_user();
show_plugin_export_form();
if (get_option("\155\x6f\137\154\x64\x61\x70\137\154\x6f\x63\x61\x6c\x5f\141\x64\155\151\156\137\x65\x6d\x61\151\x6c")) {
goto Jc;
}
$Of = $current_user->user_email;
goto CT;
Jc:
$Of = get_option("\x6d\x6f\137\154\x64\x61\160\x5f\154\x6f\x63\141\x6c\x5f\x61\x64\x6d\151\156\x5f\x65\155\141\151\154");
CT:
$PR = get_option("\x6d\157\137\x6c\144\141\x70\137\154\157\143\141\x6c\137\x73\x65\162\166\145\162\x5f\x75\x72\154") ? Mo_Ldap_Local_Util::decrypt(get_option("\x6d\157\137\154\x64\x61\160\x5f\154\157\143\x61\x6c\137\x73\145\162\166\145\x72\x5f\165\162\154")) : '';
?>
<div class="mo_ldap_support_layout">
<h3>Support</h3>
<form name="f" method="post" action="">
<div>Need any help? Just send us a query so we can help you.<br /><br /></div>
<div>
<table class="mo_ldap_settings_table">
<tr><td>
<input type="email" class="mo_ldap_table_textbox" id="query_email" name="query_email" value="<?php
echo $Of;
?>
" placeholder="Enter your email" required />
</td>
</tr>
<tr><td>
<input type="text" class="mo_ldap_table_textbox" name="query_phone" id="query_phone" value="<?php
echo get_option("\155\157\x5f\x6c\x64\141\160\137\154\x6f\x63\x61\x6c\137\x61\144\155\x69\156\x5f\x70\150\157\156\x65");
?>
" placeholder="Enter your phone"/>
</td>
</tr>
<tr>
<td>
<textarea id="query" name="query" class="mo_ldap_settings_textarea" required style="border-radius:4px;resize: vertical;width:100%" cols="52" rows="7" placeholder="Write your query here"></textarea>
</td>
</tr>
</table>
</div>
<input type="hidden" name="option" value="mo_ldap_login_send_query"/>
<input type="hidden" id="server_url" value=<?php
echo $PR;
?>
>
<input type="button" onclick="popupForm()" name="send_query" id="send_query_support" value="Submit Query" style="margin-bottom:3%;" class="button button-primary button-large" />
</form>
<br />
</div>
<script>
jQuery("#query_phone").intlTelInput();
function popupForm()
{
var queryEmail = document.getElementById("query_email").value;
var queryPhone = document.getElementById("query_phone").value;
var queryValue = document.getElementById("query").value;
var serverUrl = document.getElementById("server_url").value;
if(validateEmail()){
if(queryValue.length>0)
{
if(serverUrl.length>0){
var mo_ldap_modal = document.getElementById('ldapModal');
mo_ldap_modal.style.display = "block";
var span = document.getElementsByClassName("mo_ldap_close")[0];
document.getElementById("inner_form_email_id").value = queryEmail;
document.getElementById("inner_form_phone_id").value = queryPhone;
document.getElementById("inner_form_query_id").value = queryValue;
span.onclick = function () {
mo_ldap_modal.style.display = "none";
}
window.onclick = function (event) {
if (event.target == mo_ldap_modal) {
mo_ldap_modal.style.display = "none";
}
}
}
else
{
document.getElementById("inner_form_email_id").value = queryEmail;
document.getElementById("inner_form_phone_id").value = queryPhone;
document.getElementById("inner_form_query_id").value = queryValue;
document.getElementById('export_configuration_choice').value='';
document.getElementById('mo_ldap_export_pop_up').submit();
}
}
else
{
alert("Query field cannot be empty!");
}
}
}
function validateEmail()
{
var email = document.getElementById('query_email');
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email.value))
{
return (true)
}
else
{
alert("You have entered an invalid email address!")
return (false)
}
}
function validateQuery()
{
var query = document.getElementById('query');
if (/^[a-zA-Z?,.\(\)\/@ 0-9]*$/.test(query.value) && query.value.length >10)
{
return true;
}
else
{
alert("Please enter a valid query");
return false;
}
}
</script>
<?php
}
function show_plugin_export_form()
{
wp_enqueue_style("\155\x6f\137\154\x64\x61\160\x5f\141\x64\155\151\x6e\137\160\x6c\x75\147\151\156\163\137\x70\141\x67\145\137\163\x74\x79\154\x65", plugins_url("\151\x6e\143\154\x75\144\145\163\57\143\163\x73\57\155\x6f\x5f\x6c\x64\141\160\x5f\160\154\x75\x67\151\x6e\x73\x5f\160\x61\147\x65\x2e\x63\163\x73", __FILE__));
?>
</head>
<body>
<!-- The Modal -->
<div id="ldapModal" class="mo_ldap_modal">
<!-- Modal content -->
<div class="mo_ldap_modal-content">
<span class="mo_ldap_close">×</span>
<h3 style="margin: 2%;">Send LDAP Configuration? </h3>
<form name="f" method="post" action="" id="mo_ldap_export_pop_up">
<input type="hidden" name="option" value="mo_ldap_login_send_query"/>
<input type="hidden" id="inner_form_email_id" name="inner_form_email_id" />
<input type="hidden" id="inner_form_phone_id" name="inner_form_phone_id" />
<input type="hidden" id="inner_form_query_id" name="inner_form_query_id" />
<input type="hidden" id="export_configuration_choice" name="export_configuration_choice" value ="yes">
<div>
<p style="margin:2%">
<br>
<h4>Do you also want to send us your configuration information?</h4>
<p>It helps us better understand the query and save time.<br>
<br>Configuration information includes your :
<br>1.LDAP Server Name
<br>2.Service Account DN
<br>3.Search Base
<br>4.LDAP Search Filter<br>
<br>NOTE: <b>No Passwords</b> (Service Account Password) are <b>shared</b> while sending Configuration.
</p>
<br><br>
<div class="mo_ldap_modal-footer" style="text-align: center">
<input type="submit" name="miniorange_ldap_export_submit" id="miniorange_ldap_export_submit"
class="button button-primary button-large" value="Yes"/ >
<input type="button" name="miniorange_ldap_export_skip"
class="button button-large" value="No"
onclick="document.getElementById('export_configuration_choice').value='no';document.getElementById('mo_ldap_export_pop_up').submit();"/>
</div>
</div>
</form>
</div>
</div>
<?php
}
function feature_request()
{
$current_user = wp_get_current_user();
if (get_option("\x6d\157\x5f\x6c\x64\141\x70\x5f\x6c\157\x63\141\154\137\141\x64\x6d\151\156\137\x65\x6d\x61\x69\x6c")) {
goto pv;
}
$Of = $current_user->user_email;
goto c5;
pv:
$Of = get_option("\155\157\137\154\144\141\x70\x5f\154\x6f\x63\141\154\137\x61\x64\155\x69\156\137\x65\155\x61\151\154");
c5:
?>
<div class="mo_ldap_support_layout" id="mo_ldap_support_layout_ldap" style="position: relative; line-height: 2">
<h3>Feature Request</h3>
<form name="f" method="post" action="">
<div>
<i>If you didn't find what you are looking for in the plugin or any of the licensing plans. Please let us know, we will respond back at the earliest and will guide you in the right direction as per your requirement.</i></div>
<div>
<table class="mo_ldap_settings_table">
<tr><td>
<input type="email" class="mo_ldap_table_textbox" id="query_email" name="query_email" value="<?php
echo $Of;
?>
" placeholder="Enter your email" required />
</td>
</tr>
<tr><td>
<input type="text" class="mo_ldap_table_textbox" name="query_phone" id="query_phone" value="<?php
echo get_option("\x6d\x6f\x5f\x6c\144\141\x70\x5f\154\x6f\143\x61\x6c\137\x61\x64\x6d\x69\156\x5f\160\x68\157\156\x65");
?>
" placeholder="Enter your phone"/>
</td>
</tr>
<tr>
<td>
<textarea id="query" name="query" required class="mo_ldap_settings_textarea" style="border-radius:4px;resize: vertical;width:100%" cols="52" rows="7" onkeyup="mo_ldap_valid(this)" onblur="mo_ldap_valid(this)" onkeypress="mo_ldap_valid(this)" placeholder="Write your query here"></textarea>
</td>
</tr>
</table>
</div>
<input type="hidden" name="option" value="mo_ldap_login_send_feature_request_query"/>
<input type="submit" name="send_query" id="send_query" value="Submit Query" style="margin-bottom:3%;" class="button button-primary button-large" />
</form>
<br />
</div>
<script>
jQuery("#query_phone").intlTelInput();
</script>
<?php
}
?>
Function Calls
None |
Stats
MD5 | d9230178353a96a7f61102a946e6097a |
Eval Count | 0 |
Decode Time | 49 ms |