[!
use strict;
use Proxmox::Utils;
use Proxmox::ConfigServer;
!]
[-
if ($udat{action} eq 'reboot') {
if ($udat{AM} eq 'w') {
my $conn = Proxmox::ConfigClient::connect ();
$conn->restart_server ();
} else {
$udat{popup_error} = Proxmox::Utils::msg ('nowr');
}
}
my $out = '
';
$out .= "
" . __("Server restart in progress. Please try to reconnect after the restart.") . "
"; print OUT $out; -]