HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/local/usermin-1.750/authentic-theme/extensions/csf/csf.min.js
/*!
 * Authentic Theme (https://github.com/authentic-theme/authentic-theme)
 * Copyright Ilia Rostovtsev <programming@rostovtsev.io>
 * Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE)
 */
function __c_____undel(t){CSFpause=1,b.CSFcreateRequestObject=function(){return!1},b.CSFsendRequest=function(){return!1},b.CSFhandleResponse=function(){return!1},b.CSFgrep=function(){return!1},b.CSFtimer=function(){return!1},b.CSFpausetimer=function(){return!1},b.CSFrefreshtimer=function(){return!1},b.windowSize=function(){return!1};var e=$("html, body"),n="keydown.csf mousedown.csf click.csf click.csf2 click.csf3 click.csf4 click.csf5 click.csf6 click.csf7 click.csf8 click.csf9 ";e.off(n),$("html, body *").undelegate(n).unbind(n).off(n),Test.strContains(t,"/csf/")||"csf"!==v___module||"index.cgi"===t||$(".csf-container").removeClass("csf-container")}function csf_init(){function t(t){return!1}function e(t,e){if(!l.find(".csf-container").find('textarea[name="formdata"]').length&&$("html[data-post]").attr("data-post"))if(l.find(".csf-container").find('pre:not(:contains("<---"))').length){t&&l.find(".csf-container").find("pre").css({position:"initial",left:"initial",opacity:"0"}),i(),l.find(".csf-container").find("pre").removeClass("text-center"),l.find(".csf-container").find("pre").each(function(n,a){var i=$(this),r=Convert.htmlStrip(i.html()),o=$.trim($("#CSFgrep:first").val());o&&o.length&&CodeMirror.defineMode("highlightSearch",function(t,e){var n={token:function(t,e){var n=t.string.match(new RegExp(o,"i"));if(n&&n[1]&&(o="",$.each(n,function(t,e){Test.numeric(t)&&t>0&&(o.length?o+="|"+e:o=e)})),o=new RegExp(o,"i"),t.match(o))return"highlightSearch";for(;null!=t.next()&&!t.match(o,!1););return null}};return CodeMirror.overlayMode(CodeMirror.getMode(t,e.backdrop),n)}),i.empty(),window["log_"+n]=window.CodeMirror(this,{value:r,lineNumbers:e,mode:o?"highlightSearch":null,theme:v___available_navigation&&!f.v___theme_night_mode?f.settings_cm_editor_palette:"monokai",readOnly:!0,viewportMargin:1/0}),t&&window["log_"+n].setSize(null,$(window).outerHeight()/1.7)}).promise().done(function(){if(t&&(l.find(".csf-container").find("pre").css({position:"initial",left:"initial"}),l.find(".csf-container").find("pre").animate({opacity:1},f.$settings_animation_left_slide_time)),!t){var e=1==$("pre[style]").length?1.4:1.8;$.each($("pre[style]"),function(t,n){var a=$(window).outerHeight()/(e*$("pre[style]").length),i=17*$(this).find(".CodeMirror-code").find("pre").length;i>a?window["log_"+t].setSize(null,a):window["log_"+t].setSize(null,i-10),$(n).height($(n).find(".CodeMirror").first().height()+4)})}"logtail"!=get_server_data("post")&&"loggrep"!=get_server_data("post")||$(".CodeMirror-scroll").scrollTop($(".CodeMirror-code").height())})}else{l.find(".csf-container").find("pre").css({position:"initial",left:"initial"}),"monokai"===f.settings_cm_editor_palette&&l.find(".csf-container").find("pre").addClass("no_data");var n=l.find(".csf-container").find("pre"),a='<i class="label text-center label-transparent-15">';n.addClass("text-center"),$is_lang?n.html(a+theme_language("theme_xhred_global_empty").toUpperCase()+"</i>"):n.replaceText(/<---- /gi,"").replaceText(/ ---->/gi,"").wrapInner(a)}}function n(){$('html[data-post="viewlogs"]').length&&$.each($(".table.table-striped.table-condensed tbody tr"),function(){var t=$(this);targ=t.find('td[style*="nowrap"] button[type="button"]').attr("onclick"),__id=targ?parseInt(targ.match(/\d+/)[0]):-1,$.grep($__submenus__,function(e){$(e).attr("id")=="s"+__id&&t.after($(e))})})}function a(){setTimeout(function(){l.find(".csf-container").find(".panel-heading").prepend('\t\t\t<div class="btn-group pull-right" style="position: absolute; right: 15px; top: 17px;">\t\t\t<a class="btn btn-link text-lighter btn-filter-top-right text-decoration-none pull-left" >\t\t\t\t<label style="font-weight: 400">        &nbsp;&nbsp;<span class="fa fa-times-circle-o vertical-align-middle filter_mirror_clear text-lighter"></span>\t\t\t\t\t<input type="text" class="dataTable-mirror" placeholder="'+($is_lang?f.theme_language("theme_xhred_filter_content"):"")+'">\t\t\t\t</label>\t\t\t\t<i class="fa fa-filter"></i>\t\t\t</a>\t\t\t</div>\t\t'),l.find(".csf-container").find(".dataTables_filter").hide();var t=l.find(".csf-container").find(".btn-filter-top-right");t.unbind("click.csf"),t.on("click.csf",function(t){!$(t.target).is("input")&&$(this).find("label").slideToggle(300,function(){$(this).find("input").focus()})}),l.find(".csf-container").find(".dataTable-mirror").keyup(function(t){l.find(".csf-container").find(".dataTables_filter input").val($(this).val()).trigger("keyup"),$.trim($(this).val()).length>0?l.find(".csf-container").find(".btn-filter-top-right i").addClass("text-danger"):l.find(".csf-container").find(".btn-filter-top-right i").removeClass("text-danger")}),l.find(".csf-container").find(".btn-filter-top-right input").blur(function(t){$(this).parent("label").slideToggle(0)}),l.unbind("mousedown.csf"),$(".filter_mirror_clear").on("mousedown.csf",function(t){$(t.target).is(".filter_mirror_clear")&&page.render.content.filter.clear()}),l.unbind("keydown.csf"),l.on("keydown.csf",function(t){if(76==t.keyCode&&t.ctrlKey)return t.preventDefault(),t.stopPropagation(),void page.render.content.filter.clear();if(!f.$('aside input[name="search"]').is(":focus")){var e=t.keyCode?t.keyCode:t.which;if(!(l.find(".csf-container").find("input").is(":focus")||l.find(".csf-container").find("select").is(":focus")||l.find(".csf-container").find("textarea").is(":focus")||l.find(".csf-container").find(".modal.in").length)){var n=String.fromCharCode(e).toLowerCase();!n||!/[a-zA-Z0-9]/.test(n)||t.ctrlKey||t.altKey||t.metaKey||106===e||107===e||109===e||112===e||113===e||114===e||115===e||116===e||117===e||118===e||119===e||120===e||121===e||122===e||123===e||l.find(".csf-container").find(".dataTables_filter label input").length&&(l.find(".csf-container").find(".btn-filter-top-right").trigger("click"),l.find(".csf-container").find(".btn-filter-top-right .dataTable-mirror").focus().trigger("keyup"))}}})},0)}function i(){$(".container-fluid").removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15")}t.prototype.navigate=function(t){return!1},"logtail"!=get_server_data("post")&&(CSFpause=1),"logtail"===get_server_data("post")&&($('button[onclick="CSFrefreshtimer()"], button[onclick="CSFpausetimer()"]').addClass("heighter-28"),setTimeout(function(){$('button[onclick="CSFrefreshtimer()"]').click()},1)),"function"==typeof CSFhandleResponse&&Core.fnExtend("CSFhandleResponse",function(){if(4==CSFajaxHTTP.readyState&&200==CSFajaxHTTP.status){CSFajaxHTTP.responseText&&e(!1,!1)}}),$is_lang=1;var o={order:[],aaSorting:[],bDestroy:!0,bPaginate:!1,bInfo:!1,destroy:!0,oLanguage:{sEmptyTable:f.theme_language("theme_xhred_datatable_semptytable"),sInfo:f.theme_language("theme_xhred_datatable_sinfo"),sInfoEmpty:f.theme_language("theme_xhred_datatable_sinfoempty"),sLengthMenu:f.theme_language("theme_xhred_datatable_slengthmenu"),sLoadingRecords:f.theme_language("theme_xhred_datatable_sloadingrecords"),sProcessing:f.theme_language("theme_xhred_datatable_sprocessing"),sSearch:" ",sZeroRecords:f.theme_language("theme_xhred_datatable_szerorecords")},drawCallback:function(t){n()}};if(r=$('link[href*="configserver"], style:not([data-persist]), .csf a#toplink, .csf a#botlink, .csf div#loader, .csf a#webmintr2'),r.remove(),v___available_navigation){var s=$('body:not(".mobile-menu-toggler")');s.unbind("click.csf9"),s.on("click.csf9",function(t){$(t.target).is('a[data-toggle="tab"]')||f.navigation_hide()}),f.$("#open_webmin").length>0&&"open_webmin"!=f.$(".switch-toggle input:checked").attr("id")&&"1"==f.$("body").data("dashboard")&&f.set_switch_position("webmin"),f.$('a[href="csf/"]').parent("li").addClass("sub_active").append('<span class="current"></span>').parent("ul.sub").show().prev("li").addClass("active")}var l=$("html"),d=$("body"),c=$('body .container-fluid:not([data-dcontainer="1"])'),p=$("html").attr("data-post"),g=$('.well.well-sm:contains("csf:")').text().match(/((?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+))$/),g=g&&g[0]?g[0]:"10.xx";c.removeClass().addClass("container-fluid-original"),c.wrapInner('<div class="panel panel-default panel-injected-custom">'),d.find(".panel-injected-custom").unwrap(),l.find(".container-fluid").addClass("csf-container"),l.find(".csf-container").find(".panel-default").wrapInner('<div class="panel-body">'),l.find(".csf-container").find(".panel-default:first").css("border-top-width","4px").prepend('<div class="panel-heading" style="text-align:center"><i class="fa fa-fw fa-inverse fa-2x fa-star-o text-lighter favorites xcustom-favorites'+(v___available_navigation?"":" hidden")+'" style="position: absolute; margin-left: -32px; margin-top: 4px;"></i>&nbsp;<font size="+2">'+theme_language("theme_xhred_global_firewall")+'</font><span style="font-size:14px;display:block">ConfigServer Security & Firewall version '+g+"</span></div>"),l.find(".csf-container").find(".panel-heading + .panel-body > .panel:first").remove(),favorites_empty(),favorites_detect(),l.find(".csf-container").find(".nav.nav-tabs").addClass("hidden"),l.find(".csf-container").find('a[data-toggle="tab"][href="#other"]').parent("li").remove(),l.find(".csf-container").find(".nav.nav-tabs:hidden + .tab-content").attr("style","margin-top: -10px !important"),0===l.find(".csf-container").find('button[value="upgrade"]').length&&$("#upgradetable").remove(),l.find(".csf-container").find('a[href$="/csf/changelog.txt"]').addClass("btn btn-xxs btn-default _btn-changelog").html('<i class="fa fa-info-circle"></i>Changelog'),l.find("body table.table.table-bordered.table-striped").each(function(){$(this).addClass("table-condensed").removeClass("table-bordered").removeAttr("style")}),l.find(".csf-container").find("a#MobileView").parent(".panel-body").parent(".panel-body").parent(".panel").remove();var h=0;l.find(".csf-container").find(".mobilecontainer").length&&(h=1),l.find(".csf-container").find(".mobilecontainer").remove(),"undefined"==typeof settings_allowed_hostname&&(settings_allowed_hostname=!0);var m=h?l.find(".csf-container").find('.panel-heading:contains("Development Contribution")').parent().parent():l.find(".csf-container").find('.panel-heading:contains("Development Contribution")').parent(),u=get_server_data("hostname")==settings_allowed_hostname?1:0,b=l.find(".csf-container").find('.well.well-sm:contains("csf:")'),_=l.find(".csf-container").find('p:contains("©2006")');if(b.remove(),p){_.remove();var v=b.next("p");b.prev("br").remove(),v.addClass("text-right footer-string")}else u?h?m.remove():(m.parent().find('br, br + pre:contains("csf:")').remove(),m.parent().find("p").remove(),m.remove()):h?(m.find('br, br + pre:contains("csf:")').remove(),m.find(".panel-info").removeClass("panel-info").addClass("panel-default text-center margined-top-10 _devcon"),m.find("p").addClass("text-right footer-string")):(m.parent().find('br, br + pre:contains("csf:")').remove(),m.parent().find(".panel-info").removeClass("panel-info").addClass("panel-default text-center margined-top-10 _devcon"),m.parent().find("p").addClass("text-right footer-string"));get_server_data("post")&&$(".csf .footer-string").remove(),l.find(".csf-container").find('select:not([name="backup"], [name="profile1"], [name="profile2"], [name="do"], [name="dur"]), .csf input:not([name="comment"], [name="ip"], [name="ports"], [name="timeout"], [aria-controls*="DataTables_Table_"])').addClass("heighter-34");var x=l.find(".csf-container").find('h4:contains("iptables logs*")');if(x.length){$(".panel-body .pull-right").addClass("hidden");var y=x.next().next(".table.table-striped.table-condensed");x.addClass("col_header_custom big_big"),x.find("b").css("margin-left","4px"),y.attr("style","margin-top: -8px !important"),y.find("tbody tr:nth-child(2) td:first-child").css("min-width","200px"),$__submenus__=$(".submenu").detach(),setTimeout(function(){l.find(".csf-container").find(".panel-heading").prepend('\t\t\t<div class="btn-group pull-right" style="position: absolute; right: 15px; top: 17px;">\t\t\t<a class="btn btn-link text-lighter btn-toggle-top-right text-decoration-none pull-left" data-toggle="tooltip" data-container="body">\t\t\t\t<i class="fa fa-toggle-switch-off fa-1_25x"></i>\t\t\t</a>\t\t\t</div>\t\t');var t=".btn-toggle-top-right";l.undelegate(t,"click.csf2"),l.find("body").on("click.csf2",t,function(t){t.preventDefault(),$(this).find(".fa-toggle-switch-off").length?(l.find(".csf-container").find('button[onclick*=".show()"]')[0].click(),l.find(".csf-container").find(".btn.btn-xxs.fa-1_25x").removeClass("fa-toggle-switch-off").addClass("fa-toggle-switch"),$(this).find(".fa-toggle-switch-off").removeClass("fa-toggle-switch-off").addClass("fa-toggle-switch")):(l.find(".csf-container").find('button[onclick*=".hide()"]')[0].click(),l.find(".csf-container").find(".btn.btn-xxs.fa-1_25x").removeClass("fa-toggle-switch").addClass("fa-toggle-switch-off"),$(this).find(".fa-toggle-switch").addClass("fa-toggle-switch-off").removeClass("fa-toggle-switch"))})},0),$('html[data-post="viewlogs"] button.glyphicon.glyphicon-resize-vertical').addClass("btn-xxs").removeClass("glyphicon glyphicon-resize-vertical").addClass("fa fa-toggle-switch-off fa-1_25x").removeAttr("data-tooltip").removeAttr("data-title").removeAttr("data-original-title");var C=".table.table-striped.table-condensed tbody tr";$("body").undelegate(C,"click.csf3"),$("body").on("click.csf3",C,function(t){$(this).find("button").trigger("click")});var C=".btn.btn-xxs.fa-1_25x";$("body").undelegate(C,"click.csf4"),$("body").on("click.csf4",C,function(t){t.preventDefault(),t.stopImmediatePropagation(),$(this).hasClass("fa-toggle-switch-off")?$(this).removeClass("fa-toggle-switch-off").addClass("fa-toggle-switch"):$(this).removeClass("fa-toggle-switch").addClass("fa-toggle-switch-off")}),$(".table.table-striped.table-condensed").dataTable(o),a(),setTimeout(function(){$(".btn-filter-top-right").parent().css("right","58px")},100)}if(l.find(".csf-container").find('select[name="dur"]')[0]){var w=l.find(".csf-container").find('select[name="dur"]')[0].nextSibling;"."==w.nodeValue&&$(w).remove()}$('html[data-post="conf"] .csf form .comment > br:first-child').map(function(){this.previousSibling.nodeValue&&$(this.previousSibling).wrap('<span class="fst-ln-c">')});l.find(".csf-container").find("#paginatediv2.paginationstyle > select").each(function(){$(this).attr("style","vertical-align: top !important")}),l.find(".csf-container").find("#paginatediv2 > a").each(function(){$(this).attr("style","vertical-align: baseline !important")}),l.find(".csf-container").find("p > select").each(function(){$(this).attr("style","vertical-align: baseline !important")});var k=f.v___theme_night_mode_enabled||f.v___theme_night_mode?1:0;if(l.find(".csf-container").find('img[src*="csfimages/loader.gif"]').each(function(){$(this).attr("src",(v___available_navigation?f.v___location_prefix:"")+"/images/loader-horizontal"+(k?"_dark":"")+".gif").css("margin-left","10px")}),l.find(".csf-container").find(".paginationstyle a").each(function(){$(this).addClass("btn btn-default")}),l.find(".csf-container").find('img[src^="lfd_"], img[src^="/csf/lfd_"]').each(function(){$(this).parents("table").removeClass("table-striped")}),l.find(".csf-container").find('img[src^="csfimages/delete.png"]').each(function(){$(this).replaceWith('<i class="fa fa-unlock text-success" style="font-size: 1.1em; vertical-align: middle;"></i>')}),l.find(".csf-container").find('img[src^="csfimages/perm.png"]').each(function(){$(this).replaceWith('<i class="fa fa-lock text-danger" style="font-size: 1.1em; vertical-align: middle;"></i>')}),l.find(".csf-container").find('img[src^="csfimages/plus.png"]').each(function(){$(this).addClass("hidden"),$(this).after('<i class="fa fa-plus-circle text-success margined-right-2" style="font-size: 1.1em;"></i>')}),l.find(".csf-container").find('img[src^="csfimages/minus.png"]').each(function(){$(this).addClass("hidden"),$(this).after('<i class="fa fa-minus-circle text-danger margined-right-2" style="font-size: 1.1em;"></i>')}),l.find(".csf-container").find("fieldset legend b").each(function(){$(this).text().indexOf("Edit ConfigServer Firewall")>=0&&($submit_changes=l.find(".csf-container").find('input[value="Change"]'),$submit_changes.addClass("csf-submit_changes"),$submit_changes.unbind("click.csf5"),$submit_changes.on("click.csf5",function(){l.find(".csf-container").find('input[value="saveconf"]').parent("form").submit()}))}),"undefined"!=typeof __csf__listen_log_grep&&clearInterval(__csf__listen_log_grep),l.find(".csf-container").find("#CSFgrep_D").length&&l.find(".csf-container").find("#CSFgrep_E").length&&l.find(".csf-container").find("#CSFgrep_i").length&&(l.find(".csf-container").find('select, input[type="text"], button[onclick="CSFgrep()"]').removeClass("heighter-34").addClass("heighter-28"),l.find(".csf-container").find("#CSFgrep_i, #CSFgrep_E, #CSFgrep_D").attr("style","vertical-align: middle; margin-right: 4px;"),l.find(".csf-container").find("#CSFajax").css("margin-bottom","4px")),l.find(".csf-container").find("#CSFajax.csf-box").addClass("csf_force_log_size"),"function"==typeof CodeMirror&&e(!1,!1),"function"==typeof window.CodeMirror&&function(){if($("html[data-post]").attr("data-post")){var t=l.find(".csf-container").find('textarea[name="formdata"]');t.length&&i(),t.each(function(t,e){var n=$(this);$parent_width=n.parent("td").width();var a=window.CodeMirror.fromTextArea(e,{mode:{name:"rpm-spec"},matchBrackets:!0,lineNumbers:!0,keyMap:"sublime",highlightSelectionMatches:{annotateScrollbar:!0},indentUnit:0,autofocus:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete"},styleActiveLine:!0,lineWrapping:!0,theme:v___available_navigation&&!f.v___theme_night_mode?f.settings_cm_editor_palette:"monokai"});$window_height=$(window).outerHeight()-$(window).outerHeight()/2,a.setSize($parent_width,$window_height),$(window).resize(function(){$parent_width=n.parent("td").width(),$window_height=$(window).outerHeight()-$(window).outerHeight()/2,a.setSize($parent_width,$window_height)})})}}(),"fix"===get_server_data("post")){var S=$("button.confirmButton");S.off("click"),S.removeAttr("data-toggle data-target data-query type data-original-title title"),$.each(S,function(){$(this).attr("href",$(this).attr("data-href")),$(this).removeAttr("data-href"),$(this).removeClass("confirmButton").replaceTagName("a")})}if("viewports"===get_server_data("post")&&(l.find(".csf-container").find(".panel .panel-body table.table-striped").each(function(){l.find(".csf-container").find("h4").addClass("col_header_custom").attr("style","margin-bottom: -5px !important; margin-top: 2px !important"),l.find(".csf-container").find("h4").text("Ports listening for external connections"),$(this).dataTable(o)}),a()),"temp"===get_server_data("post")&&(l.find(".csf-container").find('table:not(:contains("©2006-"))').each(function(){$('html[data-post="temp"] tr td .btn').attr("data-placement","right"),$('html[data-post="temp"] tr td .btn').addClass("btn-xxs").find("span.glyphicon.glyphicon-ban-circle").removeClass("glyphicon glyphicon-ban-circle").addClass("fa fa-ban"),$('html[data-post="temp"] tr td .btn').find("span.glyphicon.glyphicon-ok-circle").removeClass("glyphicon glyphicon-ok-circle").addClass("fa fa-unlock"),$.each($('html[data-post="temp"] tr td a.btn'),function(t,e){$(this).attr("data-placement","right"),$(this).addClass("btn-xxs"),$(this).hasClass("btn-danger")&&$(this).addClass("margined-right-8")}),$(this).dataTable(o),setTimeout(function(){l.find(".csf-container").find(".dataTable thead tr th:eq(0)").addClass("no-controls")},10)}),a(),$('.dataTables_wrapper + div:contains("There are no temporary IP entries")').remove(),$('html[data-post="temp"] .dataTables_wrapper + div').find("a").addClass("btn-xxs btn-inverse").removeClass("btn-success").prepend('<i class="fa fa-fw fa-unlock">&nbsp;</i>')),!get_server_data("post")){l.find(".csf-container").find('button[value="conf"]').prepend('<i class="fa fa-cog margined-right-5"></i>'),l.find(".csf-container").find('button[value="enable"]').addClass("page_footer_submit btn-success").removeClass("btn-default").prepend('<i class="fa fa-toggle-switch fa-1_25x margined-right-5"></i>'),l.find(".csf-container").find('button[value="disable"]').addClass("page_footer_submit btn-danger").removeClass("btn-default").prepend('<i class="fa fa-toggle-switch-off fa-1_25x margined-right-5"></i>'),l.find(".csf-container").find('button[value="restart"]').addClass("page_footer_submit btn-info").removeClass("btn-default").prepend('<i class="fa fa-circle-o-notch margined-right-5"></i>'),l.find(".csf-container").find('button[value="denyf"]').addClass("page_footer_submit btn-warning").removeClass("btn-default").prepend('<i class="fa fa-unlock margined-right-5"></i>');var T=l.find(".csf-container").find('[name="template"], [name="ignorefile"]');T.next().addClass("heighter-34").attr("style","min-height: 32px !important"),T.attr("style","margin-right: -2px !important"),T[1]&&T[1].length&&$(T[1]).attr("style","margin-right: -4px !important")}var F=$('p:contains("..."):contains("Done")');if(F.length||$('html[data-post="logtail"], \t\t\t\t\t\t\t\t\thtml[data-post="allow"],\t\t\t\t\t\t\t\t\thtml[data-post="deny"],\t\t\t\t\t\t\t\t\thtml[data-post="redirect"],\t\t\t\t\t\t\t\t\thtml[data-post="ignorefiles"],\t\t\t\t\t\t\t\t\thtml[data-post="dirwatch"],\t\t\t\t\t\t\t\t\thtml[data-post="dyndns"],\t\t\t\t\t\t\t\t\thtml[data-post="templates"],\t\t\t\t\t\t\t\t\thtml[data-post="logfiles"],\t\t\t\t\t\t\t\t\thtml[data-post="blocklists"],\t\t\t\t\t\t\t\t\thtml[data-post="syslogusers"]').length?($("#csfreturn").parent("form").parent("div").prev("hr").replaceTagName("br"),F.remove()):$('html[data-post="servercheck"], html[data-post="readme"], html[data-post="viewlogs"], html[data-post="chart"], html[data-post="loggrep"], html[data-post="viewports"], html[data-post="profiles"], html[data-post="status"], html[data-post="sips"], html[data-post="temp"]').length&&($('html[data-post="temp"]')&&$('a[href="index.cgi?action=temprm&ip=all"]').length||$("#csfreturn").parent("form").parent("div").prev("hr").replaceTagName("br")),"profiles"===get_server_data("post")){var M=$(".table.table-striped.table-condensed:first thead");M.find("th:last-child").remove(),M.find("th").attr("colspan","2")}var z=$("#csfreturn").length;$('#csfreturn, \t\t   html[data-post="rblcheckedit"] input[value="rblcheck"] + input,\t\t   html[data-post="serverchecksave"] input[value="servercheck"] + input,\t\t   html[data-post="temprm"] input[value="temp"] + input,\t\t   html[data-post="temptoperm"] input[value="temp"] + input\t\t').replaceWith('<button type="submit" class="btn btn-'+(z?"primary":"primary margined-top-10")+' page_footer_submit"><i class="fa fa-fw fa-arrow-left">&nbsp;</i> <span>'+(z?$is_lang?f.theme_language("theme_xhred_global_return_to_module_index"):"Return to module index":$is_lang?f.theme_language("theme_xhred_global_return"):"Return")+"</span></button>");var D=$('html input[value="lfdrestart"] + input, html input[value="restart"] + input, html input[value="restartboth"] + input'),R="Save",A="fa-circle-check";D.length&&(R=D.val(),A="fa-circle-o-notch");var I=$('input[value="Change"],\t\thtml:not([data-post=""]) input[value="restartboth"] + input,\t\thtml:not([data-post=""]) input[value="lfdrestart"] + input,\t\thtml:not([data-post=""]) input[value="restart"] + input\t\t');I.parents("form").nextAll("br").remove(),I.replaceWith('<button type="submit" class="btn btn-default page_footer_submit'+(D.length?" __restart":"")+'"><i class="fa fa-fw '+A+'">&nbsp;</i> '+R+"</button>");var H=".panel-heading font",P=$(".bs-callout:visible");if(P.length&&!$(H+" + .circles").length&&$(H).after('<span class="circles"></span>'),$.each(P,function(){var t=$.trim($(this).attr("class").replace("bs-callout","").replace("bs-callout-","").replace("text-center","").replace("collapse","")),e=$(this).text();e&&($(H+" + .circles").prepend('<span data-toggle="tooltip" data-container="body" data-html="true" data-placement="bottom" data-title="'+e+'" class="circle '+t+'"><i class="fa fa-'+("warning"==t||"danger"==t?"exclamation-circle":"info"==t?"info-circle":"check-circle")+'"></i></span>'),$(this).remove())}),""!==$("html").attr("data-post")){if(l.find(".csf-container").find(".btn-primary.page_footer_submit").length){l.find(".csf-container").find(".panel-heading font").before('<a data-toggle="tooltip" data-container="body" data-html="true" data-placement="auto top" title="'+$.trim($(".page_footer_submit.btn-primary:first").text())+'"  href="'+v___location_prefix+'/csf/index.cgi" class="btn btn-link footer_module_index_top btn-squiare-headln2 text-lighter-slight"><i class="fa fa-return"></i></a>');$("body").undelegate(".footer_module_index_top","click.csf6"),$("body").on("click.csf6",".footer_module_index_top",function(t){t.preventDefault(),$("body").find(".btn.btn-primary.page_footer_submit").after('<input type="submit" class="submit_tmp_index hidden">'),$(".submit_tmp_index").trigger("click")})}}else{var j=l.find(".csf-container").find('button[value="conf"]'),E=(j.text(),j.parent("form").parent("td").parent("tr").addClass("hidden").detach()),q=$('#home form[action="index.cgi"] table').length,K=l.find(".csf-container").find('button[value="readme"]');K.text(),K.parent("td").parent("tr").addClass("hidden").detach();$("#csf > table > tbody").append(E),l.find(".csf-container").find(".panel-heading font").before('<div class="btn-group btn-group-csf-home"><a href="/" data-toggle="tooltip" data-container="body" data-html="true" data-placement="auto top" title="'+($is_lang?f.theme_language("theme_xhred_global_module_config"):"Module config")+'" class="btn btn-link text-lighter ported_module_csf_conf"><i class="fa fa-cog"></i></a><a href="/" data-toggle="tooltip" data-container="body" data-html="true" data-placement="auto top" title="'+($is_lang?f.theme_language("theme_xhred_global_help"):"Module help")+'" class="btn btn-link text-lighter ported_module_csf_help"><i class="fa fa-question-circle"></i></a></div>');var C="a.ported_module_csf_conf";$("body").undelegate(C,"click.csf7"),$("body").on("click.csf7",C,function(t){t.preventDefault(),j.after('<input name="action" value="conf" type="hidden">').trigger("click")});var C="a.ported_module_csf_help";$("body").undelegate(C,"click.csf8"),$("body").on("click.csf8",C,function(t){t.preventDefault(),j.after('<input name="action" value="readme" type="hidden">').trigger("click")}),q||l.find(".csf-container").find("#home").remove()}var L=$(".page_footer_submit.btn-primary").parent("form").parent("div");L.prev("hr").remove();var N=L.addClass("margined-bottom-20").detach();l.find(".csf-container").append(N),document.title=get_server_data("title-initial")}var b=window,f=b,html=$("html"),r=$('link[href*="configserver"]'),empty=$("style:not([data-persist])"),v___theme_night_mode_enabled=$('html[data-background-style="nightRider"]').length&&$('link[href*="nightrider"]').length?1:0;f.v___initial_load=0,empty.remove(),r.remove();