%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.101 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/usr/share/webmin/gray-theme/ |
Upload File : |
#!/usr/bin/perl
# Update visible right-frame sections
require "gray-theme/gray-theme-lib.pl";
require "gray-theme/theme.pl";
&ReadParse();
&error_setup($text{'edright_err'});
&load_theme_library();
($hasvirt, $level, $hasvm2) = &get_virtualmin_user_level();
$sects = &get_right_frame_sections();
!$sects->{'global'} ||
$hasvirt && &virtual_server::master_admin() ||
$hasvm2 && !$server_manager::access{'owner'} ||
&error($text{'edright_ecannot'});
# Validate and store
foreach $s (&list_right_frame_sections()) {
$sect->{'no'.$s->{'name'}} = !$in{$s->{'name'}};
}
if ($in{'alt_def'}) {
delete($sect->{'alt'});
}
else {
$in{'alt'} =~ /^(http|https|\/)/ || &error($text{'edright_ealt'});
$sect->{'alt'} = $in{'alt'};
}
$sect->{'list'} = $in{'list'};
$sect->{'tab'} = $in{'tab'};
if ($in{'fsize_def'}) {
delete($sect->{'fsize'});
}
else {
$in{'fsize'} =~ /^\d+$/ || &error($text{'edright_efsize'});
$sect->{'fsize'} = $in{'fsize'};
}
$sect->{'nosearch'} = !$in{'search'};
if ($hasvirt) {
$sect->{'dom'} = $in{'dom'};
$sect->{'qsort'} = $in{'qsort'};
$sect->{'qshow'} = $in{'qshow'};
if ($in{'max_def'}) {
delete($sect->{'max'});
}
else {
$in{'max'} =~ /^[1-9]\d*$/ || &error($text{'edright_emax'});
$sect->{'max'} = $in{'max'};
}
}
if ($hasvm2) {
$sect->{'server'} = $in{'server'};
}
if ($hasvirt && &virtual_server::master_admin() ||
$hasvm2 && &server_manager::can_action(undef, "global")) {
$sect->{'global'} = $in{'global'};
$sect->{'nowebmin'} = $in{'nowebmin'};
}
# Save config
&save_right_frame_sections($sect);
&redirect("right.cgi");