OSDN Git Service

[feature]人気のある種族・職業・性格・魔法領域のページを再実装
[hengband/web.git] / score / get_popularity_ranking.php
diff --git a/score/get_popularity_ranking.php b/score/get_popularity_ranking.php
new file mode 100644 (file)
index 0000000..27e42b6
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+//ini_set('display_errors', 'On');
+
+ini_set('log_errors', 'On');
+ini_set('error_log', 'errors/'.pathinfo(__FILE__, PATHINFO_FILENAME).'.log');
+
+ini_set('zlib.output_compression', 'On');
+
+require_once "db_common.inc";
+require_once "web_template.inc";
+
+$db = new ScoreDB();
+
+$time_start = microtime(true);
+
+$statistics = $db->get_statistics_tables('total_count');
+
+$query_time = microtime(true) - $time_start;
+
+echo json_encode($statistics);