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: edit_host.cgi
#!/usr/bin/perl # edit_host.cgi # Show details of a managed host, and all the modules on it require './cluster-usermin-lib.pl'; &ReadParse(); &ui_print_header(undef, $text{'host_title'}, ""); @hosts = &list_usermin_hosts(); ($host) = grep { $_->{'id'} eq $in{'id'} } @hosts; $server = &foreign_call("servers", "get_server", $in{'id'}); @modules = @{$host->{'modules'}}; @themes = @{$host->{'themes'}}; @users = @{$host->{'users'}}; @groups = @{$host->{'groups'}}; # Show host details print "<input type=hidden name=id value=$in{'id'}>\n"; print "<table border width=100%>\n"; print "<tr $tb> <td><b>$text{'host_header'}</b></td> </tr>\n"; print "<tr $cb> <td><table width=100%>\n"; print "<tr> <td><b>$text{'host_name'}</b></td>\n"; if ($server->{'id'}) { printf "<td>%s</td>\n", $server->{'desc'} ? $server->{'desc'} : $server->{'host'}; } else { print "<td>$text{'this_server'}</td>\n"; } if ($server->{'id'}) { print "<td><b>$text{'host_type'}</b></td> <td>\n"; foreach $t (@servers::server_types) { print $t->[1] if ($t->[0] eq $server->{'type'}); } print "</td>\n"; } print "</tr>\n"; print "<tr> <td><b>$text{'host_count'}</b></td>\n"; printf "<td>%d</td>\n", scalar(@modules); print "<td><b>$text{'host_tcount'}</b></td>\n"; printf "<td>%d</td> </tr>\n", scalar(@themes); print "<tr> <td><b>$text{'host_os'}</b></td>\n"; print "<td>$host->{'real_os_type'} $host->{'real_os_version'}</td>\n"; print "<td><b>$text{'host_version'}</b></td>\n"; printf "<td>%s</td> </tr>\n", $host->{'version'}; print "</table></td></tr></table>\n"; # Show delete and refresh buttons print "<p></p><table width=100%><tr>\n"; print "<td><form action=delete_host.cgi>\n"; print "<input type=hidden name=id value=$in{'id'}>\n"; print "<input type=submit value='$text{'host_delete'}'>\n"; print "</form></td>\n"; print "<td align=right><form action=refresh.cgi>\n"; print "<input type=hidden name=id value=$in{'id'}>\n"; print "<input type=submit value='$text{'host_refresh'}'>\n"; print "</form></td>\n"; print "</tr></table>\n"; # Show table of modules and themes print "<p></p><table border width=100%>\n"; print "<tr $tb> <td><b>$text{'host_header_m'}</b></td> </tr>\n"; print "<tr $cb> <td><table width=100%>\n"; $i = 0; my $total_cells = scalar(@modules); foreach $m (sort { $a->{'desc'} cmp $b->{'desc'} } @modules) { my $colspan = ''; if ($total_cells == $i + 1 && $total_cells%$i == 1) { if ($i%3 == 0) { $colspan = " colspan=3 "; } elsif($i%3 == 1) { $colspan = " colspan=2 "; } } print "<tr>\n" if ($i%3 == 0); print "<td $colspan width=33%><a href='edit_mod.cgi?mod=$m->{'dir'}&host=$in{'id'}'>",$m->{'desc'},"</td>\n"; print "</tr>\n" if ($i%3 == 2); $i++; } if (@themes) { $i = 0; print "</table></td></tr>\n"; print "<tr $tb> <td><b>$text{'host_header_t'}</b></td> </tr>\n"; print "<tr $cb> <td><table width=100%>\n"; my $total_cells_themes = scalar(@themes); foreach $t (sort { $a->{'desc'} cmp $b->{'desc'} } @themes) { my $colspan = ''; if ($total_cells_themes == $i + 1 && $total_cells_themes%$i == 1) { if ($i%3 == 0) { $colspan = " colspan=3 "; } elsif($i%3 == 1) { $colspan = " colspan=2 "; } } print "<tr>\n" if ($i%3 == 0); print "<td $colspan width=33%><a href='edit_mod.cgi?theme=$t->{'dir'}$in{'id'}'>",$t->{'desc'},"</td>\n"; print "</tr>\n" if ($i%3 == 2); $i++; } } print "</table></td></tr></table><br>\n"; &ui_print_footer("", $text{'index_return'});
Upload File
Create Folder