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