$value) { $sql .= sprintf("('%s', %s),", $entry, bigintval($value)); } // END - foreach // Finalize it and run it SQL_QUERY(substr($sql, 0, -1), __FUNCTION__, __LINE__); } // Filter for flushing statistics function FILTER_FLUSH_STATS () { // Now do we have stats? if ((isset($GLOBALS['stats'])) && (!isInstallationPhase()) && (ifStatsAreEnabled())) { // Write statistics to temporary table writeStatsTable(); } // END - if } // Check wether stats are enabled function ifStatsAreEnabled () { logDebugMessage(__FUNCTION__, __LINE__, 'CALLED!'); // Do we have cache? if (!isset($GLOBALS['stats_enabled'])) { // Then determine it $GLOBALS['stats_enabled'] = (getConfig('stats_enabled') == 'Y'); } // END - if // Return cached value return $GLOBALS['stats_enabled']; } // [EOF] ?>