X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=plugins%2Fadmin.php;h=56d86ddb8aae653e9126cfd85ec49d4f63c54dec;hb=c9cd2c7a60256b5d5d82610424c48706695bad5d;hp=13121c321fc066ec32e8807c3ac4a5ec0b063f2a;hpb=45b1b37dd9688baba31184815cc110f0f1839c1e;p=glcas.git diff --git a/plugins/admin.php b/plugins/admin.php index 13121c3..56d86dd 100644 --- a/plugins/admin.php +++ b/plugins/admin.php @@ -44,6 +44,10 @@ class GLCASAdmin { error_log("call setstorage"); GLCASpageBuilder($this, "setStorage"); return; + case "freezerepo": + error_log("call freezerepo"); + GLCASpageBuilder($this, "freezeRepo"); + return; case "scanrepo": break; } @@ -93,6 +97,22 @@ class GLCASAdmin { $this->mainBody($url); } + function freezeRepo($url) + { + $repo = $_REQUEST["repo"]; + + + $myRep = new GLCASRepo($this->config); + + + error_log("called freeze repo on $repo"); + $myRep->freezeRepo($repo); + + global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL; + header("Location: $BASE_URL/admin/"); + + } + function doRemoveRepo($url) { $repo = $_REQUEST["repo"]; @@ -162,19 +182,22 @@ class GLCASAdmin { $version = $glt["versions"]; $archs = $glt["arch"]; - echo "
"; - print_r($glt); - echo ""; + //echo "
"; + //print_r($glt); + //echo ""; + echo "The joy of apt is that there could be a million distro's under the root of an apt mirror"; + echo "if it doesn't list here, but you know its there, its still usable for glcas"; echo "