diff options
author | Johan "Papa" Cwiklinski <trasher@odysseus.(none)> | 2010-05-30 18:18:46 +0200 |
---|---|---|
committer | Johan "Papa" Cwiklinski <trasher@odysseus.(none)> | 2010-05-30 18:18:46 +0200 |
commit | b2ae578c977b5920dd387cb6bc6b731c09259c49 (patch) | |
tree | 1860b1b509522547e9c8971fe1410fd17b6064ff /rpm.php | |
parent | 816c869c3bd174d78a710f4d384442bf31a24a6d (diff) |
Smarty variable assigned twice, export reposlist function so it could be used
Diffstat (limited to 'rpm.php')
-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 |