]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Yet another bunch of EL/surfbar fixes
[mailer.git] / inc / wrapper-functions.php
index c91f93e88c2ff2dacb6ec88956f376df6c1f8ae7..89ebde56c9ce83bf7d29eb90251928b6d097c64c 100644 (file)
@@ -956,18 +956,6 @@ function getHttpStatus () {
        return $GLOBALS['http_status'];
 }
 
-// Compiles config entries for SQL queries
-function compileSqlConfig ($sqlString) {
-       // Replace all
-       foreach (array('_MYSQL_PREFIX', '_TABLE_TYPE') as $configEntry) {
-               // "Compile" it
-               $sqlString = str_replace('{?' . $configEntry . '?}', getConfig($configEntry), $sqlString);
-       } // END - foreach
-
-       // Return the compiled SQL string
-       return $sqlString;
-}
-
 // Setter for 'is_template_html'
 function enableTemplateHtml ($enable = true) {
        $GLOBALS['is_template_html'] = (bool) $enable;
@@ -1044,5 +1032,17 @@ function determineCountry ($userid) {
        return $country;
 }
 
+// "Getter" for total confirmed user accounts
+function getTotalConfirmedUser () {
+       // Is it cached?
+       if (!isset($GLOBALS['total_confirmed_users'])) {
+               // Then do it
+               $GLOBALS['total_confirmed_users'] = countSumTotalData('CONFIRMED', 'user_data', 'userid', 'status', true);
+       } // END - if
+
+       // Return cached value
+       return $GLOBALS['total_confirmed_users'];
+}
+
 // [EOF]
 ?>