index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-02-14 14:36:34 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-02-14 14:36:34 +0100 |
commit | 5a403f224741ddd159f6b89a94c35899a4e5a0c7 (patch) | |
tree | cf522e647d07c2e1994fe4d2014607ddd556ac27 | |
parent | fb4107ccf13a9f32d66069f91a24c8744ed6b391 (diff) |
-rw-r--r-- | mirrorlist.php (renamed from mirrorlist/index.php) | 4 |
diff --git a/mirrorlist/index.php b/mirrorlist.php index a9f0211..c9df00d 100644 --- a/mirrorlist/index.php +++ b/mirrorlist.php @@ -1,5 +1,5 @@ <?php -require_once "../init.php"; +require_once "init.php"; include BASE . "/lib/mysql.php"; include BASE . "/lib/style.php"; @@ -52,7 +52,7 @@ if (array_key_exists('country', $_GET)) { '),' . '`mirror_statuses`.`protocol`'; - $request = '&' . preg_replace(',^.*/\?,', '', $_SERVER['REQUEST_URI']) . '&'; + $request = '&' . preg_replace(',^.*\?,', '', $_SERVER['REQUEST_URI']) . '&'; if (array_key_exists('protocol', $_GET)) { $filter .= ' AND `mirror_statuses`.`protocol` IN ('; foreach ($protocols as $protocol) |