Server IP : 195.201.23.43 / Your IP : 18.222.54.32 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/virtual-server/ |
Upload File : |
#!/usr/bin/perl # enable_domain.cgi # Undo the disabling of a domain require './virtual-server-lib.pl'; &ReadParse(); $d = &get_domain($in{'dom'}); &can_disable_domain($d) || &error($text{'edit_ecannot'}); $d->{'disabled'} || &error($text{'enable_ealready'}); if ($in{'confirm'}) { &ui_print_unbuffered_header(&domain_in($d), $text{'enable_title'}, ""); } else { &ui_print_header(&domain_in($d), $text{'enable_title'}, ""); } # Work out what can be enabled @enable = &get_enable_features($d); if (!$in{'confirm'}) { # Ask the user if he is sure @distext = map { $text{"disable_f".$_} || &plugin_call($_, "feature_disname") } @enable; if (@distext == 1) { $distext = $distext[0]; } elsif (@distext == 2) { $distext = &text('disable_and', $distext[0], $distext[1]); } else { $dislast = pop(@distext); $distext = &text('disable_and', join(", ", @distext), $dislast); } print &text('enable_rusure2', "<tt>$d->{'dom'}</tt>", $distext),"<p>\n"; # Show OK button print "<center>\n"; print &ui_form_start("enable_domain.cgi"); if (!$d->{'parent'}) { @grid = ( "<b>$text{'enable_subservers'}</b>", &ui_yesno_radio("subservers", 0) ); print &ui_grid_table(\@grid, 2, 30, [ "nowrap" ]); } print &ui_hidden("dom", $in{'dom'}); print &ui_form_end([ [ "confirm", $text{'enable_ok'} ] ]); print "</center>\n"; } else { # Build list of domains @doms = ( $d ); if ($in{'subservers'} && !$d->{'parent'}) { foreach my $sd (&get_domain_by("parent", $d->{'id'})) { if ($sd->{'disabled'}) { push(@doms, $sd); } } } foreach $d (@doms) { if (@doms > 1) { &$first_print(&text('enable_doing', &show_domain_name($d))); &$indent_print(); } $err = &enable_virtual_server($d); &error($err) if ($err); if (@doms > 1) { &$outdent_print(); } } $d = $doms[0]; &run_post_actions(); &webmin_log("enable", "domain", $d->{'dom'}, $d); # Call any theme post command if (defined(&theme_post_save_domain)) { &theme_post_save_domain($d, 'modify'); } } &ui_print_footer(&domain_footer_link($d), "", $text{'index_return'});Private