📄 reboot.cgi
字号:
#!/usr/local/bin/perl# reboot.cgi# Reboot the system immediately..require './init-lib.pl';&ReadParse();%access = &get_module_acl();$access{'reboot'} || &error($text{'reboot_ecannot'});&header($text{'reboot_title'}, "");print "<hr><p>\n";$ttcmd = "<tt>$config{'reboot_command'}</tt>";if ($in{'confirm'}) { print "<font size=+1>",&text('reboot_exec', $ttcmd),"</fomt><p>\n"; system("$config{'reboot_command'} >/dev/null 2>/dev/null"); }else { print "<font size=+1>",&text('reboot_rusure', $ttcmd),"</font>\n"; print "<center><form action=reboot.cgi>\n"; print "<input type=submit value=\"$text{'reboot_ok'}\" name=confirm>\n"; print "</form></center>\n"; }print "<hr>\n";&footer("", $text{'index_return'});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -