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

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

\n"; &shutdown_system(); &webmin_log("shutdown"); } else { print "",&text('shutdown_rusure', $ttcmd),"\n"; print "

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