diff options
-rw-r--r-- | rpm.php | 28 |
1 files changed, 0 insertions, 28 deletions
@@ -36,8 +36,6 @@ */ require 'main.inc.php'; -$smarty->assign('ariane', $ariane); - $what=(isset($_GET["what"]) ? $_GET["what"] : "%fedora"); $type=(isset($_GET["type"]) ? $_GET["type"] : "pecl"); @@ -52,32 +50,6 @@ $smarty->assign('what', $what); $smarty->assign('page_title', strtoupper($type). ' extensions in Fedora'); /** -* Get repositories list -* -* @param object $db a reference to the database -* -* @return array -*/ -function listRepos($db) -{ - $repos = array(); - $res=$db->query("SELECT * FROM repo WHERE active=1 ORDER BY ID"); - if ( $res ) { - while ($repo = $res->fetchObject()) { - $repos[$repo->main][$repo->sub]=$repo; - } - } - // echo "<pre>"; print_r($repos);echo "</pre>"; - foreach ( $repos as $repomain ) { - foreach ($repomain as $repo) { - $repos[$repo->main][$repo->sub] = $repo; - break; - } - } - return $repos; -} - -/** * Retrieve packages informations * * @param Object $db A reference to the database |