From 83be298ae3123e724a64da98a5ee2a7d3f52fcec Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 18 Feb 2019 20:15:39 +0100 Subject: packages/index.php: cleanup --- packages/index.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/packages/index.php b/packages/index.php index e062cce..211bc3c 100644 --- a/packages/index.php +++ b/packages/index.php @@ -189,28 +189,6 @@ require_once BASE . "/lib/format.php"; true ); - $query = " FROM `binary_packages`" . - mysql_join_binary_packages_architectures() . - mysql_join_binary_packages_binary_packages_in_repositories() . - mysql_join_binary_packages_in_repositories_repositories() . - " AND `repositories`.`is_on_master_mirror`" . - mysql_join_repositories_architectures("","r_a") . - mysql_join_binary_packages_build_assignments() . - mysql_join_build_assignments_package_sources() . - $extra_joins . - $filter . $fuzzy_filter . - " ORDER BY "; - - if (array_key_exists("sort", $_GET)) { - if (isset($sorts[$_GET["sort"]]["mysql"])) - $query .= $sorts[$_GET["sort"]]["mysql"] . ","; - elseif (isset($sorts[substr($_GET["sort"],1)]["mysql"])) - $query .= $sorts[substr($_GET["sort"],1)]["mysql"] . " DESC,"; - } - - $query .= "`binary_packages`.`pkgname`,`repositories`.`stability`,`repositories`.`name`,`architectures`.`name`"; - - $pages = max(ceil($num_results / 100), 1); if (array_key_exists("page", $_GET)) $page = max(min($_GET["page"]+0, $pages),1); -- cgit v1.2.3-70-g09d2