http range request ass bandits from redhat for their installer and
[glcas.git] / plugins / admin.php
index e6dea41..845d857 100644 (file)
@@ -156,6 +156,8 @@ class GLCASAdmin {
        
        function mainBody($url)
        {
+               global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL;
+               
                // first, list available repos
                echo "<h3>Repositories</h3>";
                echo "<br><table border=\"1\">";
@@ -179,7 +181,14 @@ class GLCASAdmin {
                        echo "<tr><td>$desc</td><td>$repotype</td><td>$os</td><td>$version</td><td>$arch</td><td>$other</td><td>$prefix</td><td>$shorturl</td>";
                        
                        // get url
-                       echo "<td><a href=\"/asdf/asdf\">Browse</td><td>";
+                       $browseurl = "$BASE_URL/repo/$rkey";
+                       if($shorturl!="-") {
+                               $brurl = $shorturl;
+                               if($prefix != "-") $brurl = "$prefix/$shorturl";
+                               $browseurl = "$BASE_URL/$brurl/";
+                       }
+                       
+                       echo "<td><a href=\"$browseurl\">Browse</td><td>";
                        
                        // Edit
                        echo "<a href=\"?action=editrepo&repo=$rkey\">Edit</a> ";