]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Now CSS classes are being inserted by EL
[mailer.git] / inc / wrapper-functions.php
index cee610df471d40f836d541a06e9e6907d6a30147..5bc89a05f366da844c18161cb7be874616a5460b 100644 (file)
@@ -697,7 +697,7 @@ function addPointsDirectly ($subject, $userid, $points) {
 // Wrapper function to redirect from member-only modules to index
 function redirectToIndexMemberOnlyModule () {
        // Do the redirect here
-       redirectToUrl('modules.php?module=index&code=' . getCode('MODULE_MEM_ONLY') . '&mod=' . getModule());
+       redirectToUrl('modules.php?module=index&code=' . getCode('MODULE_MEMBER_ONLY') . '&mod=' . getModule());
 }
 
 // Wrapper function to redirect to current URL
@@ -1032,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]
 ?>