X-Git-Url: http://git.pjr.cc/?p=glcas.git;a=blobdiff_plain;f=plugins%2Fhosts.php;fp=plugins%2Fhosts.php;h=a5709a56569040d54c60692f9b09a6e5d1f6e06e;hp=0000000000000000000000000000000000000000;hb=486854e1f39db5dd0fe2f317d2a586dd6ac39124;hpb=055302909804ea2ad974c15ade944c74070ddedf diff --git a/plugins/hosts.php b/plugins/hosts.php new file mode 100644 index 0000000..a5709a5 --- /dev/null +++ b/plugins/hosts.php @@ -0,0 +1,47 @@ +config = $config; + error_log("constructor for GLCASHosts"); + + } + + function go($url) + { + if(isset($_REQUEST["action"])) { + switch($_REQUEST["action"]) { + case "addpackage": + error_log("in updaterepo"); + GLCASpageBuilder($this,"addPackage"); + return; + case "deletepkg": + error_log("in delete pkg"); + GLCASpageBuilder($this, "delPackage"); + return; + } + } + + GLCASpageBuilder($this,"mainBody"); + return; + + } + + function mainBody($url) + { + echo "I am a hosts thingy"; + } + + private $config; +} + +?> \ No newline at end of file