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;
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]
?>