cron_set_pre.sh

Version 1.48.1

Feature
Finished

Related to the cron_set_post.sh: http://www.directadmin.com/features.php?id=943 This script will run before a cronjob is added by a User. It will let you scan all provided data to determine if you want to allow it or not. DA will pass the entire form, so using debug mode and "| grep string" will give you the full list of values: http://help.directadmin.com/item.php?id=293 If you exit with a non-zero value, the cron will not be added. If you exit with 0, then the cron will be added (assuming all other normal DA checks pass). This script is call before both creation and cron edits. For edits, you'll get edit=1. For additions, edit=0.

Try DirectAdmin with a 30-day money back guarantee!