From ba3e3e48e6ec4523ae26dc6c206d5bfdfa08d332 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 26 Sep 2011 06:27:16 -0400
Subject: [PATCH] Removed template selector from reseller limits as templates are for clients only at the moment and a client template which gets applied to a reseller will convert the reseller to a client which is not intended. Templates for resellers will be added in a future version.

---
 interface/lib/classes/validate_cron.inc.php |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/interface/lib/classes/validate_cron.inc.php b/interface/lib/classes/validate_cron.inc.php
index c42e06d..d49c280 100644
--- a/interface/lib/classes/validate_cron.inc.php
+++ b/interface/lib/classes/validate_cron.inc.php
@@ -55,6 +55,14 @@
             if(preg_match("'^([a-z0-9][a-z0-9-]{0,62}\.)+([a-z]{2,30})$'i", $parsed["host"]) == false) return $this->get_error($validator['errmsg']);
         }
     }
+	
+	function run_month_format($field_name, $field_value, $validator) {
+		global $app;
+		//* allow value @reboot in month field
+		if($field_value != '@reboot') {
+			return $this->run_time_format($field_name, $field_value, $validator);
+		}
+	}
     
 	/*
 		Validator function to check if a given cron time is in correct form.

--
Gitblit v1.9.1