X-Git-Url: http://git.pjr.cc/?p=glcas.git;a=blobdiff_plain;f=plugins%2Frepo.php;h=55eaed30b732fd421cf2a187350604d12f6456f8;hp=27ae54c82786fd4cce3849db37d945166b29b9d0;hb=ce16a1b219c25bd3cb3b803b4fec36dd557ead1b;hpb=2924678dd2b842e5ecbb2f009fc6601500312b57 diff --git a/plugins/repo.php b/plugins/repo.php index 27ae54c..55eaed3 100644 --- a/plugins/repo.php +++ b/plugins/repo.php @@ -746,7 +746,16 @@ class GLCASRepo { $content .= ""; $dh = opendir($dir); while(($file = readdir($dh))!==false) { - if($file != "." && $file != "..") $content .= ""; + if($file != "." && $file != "..") { + if(is_dir("$dir/$file")) { + $fsize = ""; + $icon = "/icons/folder.png"; + } else { + $fsize = filesize("$dir/$file"); + $icon = "/icons/text.png"; + } + $content .= ""; + } } $content .= "
$file
$file$fsize
"; @@ -781,7 +790,11 @@ class GLCASRepo { } } $existing_repos["nrepos"] = $repos; + + // TODO: these need to be "calculated" $existing_repos["distros"] = "Ubuntu, Debian"; + $existing_repos["versions"] = "8.04LTS, 9.10, 10.04LTS, 10.10, 11.04, 11.10"; + $existing_repos["arch"] = "x86_64, i386"; return $existing_repos;