|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /usr/libexec/webmin/init/ |
Upload File : |
#!/usr/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 "<p>\n";
$ttcmd = "<tt>$config{'shutdown_command'}</tt>";
if ($in{'confirm'}) {
print "<font size=+1>",&text('shutdown_exec', $ttcmd),"</font><p>\n";
&shutdown_system();
&webmin_log("shutdown");
}
else {
print "<font size=+1>",&text('shutdown_rusure', $ttcmd),"</font>\n";
print "<center><form action=shutdown.cgi>\n";
print "<input type=submit value=\"$text{'shutdown_ok'}\" ",
"name=confirm>\n";
print "</form></center>\n";
}
&ui_print_footer("", $text{'index_return'});