#!/usr/local/bin/perl # edit_allow.cgi # A form for editing the system cron.allow and cron.deny files require './cron-lib.pl'; $access{'allow'} || &error($text{'allow_ecannot'}); &ui_print_header(undef, $text{'allow_title'}, ""); print "
\n"; print "$text{'allow_desc'}

\n"; $allowfile = (-r $config{cron_allow_file}); $denyfile = (-r $config{cron_deny_file}); $nofile = $config{cron_deny_all}; printf " %s
\n", !$allowfile && !$denyfile ? "checked" : "", $nofile==0 ? $text{'allow_all1'} : $nofile==1 ? $text{'allow_all2'} : $text{'allow_all3'}; printf " $text{'allow_allow'}\n", $allowfile ? "checked" : ""; printf " %s
\n", ($allowfile ? join(' ', &list_allowed()) : ""), &user_chooser_button("allow", 1); printf " $text{'allow_deny'} \n", $denyfile && !$allowfile ? "checked" : ""; printf " %s
\n", ($denyfile ? join(' ', &list_denied()) : ""), &user_chooser_button("deny", 1); print "\n"; print "

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