X-Git-Url: http://git.pjr.cc/?p=glcas.git;a=blobdiff_plain;f=plugins%2Fhosts.php;fp=plugins%2Fhosts.php;h=fecbed4577f41092fbab49d7964bee9531394651;hp=d2222b69bdbf3f3fcfc46a88cc461364bcb3d913;hb=8dbcce4c71cb51e6bb8939d50a7cbf8badf4bf24;hpb=e842b9e98acbc69ea55e655130b68df06f25b3cd diff --git a/plugins/hosts.php b/plugins/hosts.php index d2222b6..fecbed4 100644 --- a/plugins/hosts.php +++ b/plugins/hosts.php @@ -114,6 +114,8 @@ class GLCASHosts { $this->config->addData("hosts", "$hname", "$hip", "$groupop"); } if($operation == "delete") { + $this->config->delData("ping", "$hip"); + $this->config->delData("lastseen", "$hip"); $this->config->delData("hosts", "$hname", "$hip", "$hg"); } if($operation == "ping") { @@ -308,7 +310,7 @@ class GLCASHosts { } } $lastseen = glcas_getLastSeen($hip, $this->config->getData("lastseen", "$hip")); - echo "$hname$hip$lastseen$lastpingDelete"; + echo "$hname$hip$lastseen$lastping"; } } echo ""; @@ -342,7 +344,7 @@ class GLCASHosts { } $lastseen = glcas_getLastSeen($hip, $this->config->getData("lastseen", "$hip")); - echo "$hname$hip$lastseen$lastpingDelete"; + echo "$hname$hip$lastseen$lastping"; } } echo "";