Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/mirrors/status.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-10 09:00:24 +0200
committerErich Eckner <git@eckner.net>2018-07-10 09:00:24 +0200
commit272bae0fa77072f4e6676bb49ce9ba815d93940c (patch)
tree974a77287930aba442c9643289049f6818058c6e /mirrors/status.php
parent14aa04c65c693aa4b7fb32916a5dcf76d5ec1194 (diff)
lib/format.php new
Diffstat (limited to 'mirrors/status.php')
-rw-r--r--mirrors/status.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/mirrors/status.php b/mirrors/status.php
index 79ca3ee..d9f3274 100644
--- a/mirrors/status.php
+++ b/mirrors/status.php
@@ -2,6 +2,7 @@
require_once "../init.php";
require_once BASE . "/lib/mysql.php";
+require_once BASE . "/lib/format.php";
$cutoff = 86400;
@@ -78,9 +79,4 @@ $content = array(
"urls" => $urls
);
-if (isset($_GET["json"])) {
- header ("Content-type: application/json");
- print json_encode($content,JSON_UNESCAPED_SLASHES);
-} else {
- print "Unknown output format.";
-}
+export_as_requested($content);