added a sort to printDir() so it prints dirs first, file second and
[glcas.git] / plugins / admin.php
index 2b1d1ef..b37850a 100644 (file)
@@ -163,10 +163,11 @@ class GLCASAdmin {
                        echo "<form method=\"post\" action=\"?action=addrepoapt\">";
                        echo "<input type=\"hidden\" name=\"repourl\" value=\"$repourl\">";
                        echo "<input type=\"hidden\" name=\"distro\" value=\"$distros\">";
-                       echo "<input type=\"hidden\" name=\"version\" value=\"$version\">";
                        echo "<input type=\"hidden\" name=\"arch\" value=\"$archs\">";
                        echo "<table>";
                        echo "<tr><td>Description</td><td><input type=\"text\" name=\"desc\" value=\"APT Repo$extratext\"></td>";
+                       // TODO change this "provides" bit with a bit that allows us to choose which versions
+                       // of ubuntu will be made available from the ones we found
                        echo "<tr><td>Provides</td><td><textarea name=\"provides\" rows=\"".$glt["nrepos"]."\" cols=\"100\">$provides</textarea></td></tr>";
                        echo "<tr><td>Short URL</td><td><input type=\"text\" name=\"shorturl\"></td></tr>";
                        echo "<tr><td>URL Prefix (blank for none)</td><td><input type=\"text\" name=\"prefix\"></td></tr>";
@@ -207,7 +208,7 @@ class GLCASAdmin {
                
                $desc = $_REQUEST["desc"];
                $OS = $_REQUEST["distro"];
-               $version = $_REQUEST["version"];
+               $version = $_REQUEST["provides"];
                $arch = $_REQUEST["arch"];
                $shorturl = $_REQUEST["shorturl"];
                $prefix = $_REQUEST["prefix"];
@@ -325,7 +326,7 @@ class GLCASAdmin {
                echo "Type <select name=\"repotype\">";
                        echo "<option value=\"yumbase\">YUM (Base URL)</option>";
                        echo "<option value=\"yummirrorlist\">YUM (Mirror List) - not implemented</option>";
-                       echo "<option value=\"apt\">APT - not implemented</option>";
+                       echo "<option value=\"apt\">APT</option>";
                        echo "</select><br>";
                echo "URL <input type=\"text\" name=\"repourl\"><br>";
                echo "<input type=\"submit\" name=\"Add\" value=\"Add\"><br>";