diff --git a/tools/stats.php b/tools/stats.php new file mode 100755 index 00000000..438d9c8f --- /dev/null +++ b/tools/stats.php @@ -0,0 +1,30 @@ +fetch()) { + printf("%10s || ", $f['uri']); + foreach ($variants as list($term, $time)) { + $qq = query(sprintf("SELECT COUNT(*) as count FROM ``posts_%s`` WHERE time > %d", $f['uri'], time()-$time); + $c = $qq->fetch()['count']; + + printf("%8d | ", $c); + } + print("\n"); +}