X7ROOT File Manager
Current Path:
/usr/libexec/webmin/cluster-usermin
usr
/
libexec
/
webmin
/
cluster-usermin
/
📁
..
📄
CHANGELOG
(319 B)
📄
add.cgi
(2.04 KB)
📄
cluster-usermin-lib.pl
(7.14 KB)
📄
config
(25 B)
📄
config.info
(108 B)
📄
config.info.ca
(133 B)
📄
config.info.cs
(79 B)
📄
config.info.de
(125 B)
📄
config.info.es
(63 B)
📄
config.info.fr
(134 B)
📄
config.info.hr
(0 B)
📄
config.info.hu
(0 B)
📄
config.info.ms
(131 B)
📄
config.info.nl
(129 B)
📄
config.info.no
(127 B)
📄
config.info.pl
(122 B)
📄
delete_host.cgi
(251 B)
📄
delete_mod.cgi
(3.89 KB)
📄
edit_acl.cgi
(4.2 KB)
📄
edit_host.cgi
(3.37 KB)
📄
edit_mod.cgi
(5.42 KB)
📁
help
📁
images
📄
index.cgi
(6.02 KB)
📄
install.cgi
(7.5 KB)
📁
lang
📄
module.info
(211 B)
📄
module.info.af
(0 B)
📄
module.info.af.auto
(141 B)
📄
module.info.ar
(0 B)
📄
module.info.ar.auto
(196 B)
📄
module.info.be
(0 B)
📄
module.info.be.auto
(213 B)
📄
module.info.bg
(0 B)
📄
module.info.bg.auto
(213 B)
📄
module.info.ca
(131 B)
📄
module.info.ca.auto
(24 B)
📄
module.info.cs
(34 B)
📄
module.info.cs.auto
(105 B)
📄
module.info.da
(0 B)
📄
module.info.da.auto
(148 B)
📄
module.info.de
(125 B)
📄
module.info.de.auto
(24 B)
📄
module.info.el
(0 B)
📄
module.info.el.auto
(258 B)
📄
module.info.es
(42 B)
📄
module.info.es.auto
(109 B)
📄
module.info.eu
(0 B)
📄
module.info.eu.auto
(162 B)
📄
module.info.fa
(0 B)
📄
module.info.fa.auto
(190 B)
📄
module.info.fi
(0 B)
📄
module.info.fi.auto
(142 B)
📄
module.info.fr
(36 B)
📄
module.info.fr.auto
(115 B)
📄
module.info.he
(0 B)
📄
module.info.he.auto
(166 B)
📄
module.info.hr
(0 B)
📄
module.info.hr.auto
(157 B)
📄
module.info.hu
(34 B)
📄
module.info.hu.auto
(116 B)
📄
module.info.it
(0 B)
📄
module.info.it.auto
(125 B)
📄
module.info.ja
(0 B)
📄
module.info.ja.auto
(195 B)
📄
module.info.ko
(0 B)
📄
module.info.ko.auto
(158 B)
📄
module.info.lt
(0 B)
📄
module.info.lt.auto
(160 B)
📄
module.info.lv
(0 B)
📄
module.info.lv.auto
(145 B)
📄
module.info.ms
(112 B)
📄
module.info.ms.auto
(24 B)
📄
module.info.mt
(0 B)
📄
module.info.mt.auto
(145 B)
📄
module.info.nl
(32 B)
📄
module.info.nl.auto
(105 B)
📄
module.info.no
(33 B)
📄
module.info.no.auto
(115 B)
📄
module.info.pl
(125 B)
📄
module.info.pl.auto
(28 B)
📄
module.info.pt
(0 B)
📄
module.info.pt.auto
(145 B)
📄
module.info.pt_BR
(0 B)
📄
module.info.pt_BR.auto
(154 B)
📄
module.info.ro
(0 B)
📄
module.info.ro.auto
(141 B)
📄
module.info.ru
(0 B)
📄
module.info.ru.auto
(219 B)
📄
module.info.sk
(0 B)
📄
module.info.sk.auto
(142 B)
📄
module.info.sl
(0 B)
📄
module.info.sl.auto
(140 B)
📄
module.info.sv
(0 B)
📄
module.info.sv.auto
(138 B)
📄
module.info.th
(0 B)
📄
module.info.th.auto
(282 B)
📄
module.info.tr
(0 B)
📄
module.info.tr.auto
(146 B)
📄
module.info.uk
(0 B)
📄
module.info.uk.auto
(227 B)
📄
module.info.ur
(0 B)
📄
module.info.ur.auto
(216 B)
📄
module.info.vi
(0 B)
📄
module.info.vi.auto
(158 B)
📄
module.info.zh
(0 B)
📄
module.info.zh.auto
(126 B)
📄
module.info.zh_TW
(0 B)
📄
module.info.zh_TW.auto
(135 B)
📄
prefs.info
(28 B)
📄
refresh.cgi
(3.36 KB)
📄
save_acl.cgi
(3.28 KB)
📄
sync.cgi
(3.94 KB)
📄
sync_form.cgi
(1.78 KB)
📄
update.cgi
(4.1 KB)
📄
upgrade.cgi
(12.87 KB)
Editing: refresh.cgi
#!/usr/bin/perl # refresh.cgi # Reload the list of modules from all managed hosts require './cluster-usermin-lib.pl'; &ReadParse(); &ui_print_header(undef, $text{'refresh_title'}, ""); $| = 1; # Setup error handler for down hosts sub ref_error { $ref_error_msg = join("", @_); } &remote_error_setup(\&ref_error); # Work out which hosts @hosts = &list_usermin_hosts(); @servers = &list_servers(); if (defined($in{'id'})) { @hosts = grep { $_->{'id'} == $in{'id'} } @hosts; local ($s) = grep { $_->{'id'} == $hosts[0]->{'id'} } @servers; print "<b>",&text('refresh_header5', undef, &server_name($s)),"</b><p>\n"; } else { @hosts = &create_on_parse("refresh_header"); #print "<b>$text{'refresh_header'}</b><p>\n"; } $p = 0; foreach $h (@hosts) { local ($s) = grep { $_->{'id'} == $h->{'id'} } @servers; local ($rh = "READ$p", $wh = "WRITE$p"); pipe($rh, $wh); if (!fork()) { close($rh); if ($s) { # Refresh the list &remote_foreign_require($s->{'host'}, "usermin", "usermin-lib.pl"); if ($ref_error_msg) { # Host is down .. print $wh &serialise_variable($ref_error_msg); exit; } local $gconfig = &remote_foreign_config($s->{'host'}, undef); foreach $g ('os_type', 'os_version', 'real_os_type', 'real_os_version') { $h->{$g} = $gconfig->{$g}; } $h->{'version'} = &remote_foreign_call($s->{'host'}, "usermin", "get_usermin_version"); # Refresh modules and themes local @old = map { $_->{'dir'} } ( @{$h->{'modules'}}, @{$h->{'themes'}} ); undef($h->{'modules'}); local @mods = &remote_foreign_call($s->{'host'}, "usermin", "list_modules"); @mods = grep { !$_->{'clone'} } @mods; local @themes = &remote_foreign_call($s->{'host'}, "usermin", "list_themes"); local @added; foreach $m (@mods, @themes) { $idx = &indexof($m->{'dir'}, @old); if ($idx < 0) { push(@added, $m->{'dir'}); } else { splice(@old, $idx, 1); } } $h->{'modules'} = \@mods; $h->{'themes'} = \@themes; &save_usermin_host($h); $rv = [ \@added, \@old, $ud, $gd ]; } else { # remove from managed list &delete_usermin_host($h); $rv = undef; } print $wh &serialise_variable($rv); close($wh); exit; } close($wh); $p++; } # Read back results $p = 0; foreach $h (@hosts) { local ($s) = grep { $_->{'id'} == $h->{'id'} } @servers; local $d = &server_name($s); local $rh = "READ$p"; local $line = <$rh>; local $rv = &unserialise_variable($line); close($rh); if ($rv && ref($rv)) { @added = @{$rv->[0]}; @old = @{$rv->[1]}; if (@added && @old) { print &text('refresh_1', $d, join(" ", @added),join(" ", @old)),"\n"; } elsif (@added) { print &text('refresh_2', $d, join(" ", @added)),"\n"; } elsif (@old) { print &text('refresh_3', $d, join(" ", @old)),"\n"; } else { print &text('refresh_4', $d),"\n"; } print "<br>\n"; } elsif ($rv) { print &text('refresh_failed', $d, $rv),"<br>\n"; } else { print &text('refresh_del', $h->{'id'}),"<br>\n"; } $p++; } print "<p><b>$text{'refresh_done'}</b><p>\n"; &remote_finished(); if (defined($in{'id'})) { &ui_print_footer("edit_host.cgi?id=$in{'id'}", $text{'host_return'}, "", $text{'index_return'}); } else { &ui_print_footer("", $text{'index_return'}); }
Upload File
Create Folder