Server IP : 195.201.23.43 / Your IP : 3.15.189.231 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/blue-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");Private