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

📄 group_grace_save.cgi

📁 Unix下基于Web的管理工具
💻 CGI
字号:
#!/usr/local/bin/perl# group_grace_save.cgi# Update the grace times for groups on some filesystemrequire './quota-lib.pl';&ReadParse();$whatfailed = "Failed to save grace times";$access{'ggrace'} && &can_edit_filesys($in{'filesys'}) ||	&error("You cannot edit grace times on this filesystem");if ($in{'bdef'}) { push(@args, 0, 0); }elsif ($in{'btime'} !~ /^[0-9\.]+$/)	{ &error("'$in{'btime'}' is not a number"); }else { push(@args, ($in{'btime'}, $in{'bunits'})); }if ($in{'fdef'}) { push(@args, 0, 0); }elsif ($in{'ftime'} !~ /^[0-9\.]+$/)	{ &error("'$in{'ftime'}' is not a number"); }else { push(@args, ($in{'ftime'}, $in{'funits'})); }&edit_group_grace($in{'filesys'}, @args);&redirect("list_groups.cgi?$in{'filesys'}");

⌨️ 快捷键说明

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