summaryrefslogtreecommitdiffstats
path: root/frontends/php/hosts.html
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-05-01 16:01:40 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-05-01 16:01:40 +0000
commitba3fc7f6fabf0fa79fa48bf8039515244ee62a68 (patch)
tree081f2993cb0606d51d919458ccf3083c30994f9d /frontends/php/hosts.html
parent53dc3617b87ee0e05a7e9b14a37437f96fedf275 (diff)
Warnings elimination in PHP frontend.
git-svn-id: svn://svn.zabbix.com/trunk@61 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/hosts.html')
-rw-r--r--frontends/php/hosts.html24
1 files changed, 14 insertions, 10 deletions
diff --git a/frontends/php/hosts.html b/frontends/php/hosts.html
index 90488bbf..c427dfbc 100644
--- a/frontends/php/hosts.html
+++ b/frontends/php/hosts.html
@@ -11,17 +11,20 @@
?>
<?
- if($register=="add")
+ if(isset($register))
{
- add_host($platformid,$host,$port,$status);
- }
- if($register=="changestatus")
- {
- update_host_status($hostid,$status);
- }
- if($register=="delete")
- {
- delete_host($hostid);
+ if($register=="add")
+ {
+ add_host($platformid,$host,$port,$status);
+ }
+ if($register=="changestatus")
+ {
+ update_host_status($hostid,$status);
+ }
+ if($register=="delete")
+ {
+ delete_host($hostid);
+ }
}
?>
@@ -37,6 +40,7 @@
$result=DBselect("select h.hostid,p.platform,h.host,h.port,h.status from hosts h,platforms p where p.platformid=h.platformid order by p.platform,h.host");
echo "<CENTER>";
+ $col=0;
for($i=0;$i<DBnum_rows($result);$i++)
{
if($col==1)