]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Code moved around (referal-functions.php added)
[mailer.git] / inc / wrapper-functions.php
index 97fe0ab20a436f2dcc43b012ff1d17dda9428671..84e126ca9fa99a7df4c930f9f90ce9495799565c 100644 (file)
@@ -2572,6 +2572,15 @@ function generateYesNoOptionList ($default = '') {
        return generateOptionList('/ARRAY/', array('Y', 'N'), array('{--YES--}', '{--NO--}'), $default);
 }
 
+// "Getter" for total available receivers
+function getTotalReceivers ($mode = 'normal') {
+       // Get num rows
+       $numRows = countSumTotalData('CONFIRMED', 'user_data', 'userid', 'status', true, ' AND `receive_mails` > 0' . runFilterChain('exclude_users', $mode));
+
+       // Return value
+       return $numRows;
+}
+
 //-----------------------------------------------------------------------------
 //                        Configuration wrapper
 //-----------------------------------------------------------------------------