return $GLOBALS['is_verbose_sql_enabled'];
}
+// "Getter" for total user points
+function getTotalPoints ($userid) {
+ // Do we have cache?
+ if (!isset($GLOBALS['total_points'][$userid])) {
+ // Determine it
+ $GLOBALS['total_points'][$userid] = countSumTotalData($userid, 'user_points', 'points') - countSumTotalData($userid, 'user_data', 'used_points');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS['total_points'][$userid];
+}
+
// [EOF]
?>