From a725ecce477cf3630160f779504a7bfa9d94c9ce Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 27 Jul 2014 18:27:51 +0200 Subject: hide EOL version on main page (repo list) --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 1489018..b3e82bd 100644 --- a/index.php +++ b/index.php @@ -47,7 +47,11 @@ try { $prev = false; $repositories = array(); - foreach ($repo->request(array('id' => '>0', 'ORDER'=>'id')) as $repo) { + $crit = array('id' => '>0', 'ORDER'=>'id'); + if (!isset($_GET['eol']) || !$_GET['eol']) { + $crit['active'] = 1; + } + foreach ($repo->request($crit) as $repo) { $repositories[] = array( 'repo_name' => ($repo['main'] != $prev ? $repo['main'] : " "), 'active' => ($repo['main'] != $prev ? -- cgit