From fe89e4e71753cc300aaf77bd5b0e0c2c0c83bfeb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 4 Nov 2012 01:45:39 +0000 Subject: [PATCH] Added some missing wrapper functions --- .gitattributes | 1 + inc/libs/active_functions.php | 12 +++++++ inc/libs/top10_functions.php | 60 +++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 inc/libs/top10_functions.php diff --git a/.gitattributes b/.gitattributes index 18496930f1..99187a6b67 100644 --- a/.gitattributes +++ b/.gitattributes @@ -403,6 +403,7 @@ inc/libs/surfbar_functions.php svneol=native#text/plain inc/libs/task_functions.php svneol=native#text/plain inc/libs/theme_functions.php svneol=native#text/plain inc/libs/timezone_functions.php svneol=native#text/plain +inc/libs/top10_functions.php svneol=native#text/plain inc/libs/transfer_functions.php svneol=native#text/plain inc/libs/uberwach_functions.php svneol=native#text/plain inc/libs/user_functions.php svneol=native#text/plain diff --git a/inc/libs/active_functions.php b/inc/libs/active_functions.php index 810fec6695..5103339448 100644 --- a/inc/libs/active_functions.php +++ b/inc/libs/active_functions.php @@ -40,5 +40,17 @@ if (!defined('__SECURITY')) { die(); } // END - if +// Wrapper function for 'active_limit' +function getActiveLimit () { + // Is there cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Get config entry + $GLOBALS[__FUNCTION__] = getConfig('active_limit'); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; +} + // [EOF] ?> diff --git a/inc/libs/top10_functions.php b/inc/libs/top10_functions.php new file mode 100644 index 0000000000..77c6ddd890 --- /dev/null +++ b/inc/libs/top10_functions.php @@ -0,0 +1,60 @@ + -- 2.39.5