Added some missing wrapper functions
authorRoland Häder <roland@mxchange.org>
Sun, 4 Nov 2012 01:45:39 +0000 (01:45 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 4 Nov 2012 01:45:39 +0000 (01:45 +0000)
.gitattributes
inc/libs/active_functions.php
inc/libs/top10_functions.php [new file with mode: 0644]

index 18496930f196057a4dfae215f8125495537017de..99187a6b67f66a096a067393ef30745627a85458 100644 (file)
@@ -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
index 810fec66953e44bb67fae3764967a3ee924500b0..5103339448060613dbfbff241ebddd53eb6b9fc3 100644 (file)
@@ -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 (file)
index 0000000..77c6ddd
--- /dev/null
@@ -0,0 +1,60 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 12/04/2012 *
+ * ===================                          Last change: 12/04/2012 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : top10_functions.php                              *
+ * -------------------------------------------------------------------- *
+ * Short description : Functions for ext-top10                          *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Funktionen fuer ext-top10                        *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
+ *                                                                      *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or    *
+ * (at your option) any later version.                                  *
+ *                                                                      *
+ * This program is distributed in the hope that it will be useful,      *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
+ * GNU General Public License for more details.                         *
+ *                                                                      *
+ * You should have received a copy of the GNU General Public License    *
+ * along with this program; if not, write to the Free Software          *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
+ * MA  02110-1301  USA                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+       die();
+} // END - if
+
+//-----------------------------------------------------------------------------
+//                             Wrapper functions
+//-----------------------------------------------------------------------------
+
+// Wrapper function for 'top10_max'
+function getTop10Max () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Get config entry
+               $GLOBALS[__FUNCTION__] = getConfig('top10_max');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// [EOF]
+?>