#!/usr/local/bin/perl # reboot.cgi # Reboot the system immediately.. require './init-lib.pl'; &ReadParse(); $access{'reboot'} || &error($text{'reboot_ecannot'}); &ui_print_header(undef, $text{'reboot_title'}, ""); print "

\n"; $ttcmd = "$config{'reboot_command'}"; if ($in{'confirm'}) { print "",&text('reboot_exec', $ttcmd),"

\n"; &reboot_system(); &webmin_log("reboot"); } else { print "",&text('reboot_rusure', $ttcmd),"\n"; print "

\n"; print "\n"; print "
\n"; } &ui_print_footer("", $text{'index_return'});