index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-07-10 09:00:24 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-07-10 09:00:24 +0200 |
commit | 272bae0fa77072f4e6676bb49ce9ba815d93940c (patch) | |
tree | 974a77287930aba442c9643289049f6818058c6e /mirrors | |
parent | 14aa04c65c693aa4b7fb32916a5dcf76d5ec1194 (diff) |
-rw-r--r-- | mirrors/status.php | 8 |
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); |