From 2b6a30287a6ec1c2ac1f2e59edf8afbff565f80f Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Tue, 27 Sep 2011 22:31:42 +0200 Subject: basics for squid_validate_reverse --- config/squid-reverse/squid.inc | 6 ++++++ config/squid-reverse/squid_reverse.xml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/squid-reverse/squid.inc b/config/squid-reverse/squid.inc index ffd17569..d0dad31d 100644 --- a/config/squid-reverse/squid.inc +++ b/config/squid-reverse/squid.inc @@ -485,6 +485,10 @@ function squid_validate_traffic($post, $input_errors) { if (!is_numeric($value) || ($value > 100)) $input_errors[] = "The field 'Finish when remaining %' must contain a percentaged value"; } +} + +function squid_validate_reverse($post, $input_errors) { + } @@ -943,6 +947,8 @@ function squid_resync_reverse() { $settings = $config['installedpackages']['squidreverse']['config'][0]; $conf = ''; + + return $conf; } diff --git a/config/squid-reverse/squid_reverse.xml b/config/squid-reverse/squid_reverse.xml index c86410f5..93e1c595 100644 --- a/config/squid-reverse/squid_reverse.xml +++ b/config/squid-reverse/squid_reverse.xml @@ -223,7 +223,7 @@ squid_before_form_general(&$pkg); - squid_validate_general($_POST, &$input_errors); + squid_validate_reverse($_POST, &$input_errors); squid_resync_reverse(); -- cgit v1.2.3