$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") {
}
}
$lastseen = glcas_getLastSeen($hip, $this->config->getData("lastseen", "$hip"));
- echo "<tr><td><input type=\"checkbox\" name=\"$hname-selecthost\"></td><td>$hname</td><td>$hip</td><td>$lastseen</td><td>$lastping</td><td><a href=\"?action=deletehost&hostname=$hname\">Delete</a></tr>";
+ echo "<tr><td><input type=\"checkbox\" name=\"$hname-selecthost\"></td><td>$hname</td><td>$hip</td><td>$lastseen</td><td>$lastping</td></tr>";
}
}
echo "</table>";
}
$lastseen = glcas_getLastSeen($hip, $this->config->getData("lastseen", "$hip"));
- echo "<tr><td><input type=\"checkbox\" name=\"$hname-selecthost\"></td><td>$hname</td><td>$hip</td><td>$lastseen</td><td>$lastping</td><td><a href=\"?action=deletehost&hostname=$hname\">Delete</a></tr>";
+ echo "<tr><td><input type=\"checkbox\" name=\"$hname-selecthost\"></td><td>$hname</td><td>$hip</td><td>$lastseen</td><td>$lastping</td></tr>";
}
}
echo "</table>";