X7ROOT File Manager
Current Path:
/usr/libexec/usermin
usr
/
libexec
/
usermin
/
📁
..
📁
JSON
📄
LICENCE
(1.48 KB)
📄
LICENCE.ja
(1.62 KB)
📄
README
(1.93 KB)
📄
WebminCore.pm
(7.65 KB)
📁
WebminUI
📄
acl_security.pl
(2.89 KB)
📁
at
📁
authentic-theme
📁
blue-theme
📁
changepass
📁
chfn
📄
chooser.cgi
(7.21 KB)
📁
commands
📄
config-aix
(227 B)
📄
config-cobalt-linux
(264 B)
📄
config-coherent-linux
(264 B)
📄
config-corel-linux
(264 B)
📄
config-debian-linux
(264 B)
📄
config-freebsd
(256 B)
📄
config-generic-linux
(264 B)
📄
config-gentoo-linux
(264 B)
📄
config-hpux
(243 B)
📄
config-irix
(284 B)
📄
config-lib.pl
(10.83 KB)
📄
config-macos
(260 B)
📄
config-mandrake-linux
(278 B)
📄
config-msc-linux
(264 B)
📄
config-netbsd
(283 B)
📄
config-open-linux
(264 B)
📄
config-openbsd
(241 B)
📄
config-openmamba-linux
(264 B)
📄
config-openserver
(236 B)
📄
config-osf1
(266 B)
📄
config-redhat-linux
(264 B)
📄
config-slackware-linux
(280 B)
📄
config-sol-linux
(264 B)
📄
config-solaris
(417 B)
📄
config-suse-linux
(264 B)
📄
config-trustix-linux
(264 B)
📄
config-turbo-linux
(264 B)
📄
config-united-linux
(264 B)
📄
config-unixware
(286 B)
📄
copyconfig.pl
(4.33 KB)
📁
cron
📁
cshrc
📄
date_chooser.cgi
(2.19 KB)
📄
defaultacl
(98 B)
📄
defaulttheme
(16 B)
📄
entities_map.txt
(1.47 KB)
📄
favicon.ico
(14.73 KB)
📄
feedback.cgi
(6.37 KB)
📄
feedback_form.cgi
(3.45 KB)
📁
fetchmail
📁
file
📁
filemin
📁
filter
📁
forward
📁
gnupg
📁
gray-theme
📄
group_chooser.cgi
(7.36 KB)
📄
help.cgi
(2.06 KB)
📁
htaccess
📁
htaccess-htpasswd
📁
images
📄
index.cgi
(5.55 KB)
📄
install-module.pl
(1.27 KB)
📄
install-type
(4 B)
📄
javascript-lib.pl
(14.69 KB)
📁
lang
📄
lang_list.txt
(3.41 KB)
📁
language
📁
mailbox
📁
mailcap
📄
maketemp.pl
(424 B)
📁
man
📄
mime.types
(12.42 KB)
📄
miniserv.pem
(974 B)
📄
miniserv.pl
(171.07 KB)
📁
mysql
📄
newmods.pl
(1.25 KB)
📄
os_list.txt
(33.58 KB)
📄
oschooser.pl
(4.55 KB)
📄
pam_login.cgi
(2.65 KB)
📄
password_change.cgi
(7 KB)
📄
password_form.cgi
(1.3 KB)
📄
perlpath.pl
(571 B)
📁
plan
📁
postgresql
📁
proc
📁
procmail
📁
quota
📄
robots.txt
(26 B)
📄
rpm-name
(8 B)
📁
schedule
📄
session_login.cgi
(3.35 KB)
📄
setup.sh
(24.78 KB)
📁
shell
📁
spam
📁
ssh
📄
switch_user.cgi
(404 B)
📁
telnet
📁
theme
📄
thirdparty.pl
(1.73 KB)
📁
tunnel
📁
twofactor
📄
uconfig.cgi
(1.39 KB)
📄
uconfig_save.cgi
(1.46 KB)
📄
ui-lib.pl
(82.48 KB)
📁
ulang
📄
update-from-repo.sh
(14.8 KB)
📄
updateboot.pl
(1.89 KB)
📁
updown
📄
uptracker.cgi
(2.88 KB)
📄
user_chooser.cgi
(7.29 KB)
📄
usermin-debian-pam
(104 B)
📄
usermin-init
(1.88 KB)
📄
usermin-pam
(101 B)
📄
usermin-pam-osx
(243 B)
📄
usermin-systemd
(352 B)
📁
usermount
📄
version
(6 B)
📄
web-lib-funcs.pl
(328.14 KB)
📄
web-lib.pl
(907 B)
📄
webmin-search-lib.pl
(8.93 KB)
📄
webmin_search.cgi
(2.63 KB)
Editing: webmin_search.cgi
#!/usr/bin/perl # Search Webmin modules and help pages and text and config.info $trust_unknown_referers = 1; BEGIN { push(@INC, "."); }; use WebminCore; &init_config(); do "$root_directory/webmin-search-lib.pl"; &ReadParse(); $prod = &get_product_name(); $ucprod = ucfirst($prod); &ui_print_unbuffered_header(undef, &html_escape($in{'title'}) || &text('wsearch_title', $ucprod), "", undef, 0, 1); # Validate search text $re = $in{'search'}; if ($re !~ /\S/) { &error($text{'wsearch_esearch'}); } $re =~ s/^\s+//; $re =~ s/\s+$//; # Find modules to search $mods = undef; if ($in{'mod'}) { $mods = [ ]; my %infos = map { $_->{'dir'}, $_ } &get_all_module_infos(); foreach my $mn (split(/\0/, $in{'mod'})) { my $minfo = $infos{$mn}; push(@$mods, $minfo) if ($minfo); } } # Do the search print &text('wsearch_searching', "<i>".&html_escape($re)."</i>"),"\n"; @rv = &search_webmin($re, \&print_search_dot, $mods); print &text('wsearch_found', scalar(@rv)),"<p>\n"; # Show in table if (@rv) { print &ui_columns_start( [ $text{'wsearch_htext'}, $text{'wsearch_htype'}, $text{'wsearch_hmod'}, $text{'wsearch_hcgis'} ], 100); foreach my $r (@rv) { $hi = &highlight_text($r->{'text'}); if ($r->{'link'}) { $hi = "<a href='$r->{'link'}'>$hi</a>"; } @links = ( ); foreach my $c (@{$r->{'cgis'}}) { ($cmod, $cpage) = split(/\//, $c); ($cpage, $cargs) = split(/\?/, $cpage); $ctitle = &cgi_page_title($cmod, $cpage) || $cpage; if ($r->{'mod'}->{'installed'}) { $cargs ||= &cgi_page_args($cmod, $cpage); } else { # For modules that aren't installed, linking # to a CGI is likely useless $cargs ||= "none"; } if ($cargs eq "none") { push(@links, $ctitle); } else { $cargs = "?".$cargs if ($cargs ne '' && $cargs !~ /^(\/|%2F)/); # Don't print it two times, it's very confusing if (grep(/^$ctitle$/, @links)) { my $i = 0; my $c = scalar @links; $i++ until $links[$i] eq $ctitle or $i == $c; splice(@links, $i, 1); } push(@links, "<a href='$cmod/$cpage$cargs'>$ctitle</a>"); } } if (@links > 2) { @links = ( @links[0..1], "..." ); } print &ui_columns_row([ $hi, $text{'wsearch_type_'.$r->{'type'}}, "<a href='$r->{'mod'}->{'dir'}/'>$r->{'mod'}->{'desc'}</a>", &ui_links_row(\@links, 1), ]); } print &ui_columns_end(); } else { print "<b>",&text('wsearch_enone', "<tt>".&html_escape($re)."</tt>"),"</b><p>\n"; } &ui_print_footer(); # print_search_dot() # Print one dot per second sub print_search_dot { local $now = time(); if ($now > $last_print_search_dot) { print ". "; $last_print_search_dot = $now; } }
Upload File
Create Folder