function meta_stats_dump($array) { if (count($array) == 0) { if ($GLOBALS["VERBOSE"]) { echo "meta_stats_dump ARRAY=0\n"; } return; } $q = new mysql_meta(); while (list($tablename, $rows) = each($array)) { if (count($rows) == 0) { if ($GLOBALS["VERBOSE"]) { echo "{$tablename} 0 rows\n"; } continue; } if ($GLOBALS["VERBOSE"]) { echo "{$tablename} " . count($rows) . "\n"; } if (!$q->create_table_meta_stats_size_hours($tablename)) { return; } $sql = "INSERT IGNORE INTO `{$tablename}` (`zmd5`,`uuid`,`size`,`filename`,`zDate`) VALUES " . @implode(",", $rows); $q->QUERY_SQL($sql); if (!$q->ok) { meta_events($q->mysql_error); return false; } } return true; }