From 743efdfe777df5c7928c5cea8f4bee2526e0ff65 Mon Sep 17 00:00:00 2001 From: Jos Schellevis Date: Tue, 23 Jun 2015 11:56:06 +0200 Subject: [PATCH] (cron) Add model implementation --- .../mvc/app/models/OPNsense/Cron/Cron.php | 35 +++++++++ .../mvc/app/models/OPNsense/Cron/Cron.xml | 74 +++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 src/opnsense/mvc/app/models/OPNsense/Cron/Cron.php create mode 100644 src/opnsense/mvc/app/models/OPNsense/Cron/Cron.xml diff --git a/src/opnsense/mvc/app/models/OPNsense/Cron/Cron.php b/src/opnsense/mvc/app/models/OPNsense/Cron/Cron.php new file mode 100644 index 000000000..11a323616 --- /dev/null +++ b/src/opnsense/mvc/app/models/OPNsense/Cron/Cron.php @@ -0,0 +1,35 @@ + + //OPNsense/cron + + (minicron) cron settings + + + + + + Y + /^([a-z,A-Z,1-9]){0,30}$/ + Origin should be regular text of max 30 characters + + + 1 + Y + + + 0 + Y + /^((?:\*|[1-5][0-9]|0[0-9]|[0-9])(,{1}|-{1}|$))+$/ + Value needs to be between 0 and 59, multiple values, ranges and * are supported (ex. 1,10,20,30 or 1-30 ) + + + 0 + Y + /^((?:\*|[1-2][0-3]|0[0-9]|[0-9])(,{1}|-{1}|$))+$/ + Value needs to be between 0 and 23, multiple values, ranges and * are supported (ex. 1,2,8 or 0-8 ) + + + * + Y + /^(((?:\*|[1-2][0-9]|0[1-9]|[1-9]|[3][0-1])(,{1}|-{1}|$))+|L)$/ + Value needs to be between 1 and 31, multiple values, ranges, L (last day of month) and * are supported (ex. 1,2,8 or 1-28 ) + + + * + Y + /^(((?:\*|[1][0-2]|0[1-9]|[1-9]|JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(,{1}|-{1}|$))+)$/ + Value needs to be between 1 and 12 or JAN to DEC, multiple values, ranges and * are supported (ex. JAN,2,10 or 3-8 ) + + + * + Y + /^(((?:\*|[0-6])(,{1}|-{1}|$))+)$/ + Value needs to be between 0 and 6 ( Sunday to Saturday), multiple values, ranges and * are supported (ex. 1,2,4 or 0-4 ) + + + root + Y + + + + /(.){1,255}/ + + Select a command from the list. + Y + + + /^([^;|`]){1,255}$/ + Enter valid parameter(s) for the chosen command (Found illegal characters). + N + + + /^(.){1,255}$/ + Enter a description. + Y + + + + + + +