From 7b7b26250580f713edc9aa459ad12abfcaa24ea0 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" Date: Fri, 23 Dec 2011 12:41:45 +0100 Subject: Restructure the files that do not belong in public_html to live in lib/ Use lib/Conf.php for configuration Reuse as much of the existing utilities as possible, by sharing the common codebase (i.e. kolab_utils, etc) --- lib/kolab_utils.php | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 lib/kolab_utils.php (limited to 'lib/kolab_utils.php') diff --git a/lib/kolab_utils.php b/lib/kolab_utils.php new file mode 100644 index 0000000..97b8bdf --- /dev/null +++ b/lib/kolab_utils.php @@ -0,0 +1,78 @@ + $val) { + $value[$idx] = self::parse_input($val, $allow_html); + } + } + // remove HTML tags if not allowed + else if (!$allow_html) { + $value = strip_tags($value); + } + + return $value; + } + + } + +?> -- cgit v1.1