summaryrefslogtreecommitdiffstats
path: root/include/main.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-08-07 18:32:09 +0200
committerRemi Collet <fedora@famillecollet.com>2010-08-07 18:32:09 +0200
commitfe3d37364bbc072aedac951d4b2acc724ba7393a (patch)
treedc8dcc9ec2f864962dba5c59f46289659861495e /include/main.php
parent6d2954c5e9da8cd36c231114df5184d4a3101ddd (diff)
add Class TableRpmRepo and use it everywhere
Diffstat (limited to 'include/main.php')
-rw-r--r--include/main.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/include/main.php b/include/main.php
index 1c3a863..5938618 100644
--- a/include/main.php
+++ b/include/main.php
@@ -65,30 +65,4 @@ function __autoload($classname)
include dirname(__FILE__).'/../class/'.$classname.'.php';
}
-/**
-* 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;
-}
-
?> \ No newline at end of file