diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/main.php | 26 |
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 |