index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
-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); |