⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 delete_action.cgi

📁 Unix下基于Web的管理工具
💻 CGI
字号:
#!/usr/local/bin/perl# delete_action.cgi# Delete an existing action and remove it from all the runlevelsrequire './init-lib.pl';&ReadParse;%access = &get_module_acl();$access{'bootup'} || &error($text{'save_ecannot'});if ($in{type} == 0) {	# Deleting a normal action	foreach (&action_levels('S', $in{action})) {		/^(\S+)\s+(\S+)\s+(\S+)$/;		&delete_rl_action($in{action}, $1, 'S');		}	foreach (&action_levels('K', $in{action})) {		/^(\S+)\s+(\S+)\s+(\S+)$/;		&delete_rl_action($in{action}, $1, 'K');		}	unlink(&action_filename($in{action}));	}elsif ($in{type} == 1) {	# deleting an odd action	unlink(&runlevel_filename($in{runlevel}, $in{startstop},				  $in{number}, $in{action}));	}&redirect("");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -