summaryrefslogtreecommitdiffstats
path: root/rpm.php
diff options
context:
space:
mode:
Diffstat (limited to 'rpm.php')
-rw-r--r--rpm.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/rpm.php b/rpm.php
index 11b30c2..5073f9f 100644
--- a/rpm.php
+++ b/rpm.php
@@ -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