From cdc4f2500548156e646c7d409bb462c34810cdd7 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 21 Aug 2015 08:01:44 +0000 Subject: [PATCH] append some explanation to legacy_bindings.inc --- src/etc/inc/legacy_bindings.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/etc/inc/legacy_bindings.inc b/src/etc/inc/legacy_bindings.inc index 03994b981..91828ac56 100644 --- a/src/etc/inc/legacy_bindings.inc +++ b/src/etc/inc/legacy_bindings.inc @@ -56,6 +56,16 @@ function configd_run($cmd, $detach = false) return $backend->configdRun("{$cmd}", $detach); } +/************************************************************************************************* + * Legacy helper functions, only to be used in old (legacy) code. + * Some patterns are very common in the old code, this section contains functions to help + * cleanup the old code by performing less repetition. + * + * Never use these functions in new style OPNsense software, their only purpose is to help + * migrating to something new. + * + ************************************************************************************************/ + /** * simple function to perform htmlspecialchars recursively on all attributes * @param $settings array type form data