Server IP : 195.201.23.43 / Your IP : 18.117.82.179 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/unauthenticated/ |
Upload File : |
/* filter_match: show/hide table row when match string in anchor tag (<a>string</a>) * 28-Nov-2013: nawawi jamili <nawawi@rutweb.com> */ /* ie8 and below */ if ( !String.prototype.trim ) { String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g,''); }; }; function filter_match(str, _cname, _match) { _cname = _cname || "filter_match"; _match = _match || false; var show_hide = function(clear) { clear = clear || false; var ls = document.getElementsByTagName("tr"); if ( ls.length > 0 ) { for(var x=0; x < ls.length; x++) { var tt=ls[x]; var cl = tt.className; if ( !_match && cl !== _cname ) continue; if ( _match && cl.match(_cname) === null ) continue; if ( clear ) { tt.style.display=''; } else { tt.style.display='none'; } } } return ls; }; str = str.trim(); if ( str !== '' ) { var ls = show_hide(false); if ( ls.length > 0 ) { for(var x=0; x < ls.length; x++) { var cl = ls[x].className; if ( !_match && cl !== _cname ) continue; if ( _match && cl.match(_cname) === null ) continue; var y = ls[x].getElementsByTagName("a"); for(var t=0; t < y.length; t++) { var strm = y[t].innerHTML.trim(); strm = strm.replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,''); /* remove html tags */ if ( strm !== '' ) { strm = strm.toLowerCase(); if ( strm.match(str.toLowerCase()) ) { ls[x].style.display=''; } } } } } } else { show_hide(true); } }; /* show/hide filter box */ function filter_match_box(show) { show = show || true; if ( true ) { document.getElementById('filter_box').style.display=''; } else { document.getElementById('filter_box').style.display='none'; } };Private