Sindbad~EG File Manager
jQuery(function(c){c("input[name=peepso_admin_verbose_tabs]").on("click",_.throttle(function(e,t){var n=c(".ps-label-optional"),a=peepsodata.ajaxurl;this.checked?n.show():n.hide(),t||c.post({url:a,data:{action:"peepso_admin_verbose_tabs",value:+this.checked}})},1e3)).triggerHandler("click",[!0]),c("input[name=peepso_admin_verbose_fields]").on("click",_.throttle(function(e,t){var n=c(".lbl-descript");url=peepsodata.ajaxurl,action="peepso_admin_verbose_fields",this.checked?n.show():n.hide(),t||c.post({url:url,data:{action:action,value:+this.checked}})},1e3)).triggerHandler("click",[!0]),c("input[name^=site_license_]").attr("readonly","readonly").css("opacity",.5),c("input[name=bundle_license]").add(c(".license_status_check").closest(".form-group").find("input[type=text]")).on("input",function(){var e=this.value.replace(/[^a-zA-Z0-9]/g,"");this.value!==e&&(this.value=e)}),c("input[name=bundle_license]").on("input",_.throttle(function(e){var t=c(".license_status_check"),n=this.value,a=n.trim();n!==a&&(this.value=n=a),t.each(function(){c(this).closest("label").next("div.form-field").find("input").val(n)})},100)),c("input[name=loadmore_enable]").on("click",_.throttle(function(){var e=c("select[name=loadmore_repeat]").closest(".form-group");this.checked?e.show():e.hide()},100)).triggerHandler("click"),c("select[name=notification_ajax_delay_min]").on("change",_.throttle(function(){var e=c("select[name=notification_ajax_delay]"),t=+e.val(),n=+this.value;t<n&&e.val(n)},100)),c("select[name=notification_ajax_delay]").on("change",_.throttle(function(){var e=+c("select[name=notification_ajax_delay_min]").val();+this.value<e&&c(this).val(e)},100)).triggerHandler("change"),c("input[name=brute_force_enable]").on("click",_.throttle(function(){var e=c("select[name=brute_force_max_retries]"),t=c("textarea[name=brute_force_whitelist_ip]"),e=e.closest(".form-group"),t=t.closest(".form-group").next(".clearfix"),e=e.add(t).add(e.nextUntil(t));this.checked?e.show():e.hide()},100)).triggerHandler("click"),c(document).ready(function(){c("input[name=site_reporting_enable]").on("click",_.throttle(function(){var e=c(this).closest(".form-group").nextAll(".form-group");this.checked?(e.show(),c("input[name=reporting_notify_email]").triggerHandler("click")):e.hide()},100)).triggerHandler("click"),c("input[name=reporting_notify_email]").on("click",_.throttle(function(){var e=c("textarea[name=reporting_notify_email_list]").closest(".form-group");this.checked?e.show():e.hide()},100)).triggerHandler("click"),c("input[name=site_registration_disabled]").on("click",_.throttle(function(){var e=c("input[name=registration_redirect_wp_to_peepso]"),t=c("input[name=registration_confirm_email_field]"),n=c("input[name=site_registration_enable_ssl]"),e=e.add(t).add(n).closest(".form-group");this.checked?e.hide():e.show()},100)).triggerHandler("click");var r,t,e=c("input[name='avatars_wordpress_only']");function n(){peepso.postJson("adminConfigLicense.check_license",{plugins:t},function(e){var t,n,a,i;if(e.success)for(a in t=e.data&&e.data.valid||{},n=e.data&&e.data.details||{},t)+t[a]?(i='<i class="ace-icon fa fa-check bigger-110" style="color:green"></i>',c("#error_"+a).hide()):(i='<i class="ace-icon fa fa-times bigger-110" style="color:red"></i>',c("#error_"+a).show()),n[a]&&(i=i+"<br/>"+n[a]),r.filter("#"+a).html(i)})}e.length&&e.on("change",function(){c(this).is(":checked")?(c("#field_avatars_peepso_only").fadeOut(500).find("input[name=avatars_peepso_only]").attr("disabled","disabled"),c("#field_avatars_peepso_gravatar").fadeOut(500),c("#field_avatars_wordpress_only_desc").fadeIn(500)):(c("#field_avatars_peepso_only").fadeIn(500).find("input[name=avatars_peepso_only]").removeAttr("disabled"),c("#field_avatars_peepso_gravatar").fadeIn(500),c("#field_avatars_wordpress_only_desc").fadeOut(500))}).trigger("change"),r=c(".license_status_check"),t={},r.length&&(r.each(function(){var e=c(this);t[e.attr("id")]=e.data("plugin-name"),e.closest("label").next("div.form-field").find("input").on("input focus blur",_.throttle(function(e){var t=this.value,n=t.trim();t!==n&&(this.value=n)},500))}),n(),setInterval(function(){n()},3e4));var a,e=c("#reset-check");e.length&&(a=c("#reset-do"),e.on("click",function(){this.checked?a.removeAttr("disabled"):a.attr("disabled","disabled")}),a.on("click",function(e){e.preventDefault(),e.stopPropagation();e=(e=window.location.href).replace("&reset=1","");window.location=e+"&reset=1"}));var i,o,e=window.location.href.match(/page=(peepso(?:[-_a-z]+)?)(?:&(tab=[-a-z]+))?/i),l="rgba(240,245,250,.7)";e&&((i=c("#toplevel_page_peepso li.current ul.wp-submenu-wrap").find("a[href]")).length&&(o=e[2]?i.filter('[href$="'+e[2]+'"]'):i.eq(0)),i.not(o).css({color:l,fontWeight:"normal"}).on("mouseenter",function(){c(this).css({color:"#00b9eb"})}).on("mouseleave",function(){c(this).css({color:l})}))});var p={};function e(){c("input[type=text].validate").off("keyup.validate").on("keyup.validate",function(){var l,s,e=c(this);s=(l=e).data(),clearTimeout(t),t=setTimeout(function(){var e,t,n,a,i,r,o;"int"===s.ruleType?(n=s,t=+(e=l).val(),i=e.attr("name"),n.ruleMin=+n.ruleMin,n.ruleMax=+n.ruleMax,n.ruleMin&&t<n.ruleMin||n.ruleMax&&t>n.ruleMax?(d(e,n),p[i]=!0):(g(e),p[i]=!1,delete p[i])):"email"===s.ruleType?(t=s,n=(e=l).val(),/^([*+!.&#$¦\'\\%\/0-9a-z^_`{}=?~:-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,15})$/i.test(n)?(g(e),p[name]=!1,delete p[name]):(d(e,t),p[name]=!0)):(i=s,r=(a=l).val(),o=a.attr("name"),i.ruleMinLength=+i.ruleMinLength,i.ruleMaxLength=+i.ruleMaxLength,i.ruleMinLength&&r.length<i.ruleMinLength||i.ruleMaxLength&&r.length>i.ruleMaxLength?(d(a,i),p[o]=!0):(g(a),p[o]=!1,delete p[o])),u()},300)}).trigger("keyup")}var t=!1;function d(e,t){e.hasClass("error")||(t.ruleMessage&&!e.next(".validate-error").length&&c(['<div class="validate-error tooltip bottom">','<div class="tooltip-arrow"></div>','<div class="tooltip-inner">',t.ruleMessage,"</div></div>"].join("")).insertAfter(e),e.addClass("error"))}function g(e){e.hasClass("error")&&e.removeClass("error")}var n=!1;function u(){clearTimeout(n),n=setTimeout(a,300)}function a(){var e,t=!1;for(e in p)if(p[e]){t=!0;break}var n=c("#peepso button[type=submit]");t?n.attr("disabled","disabled"):n.removeAttr("disabled")}var i=!1;function r(){clearTimeout(i),i=setTimeout(o,300)}function o(){c("#edit_warning").show()}function l(e){c(".img-landing-page-preview").attr("src",e).show(),c(".btn-lp-img-remove").show(),c(".default-img-selected").hide(),c("#landing_page_image").val(e)}function s(){c("#landing_page_image").val(""),c(".img-landing-page-preview").attr("src",c("#landing_page_image_default").val()),c(".btn-lp-img-remove").hide(),c(".default-img-selected").show()}function h(){var e=c('[id*="field_wordfilter"]').not("#field_wordfilter_enable");c('[name="wordfilter_enable"]').is(":checked")?e.show():e.hide()}function m(){var e=c('[id*="field_polls"]').not("#field_polls_enable");c('[name="polls_enable"]').is(":checked")?e.show():e.hide()}c(function(){e(),c("#peepso button[type=reset]").on("click",function(){setTimeout(e,100),setTimeout(function(){c("#edit_warning").hide()},1e3)}),setTimeout(function(){c("#peepso").find("input[type=text], textarea").on("keyup",function(){r()}),c("#peepso").find("input[type=checkbox], select").on("change",function(){r()})},1e3)}),c(document).ready(function(){0<c(".inline-select").length&&c(".inline-select").on("click",function(e){c(this).closest("ul").find("a").removeClass("btn-primary"),c(this).closest(".form-group").find('input[type="hidden"]').val(c(this).attr("data-value")),c(this).addClass("btn-primary"),e.preventDefault()});var e=c("input[name='opengraph_enable']");function n(e){c(".img-og-preview").attr("src",e).show(),c(".btn-img-remove").show(),c(".no-img-selected").hide(),c("#opengraph_image").val(e)}function t(){c("#opengraph_image").val(""),c(".img-og-preview").attr("src",""),c(".img-og-preview, .btn-img-remove").hide(),c(".no-img-selected").show()}e.length&&(e.on("change",function(){$selector=c(this).closest(".inside").find('[id*="field_"]').not("#field_opengraph_enable"),c(this).is(":checked")?$selector.fadeIn(500):$selector.fadeOut(500)}).trigger("change"),c("#opengraph_title").after("<p class='text-right'><span class='opengraph_title_counter'></span> Characters</p><p>Depending on where the links will be shared, the title can be cropped to even 40 characters. Keep the title short and to the point.</p>"),c(".opengraph_title_counter").html(c("#opengraph_title").val().length),c("#opengraph_title").on("keyup",function(e){c(".opengraph_title_counter").html(c("#opengraph_title").val().length)}),c("#opengraph_description").after("<p class='text-right'><span class='opengraph_description_counter'></span> Characters</p><p>Depending on where the links will be shared, the description can be cropped to even 200 characters. Keep the description short and to the point.</p>"),c(".opengraph_description_counter").html(c("#opengraph_description").val().length),c("#opengraph_description").on("keyup",function(e){c(".opengraph_description_counter").html(c("#opengraph_description").val().length)})),$og_image_prop='<a class="btn btn-sm btn-info btn-img-og" href="#">Select Image</a> <a class="btn btn-sm btn-danger btn-img-remove" href="#">Remove Image</a><span class="no-img-selected">No image selected</span><img class="img-responsive img-og-preview" src="" />',c("#opengraph_image").after($og_image_prop).hide(),""!=c("#opengraph_image").val()?n(c("#opengraph_image").val()):t(),c(".btn-img-og").on("click",function(e){var t=c(this);wp.media.editor.send.attachment=function(e,t){n(t.url)},wp.media.editor.open(t)}),c(".btn-img-remove").on("click",function(e){t(),e.preventDefault()})}),$lp_image_prop='<a class="btn btn-sm btn-info btn-img-landing-page" href="#">Select Image</a> <a class="btn btn-sm btn-danger btn-lp-img-remove" href="#">Remove Image</a><span class="default-img-selected">Default image selected</span><img class="img-responsive img-landing-page-preview" src="" />',c("#landing_page_image").after($lp_image_prop).hide(),c("#landing_page_image_default").hide(),""!=c("#landing_page_image").val()?l(c("#landing_page_image").val()):s(),c(".btn-img-landing-page").on("click",function(e){wp.media.editor.send.attachment=function(e,t){l(t.url)},wp.media.editor.open()}),c(".btn-lp-img-remove").on("click",function(e){s(),e.preventDefault()}),c(".notice.is-dismissible.peepso-new-plugin").on("click",".notice-dismiss",function(){c.post(ajaxurl,{action:"dismiss_new_plugin_notice"})}),c("form.ps-form").on("submit",function(e){var t=c("textarea[name='wordfilter_keywords']");words=t.val(),str_array=words.split(","),words=[];for(var n=0;n<str_array.length;n++)str_array[n]=str_array[n].replace(/^\s*/,"").replace(/\s*$/,""),str_array[n]&&words.push(str_array[n]);t.val(words.join(", "))}),h(),c('[name="wordfilter_enable"]').on("click",function(){h()}),m(),c('[name="polls_enable"]').on("click",function(){m()})});
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists