[web-master] main: Remove fetch/stats.php endpoint
| From: | Nikita Popov | Date: | Thu, 08 Apr 2021 08:04:29 +0000 |
| Subject: | [web-master] main: Remove fetch/stats.php endpoint | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-29202@lists.php.net to get a copy of this message | ||
Author: Nikita Popov (nikic)
Date: 2021-04-08T10:04:25+02:00
Commit: https://github.com/php/web-master/commit/a4970d6aff0cf83bfb8d5d7b41038de50b1817ea
Raw diff: https://github.com/php/web-master/commit/a4970d6aff0cf83bfb8d5d7b41038de50b1817ea.diff
Remove fetch/stats.php endpoint
This was accessing tables that don't exist.
Changed paths:
D public/fetch/stats.php
Diff:
diff --git a/public/fetch/stats.php b/public/fetch/stats.php
deleted file mode 100644
index 28b5b5e..0000000
--- a/public/fetch/stats.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-// $Id$
-
-include_once '../../include/functions.inc';
-
-require_token();
-
-if (db_connect(FALSE)) {
- echo db_get_one("SELECT COUNT(*) FROM phpmasterdb.note"), "\n";
- echo db_get_one("SELECT COUNT(*) FROM phphosts.hosts"), "\n";
- echo db_get_one("SELECT COUNT(*) FROM phpmasterdb.bugdb"), "\n";
- echo db_get_one("SELECT COUNT(*) FROM phpmasterdb.bugdb WHERE status IN ('Open',
'Assigned', 'Analyzed', 'Critical')"), "\n";
-}