summaryrefslogtreecommitdiffstats
path: root/frontends/php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-12-07 09:44:28 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-12-07 09:44:28 +0000
commit57aba8a89d9da927a39a3ffadf258ead2f27b3c7 (patch)
tree59a8dc852f93f9b9760043a4a2e9388ca4d9249e /frontends/php
parentcfacb3b129f95ee9efc41830d0a939875e7732ed (diff)
downloadzabbix-57aba8a89d9da927a39a3ffadf258ead2f27b3c7.tar.gz
zabbix-57aba8a89d9da927a39a3ffadf258ead2f27b3c7.tar.xz
zabbix-57aba8a89d9da927a39a3ffadf258ead2f27b3c7.zip
- all <? ?> were changed to <?php ?>. No changes in php.ini required anymore.
(Alexei) git-svn-id: svn://svn.zabbix.com/trunk@580 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
-rw-r--r--frontends/php/about.php6
-rw-r--r--frontends/php/actions.php12
-rw-r--r--frontends/php/alarms.php14
-rw-r--r--frontends/php/alerts.php10
-rw-r--r--frontends/php/chart.php2
-rw-r--r--frontends/php/chart2.php2
-rw-r--r--frontends/php/chart3.php2
-rw-r--r--frontends/php/chart4.php2
-rw-r--r--frontends/php/chart5.php2
-rw-r--r--frontends/php/chart_diff.php2
-rw-r--r--frontends/php/charts.php8
-rw-r--r--frontends/php/compare.php10
-rw-r--r--frontends/php/config.php14
-rw-r--r--frontends/php/graph.php14
-rw-r--r--frontends/php/graphs.php14
-rw-r--r--frontends/php/helpdesk.php12
-rw-r--r--frontends/php/history.php6
-rw-r--r--frontends/php/hosts.php14
-rw-r--r--frontends/php/include/config.inc.php70
-rw-r--r--frontends/php/include/db.inc.php2
-rw-r--r--frontends/php/include/defines.inc.php2
-rw-r--r--frontends/php/index.php6
-rw-r--r--frontends/php/items.php14
-rw-r--r--frontends/php/latest.php8
-rw-r--r--frontends/php/latestalarms.php10
-rw-r--r--frontends/php/map.php2
-rw-r--r--frontends/php/maps.php10
-rw-r--r--frontends/php/media.php12
-rw-r--r--frontends/php/queue.php12
-rw-r--r--frontends/php/report1.php28
-rw-r--r--frontends/php/report2.php12
-rw-r--r--frontends/php/services.php18
-rw-r--r--frontends/php/srv_status.php6
-rw-r--r--frontends/php/sysmap.php18
-rw-r--r--frontends/php/sysmaps.php14
-rw-r--r--frontends/php/tr_comments.php14
-rw-r--r--frontends/php/tr_status.php18
-rw-r--r--frontends/php/trend.php2
-rw-r--r--frontends/php/trends.php10
-rw-r--r--frontends/php/triggers.php16
-rw-r--r--frontends/php/users.php16
41 files changed, 233 insertions, 233 deletions
diff --git a/frontends/php/about.php b/frontends/php/about.php
index e3782588..ffd1e954 100644
--- a/frontends/php/about.php
+++ b/frontends/php/about.php
@@ -1,11 +1,11 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Abbout Zabbix";
$page["file"] = "about.php";
show_header($page["title"],0,0);
?>
-<?
+<?php
show_table_header("Information about Zabbix (v1.0beta6)");
?>
@@ -59,6 +59,6 @@
</TR>
</TABLE>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/actions.php b/frontends/php/actions.php
index 28fdd298..28a962d8 100644
--- a/frontends/php/actions.php
+++ b/frontends/php/actions.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["title"]="Actions";
$page["file"]="actions.php";
@@ -6,7 +6,7 @@
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right_on_trigger("U",$HTTP_GET_VARS["triggerid"]))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -15,7 +15,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]))
{
if($HTTP_GET_VARS["register"]=="add")
@@ -38,7 +38,7 @@
}
?>
-<?
+<?php
$trigger=get_trigger_by_triggerid($HTTP_GET_VARS["triggerid"]);
$expression=explode_exp($trigger["expression"],1);
$description=$trigger["description"];
@@ -49,7 +49,7 @@
show_table_header("$description<BR>$expression");
?>
-<?
+<?php
$sql="select a.actionid,a.triggerid,u.alias,a.good,a.delay,a.subject,a.message from actions a,users u where a.userid=u.userid and a.triggerid=".$HTTP_GET_VARS["triggerid"]." order by u.alias, a.good desc";
$result=DBselect($sql);
@@ -101,7 +101,7 @@
</table>
</div>
-<?
+<?php
if(isset($HTTP_GET_VARS["actionid"]))
{
diff --git a/frontends/php/alarms.php b/frontends/php/alarms.php
index 81d136bd..33f2a2e6 100644
--- a/frontends/php/alarms.php
+++ b/frontends/php/alarms.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["title"] = "Alarms";
$page["file"] = "alarms.php";
@@ -6,7 +6,7 @@
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right_on_trigger("R",$HTTP_GET_VARS["triggerid"]))
{
show_table_header("<font color=\"AA0000\">No permissions !</font
@@ -16,7 +16,7 @@
}
?>
-<?
+<?php
show_table_header_begin();
echo "ALARMS";
@@ -38,7 +38,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["limit"]) && ($HTTP_GET_VARS["limit"]=="NO"))
{
echo "[<A HREF=\"alarms.php?triggerid=".$HTTP_GET_VARS["triggerid"]."&limit=30\">";
@@ -57,7 +57,7 @@
?>
-<?
+<?php
$Expression=explode_exp($Expression,1);
if( strstr($Description,"%s"))
{
@@ -67,7 +67,7 @@
?>
<FONT COLOR="#000000">
-<?
+<?php
$sql="select clock,value,triggerid from alarms where triggerid=".$HTTP_GET_VARS["triggerid"]." order by clock desc $limit";
$result=DBselect($sql);
@@ -172,6 +172,6 @@
echo "</TABLE>";
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/alerts.php b/frontends/php/alerts.php
index e595b43b..1bac4931 100644
--- a/frontends/php/alerts.php
+++ b/frontends/php/alerts.php
@@ -1,18 +1,18 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Alert history";
$page["file"] = "alerts.php";
show_header($page["title"],30,0);
?>
-<?
+<?php
show_table_header_begin();
echo "ALERT HISTORY";
show_table_v_delimiter();
?>
-<?
+<?php
if(isset($start)&&($start<=0))
{
unset($start);
@@ -38,7 +38,7 @@
<FONT COLOR="#000000">
-<?
+<?php
if(!isset($start))
{
$sql="select a.alertid,a.clock,a.type,a.sendto,a.subject,a.message,ac.triggerid,a.status,a.retries from alerts a,actions ac where a.actionid=ac.actionid order by a.clock desc limit 1000";
@@ -118,6 +118,6 @@
</TR>
</TABLE>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/chart.php b/frontends/php/chart.php
index 493cce68..e07a7a12 100644
--- a/frontends/php/chart.php
+++ b/frontends/php/chart.php
@@ -1,4 +1,4 @@
-<?
+<?php
include "include/config.inc.php";
# PARAMETERS:
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php
index e71783b3..e79632fb 100644
--- a/frontends/php/chart2.php
+++ b/frontends/php/chart2.php
@@ -1,4 +1,4 @@
-<?
+<?php
include "include/config.inc.php";
# PARAMETERS:
diff --git a/frontends/php/chart3.php b/frontends/php/chart3.php
index 9f5b543e..d4132899 100644
--- a/frontends/php/chart3.php
+++ b/frontends/php/chart3.php
@@ -1,4 +1,4 @@
-<?
+<?php
include "include/config.inc.php";
# PARAMETERS:
diff --git a/frontends/php/chart4.php b/frontends/php/chart4.php
index e4ee1a07..d21b758c 100644
--- a/frontends/php/chart4.php
+++ b/frontends/php/chart4.php
@@ -1,4 +1,4 @@
-<?
+<?php
include "include/config.inc.php";
# PARAMETERS:
diff --git a/frontends/php/chart5.php b/frontends/php/chart5.php
index f25d0b65..b6fb1c05 100644
--- a/frontends/php/chart5.php
+++ b/frontends/php/chart5.php
@@ -1,4 +1,4 @@
-<?
+<?php
include "include/config.inc.php";
# PARAMETERS:
diff --git a/frontends/php/chart_diff.php b/frontends/php/chart_diff.php
index 6199e8a3..ed00193d 100644
--- a/frontends/php/chart_diff.php
+++ b/frontends/php/chart_diff.php
@@ -1,4 +1,4 @@
-<?
+<?php
include "include/config.inc.php";
# PARAMETERS:
diff --git a/frontends/php/charts.php b/frontends/php/charts.php
index e7c8a46d..83d669a5 100644
--- a/frontends/php/charts.php
+++ b/frontends/php/charts.php
@@ -1,4 +1,4 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "User defined graphs";
$page["file"] = "charts.php";
@@ -18,7 +18,7 @@
}
?>
-<?
+<?php
if(!isset($HTTP_GET_VARS["fullscreen"]))
{
show_table_header_begin();
@@ -59,7 +59,7 @@
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["graphid"]))
{
$result=DBselect("select name from graphs where graphid=".$HTTP_GET_VARS["graphid"]);
@@ -172,6 +172,6 @@
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/compare.php b/frontends/php/compare.php
index 6bb11bee..e302caf6 100644
--- a/frontends/php/compare.php
+++ b/frontends/php/compare.php
@@ -1,11 +1,11 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Latest values";
$page["file"] = "latest.php";
show_header($page["title"],300,0);
?>
-<?
+<?php
if(!check_right("Item","R",$HTTP_GET_VARS["itemid"]))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -14,7 +14,7 @@
}
?>
-<?
+<?php
show_table_header_begin();
$result=DBselect("select i.description,h.host,h.hostid from items i,hosts h where i.hostid=h.hostid and i.itemid=".$HTTP_GET_VARS["itemid"]);
$description=DBget_field($result,0,0);
@@ -64,7 +64,7 @@
echo "<br>";
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["itemid"])&&isset($HTTP_GET_VARS["type"]))
{
show_table_header(strtoupper($HTTP_GET_VARS["type"]));
@@ -104,6 +104,6 @@
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/config.php b/frontends/php/config.php
index ef02c0c0..45aa4644 100644
--- a/frontends/php/config.php
+++ b/frontends/php/config.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["title"] = "Configuration of Zabbix";
$page["file"] = "config.php";
@@ -6,7 +6,7 @@
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("Configuration of Zabbix","U",0))
{
show_table_header("<font color=\"AA0000\">No permissions !</font
@@ -16,7 +16,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]) && ($HTTP_GET_VARS["register"]=="update"))
{
$result=update_config($HTTP_GET_VARS["smtp_server"],$HTTP_GET_VARS["smtp_helo"],
@@ -26,16 +26,16 @@
}
?>
-<?
+<?php
show_table_header("CONFIGURATION OF ZABBIX");
echo "<br>";
?>
-<?
+<?php
$config=select_config();
?>
-<?
+<?php
show_table2_header_begin();
echo "Configuration";
@@ -71,6 +71,6 @@
show_table2_header_end();
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/graph.php b/frontends/php/graph.php
index 600374e2..511265f2 100644
--- a/frontends/php/graph.php
+++ b/frontends/php/graph.php
@@ -1,16 +1,16 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Configuration of graph";
$page["file"] = "graph.php";
show_header($page["title"],0,0);
?>
-<?
+<?php
show_table_header("CONFIGURATION OF GRAPH");
echo "<br>";
?>
-<?
+<?php
if(!check_right("Graph","R",$HTTP_GET_VARS["graphid"]))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -19,7 +19,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]))
{
if($HTTP_GET_VARS["register"]=="add")
@@ -36,7 +36,7 @@
}
?>
-<?
+<?php
$result=DBselect("select name from graphs where graphid=".$HTTP_GET_VARS["graphid"]);
$row=DBfetch($result);
show_table_header($row["name"]);
@@ -73,7 +73,7 @@
echo "</TABLE>";
?>
-<?
+<?php
echo "<br>";
echo "<a name=\"form\"></a>";
@@ -124,6 +124,6 @@
show_table2_header_end();
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/graphs.php b/frontends/php/graphs.php
index b38672ce..ee03eaeb 100644
--- a/frontends/php/graphs.php
+++ b/frontends/php/graphs.php
@@ -1,16 +1,16 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Graphs";
$page["file"] = "graphs.php";
show_header($page["title"],0,0);
?>
-<?
+<?php
show_table_header("CONFIGURATION OF GRAPHS");
echo "<br>";
?>
-<?
+<?php
if(!check_right("Graph","U",0))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -19,7 +19,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]))
{
if($HTTP_GET_VARS["register"]=="add")
@@ -41,7 +41,7 @@
}
?>
-<?
+<?php
show_table_header("GRAPHS");
echo "<TABLE BORDER=0 COLS=4 WIDTH=100% BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>";
echo "<TD WIDTH=5% NOSAVE><B>Id</B></TD>";
@@ -73,7 +73,7 @@
echo "</TABLE>";
?>
-<?
+<?php
echo "<a name=\"form\"></a>";
if(isset($HTTP_GET_VARS["graphid"]))
@@ -125,6 +125,6 @@
show_table2_header_end();
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/helpdesk.php b/frontends/php/helpdesk.php
index c0ff9ca5..60d3caab 100644
--- a/frontends/php/helpdesk.php
+++ b/frontends/php/helpdesk.php
@@ -1,18 +1,18 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Helpdesk";
$page["file"] = "helpdesk.php";
show_header($page["title"],0,0);
?>
-<?
+<?php
show_table_header_begin();
echo "IT HELPDESK";
show_table_v_delimiter();
?>
-<?
+<?php
if(isset($start)&&($start<=0))
{
unset($start);
@@ -38,7 +38,7 @@
<FONT COLOR="#000000">
-<?
+<?php
if(!isset($start))
{
$sql="select problemid,clock,status,description,priority,userid,triggerid,lastupdate,categoryid from problems where status=0 order by clock,priority limit 1000";
@@ -140,11 +140,11 @@
echo "</TABLE>";
?>
-<?
+<?php
echo "<a name=\"form\"></a>";
insert_problem_form($HTTP_GET_VARS["problemid"]);
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/history.php b/frontends/php/history.php
index 68f6eb42..04885cf0 100644
--- a/frontends/php/history.php
+++ b/frontends/php/history.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["file"]="history.php";
include "include/config.inc.php";
@@ -53,7 +53,7 @@
?>
-<?
+<?php
if($HTTP_GET_VARS["action"]=="plaintext")
{
$from=mktime($fromhour,$frommin,0,$frommonth,$fromday,$fromyear);
@@ -64,7 +64,7 @@
?>
-<?
+<?php
show_table_header_begin();
$item=get_item_by_itemid($HTTP_GET_VARS["itemid"]);
if($item["value_type"] == 0)
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php
index c3cecaaa..2d2308cd 100644
--- a/frontends/php/hosts.php
+++ b/frontends/php/hosts.php
@@ -1,11 +1,11 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Hosts";
$page["file"] = "hosts.php";
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("Host","U",0))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -14,7 +14,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]))
{
if($HTTP_GET_VARS["register"]=="add")
@@ -44,11 +44,11 @@
}
?>
-<?
+<?php
show_table_header("CONFIGURATION OF HOSTS");
?>
-<?
+<?php
if(!isset($HTTP_GET_VARS["hostid"]))
{
echo "<TABLE BORDER=0 COLS=4 align=center WIDTH=100% BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>";
@@ -112,7 +112,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]) && ($HTTP_GET_VARS["register"] == "change"))
{
$result=DBselect("select host,port,status,useip,ip from hosts where hostid=".$HTTP_GET_VARS["hostid"]);
@@ -247,6 +247,6 @@
show_table2_header_end();
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index e1e4b078..083aa2a5 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -1,4 +1,4 @@
-<?
+<?php
include "include/defines.inc.php";
include "include/db.inc.php";
@@ -756,7 +756,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Alexei Vladishev">
<link rel="stylesheet" href="css.css">
-<?
+<?php
if($refresh!=0)
{
echo "<meta http-equiv=\"refresh\" content=\"$refresh\">";
@@ -769,7 +769,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
echo "<head>";
?>
<body>
-<?
+<?php
if($nomenu == 0)
{
?>
@@ -780,7 +780,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
<table width=100% border=0 cellspacing=1 cellpadding=3>
<tr>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Host","R",0))
{
echo "<a href=\"latest.php\">";
@@ -797,7 +797,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=10%>
-<?
+<?php
if(check_right("Host","R",0))
{
echo "<a href=\"tr_status.php?notitle=true&onlytrue=true&noactions=true&compact=true\">";
@@ -813,7 +813,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=10%>
-<?
+<?php
if(check_right("Host","R",0))
{
echo "<a href=\"queue.php\">";
@@ -829,13 +829,13 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=10%>
-<?
+<?php
if(check_right("Default permission","R",0))
{
echo "<a href=\"latestalarms.php\">";
}
?>
-<?
+<?php
if(($page["file"]=="latestalarms.php") ||
($page["file"]=="alarms.php"))
{
@@ -848,13 +848,13 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Default permission","R",0))
{
echo "<a href=\"alerts.php\">";
}
?>
-<?
+<?php
if($page["file"]=="alerts.php")
{
echo "<b>[ALERT HISTORY]</b></a>";
@@ -866,13 +866,13 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Network map","R",0))
{
echo "<a href=\"maps.php\">";
}
?>
-<?
+<?php
if($page["file"]=="maps.php")
{
echo "<b>[NETWORK MAPS]</b></a>";
@@ -884,13 +884,13 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Graph","R",0))
{
echo "<a href=\"charts.php\">";
}
?>
-<?
+<?php
if($page["file"]=="charts.php")
{
echo "<b>[GRAPHS]</b></a>";
@@ -903,7 +903,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
</td>
<td colspan=2 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Service","R",0))
{
echo "<a href=\"srv_status.php\">";
@@ -922,7 +922,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
<tr>
<td colspan=2 bgcolor=FFFFFF align=center valign=top width=15%>
<a href="index.php">
-<?
+<?php
if($page["file"]=="index.php")
{
echo "<b>[HOME]</b></a>";
@@ -934,13 +934,13 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=2 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Default permission","R",0))
{
echo "<a href=\"about.php\">";
}
?>
-<?
+<?php
if($page["file"]=="about.php")
{
echo "<b>[ABOUT]</b></a>";
@@ -952,13 +952,13 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=2 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Default permission","R",0))
{
echo "<a href=\"report1.php\">";
}
?>
-<?
+<?php
if($page["file"]=="report1.php")
{
echo "<b>[STATUS OF ZABBIX]</b></a>";
@@ -970,13 +970,13 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=3 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Host","R",0))
{
echo "<a href=\"report2.php\">";
}
?>
-<?
+<?php
if($page["file"]=="report2.php")
{
echo "<b>[AVAILABILITY REPORT]</b></a>";
@@ -988,7 +988,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
</tr>
-<?
+<?php
// Third row
if( check_right("Configuration of Zabbix","U",0)
||
@@ -1007,7 +1007,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
<tr>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Configuration of Zabbix","U",0))
{
echo "<a href=\"config.php\">";
@@ -1023,7 +1023,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=10%>
-<?
+<?php
if(check_right("User","U",0))
{
echo "<a href=\"users.php\">";
@@ -1040,7 +1040,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=10%>
-<?
+<?php
if(check_right("Host","U",0))
{
echo "<a href=\"hosts.php\">";
@@ -1056,7 +1056,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=10%>
-<?
+<?php
if(check_right("Host","U",0))
{
echo "<a href=\"items.php\">";
@@ -1072,7 +1072,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Host","U",0))
{
echo "<a href=\"triggers.php\">";
@@ -1089,7 +1089,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Network map","U",0))
{
echo "<a href=\"sysmaps.php\">";
@@ -1106,7 +1106,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
?>
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Graph","U",0))
{
echo "<a href=\"graphs.php\">";
@@ -1124,7 +1124,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
</td>
<td colspan=1 bgcolor=FFFFFF align=center valign=top width=15%>
-<?
+<?php
if(check_right("Service","U",0))
{
echo "<a href=\"services.php\">";
@@ -1141,7 +1141,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
</td>
</tr>
-<?
+<?php
// THird row
}
?>
@@ -1151,7 +1151,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
</table>
<br>
-<?
+<?php
}
}
@@ -3088,7 +3088,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
show_table2_header_end();
?>
-<?
+<?php
?>
</TR>
</TABLE>
@@ -3098,7 +3098,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
</BODY>
</HTML>
-<?
+<?php
}
# Insert form for User permissions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index 0dc1967c..34b9fa4c 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -1,4 +1,4 @@
-<?
+<?php
$DB_TYPE ="POSTGRESQL";
// $DB_TYPE ="MYSQL";
diff --git a/frontends/php/include/defines.inc.php b/frontends/php/include/defines.inc.php
index 48ea09c2..c269ea26 100644
--- a/frontends/php/include/defines.inc.php
+++ b/frontends/php/include/defines.inc.php
@@ -1,4 +1,4 @@
-<?
+<?php
define("SERVICE_ALGORITHM_NONE",0);
define("SERVICE_ALGORITHM_MAX",1);
?>
diff --git a/frontends/php/index.php b/frontends/php/index.php
index a8c41b96..610a19cb 100644
--- a/frontends/php/index.php
+++ b/frontends/php/index.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["title"]="Zabbix main page";
$page["file"]="index.php";
@@ -77,7 +77,7 @@
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!isset($sessionid))
{
// echo "-",$HTTP_COOKIE_VARS["sessionid"],"-<br>";
@@ -91,6 +91,6 @@
}
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/items.php b/frontends/php/items.php
index 2a33ac1d..de97c82b 100644
--- a/frontends/php/items.php
+++ b/frontends/php/items.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["title"] = "Configuration of items";
$page["file"] = "items.php";
@@ -6,7 +6,7 @@
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("Host","U",0))
{
show_table_header("<font color=\"AA0000\">No permissions !</font
@@ -16,7 +16,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]))
{
if($HTTP_GET_VARS["register"]=="update")
@@ -46,13 +46,13 @@
}
?>
-<?
+<?php
show_table_header_begin();
echo "CONFIGURATION OF ITEMS";
show_table_v_delimiter();
?>
-<?
+<?php
$result=DBselect("select hostid,host from hosts order by host");
while($row=DBfetch($result))
{
@@ -198,7 +198,7 @@
}
?>
-<?
+<?php
$result=DBselect("select count(*) from hosts");
if(DBget_field($result,0,0)>0)
{
@@ -207,6 +207,6 @@
}
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/latest.php b/frontends/php/latest.php
index 48d73408..7c74f3d1 100644
--- a/frontends/php/latest.php
+++ b/frontends/php/latest.php
@@ -1,11 +1,11 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Latest values";
$page["file"] = "latest.php";
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("Host","R",0))
{
show_table_header("<font color=\"AA0000\">No permissions !</font
@@ -27,7 +27,7 @@
}
?>
-<?
+<?php
show_table_header_begin();
echo "LATEST DATA";
@@ -340,6 +340,6 @@
}
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/latestalarms.php b/frontends/php/latestalarms.php
index 37b139bd..6b25179a 100644
--- a/frontends/php/latestalarms.php
+++ b/frontends/php/latestalarms.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["title"] = "Latest alarms";
$page["file"] = "latestalarms.php";
@@ -6,14 +6,14 @@
show_header($page["title"],30,0);
?>
-<?
+<?php
show_table_header_begin();
echo "HISTORY OF ALARMS";
show_table_v_delimiter();
?>
-<?
+<?php
if(isset($start)&&($start<=0))
{
unset($start);
@@ -38,7 +38,7 @@
?>
<FONT COLOR="#000000">
-<?
+<?php
if(!isset($start))
{
$sql="select t.description,a.clock,a.value,t.triggerid from alarms a,triggers t where t.triggerid=a.triggerid order by clock desc limit 1000";
@@ -100,6 +100,6 @@
</TR>
</TABLE>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/map.php b/frontends/php/map.php
index 4ac2ef5b..b599b3a7 100644
--- a/frontends/php/map.php
+++ b/frontends/php/map.php
@@ -1,4 +1,4 @@
-<?
+<?php
include "include/config.inc.php";
# PARAMETERS:
diff --git a/frontends/php/maps.php b/frontends/php/maps.php
index 31e0cb2b..ae1212f6 100644
--- a/frontends/php/maps.php
+++ b/frontends/php/maps.php
@@ -1,4 +1,4 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Network maps";
$page["file"] = "maps.php";
@@ -18,7 +18,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["sysmapid"])&&!check_right("Network map","R",$HTTP_GET_VARS["sysmapid"]))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -27,7 +27,7 @@
}
?>
-<?
+<?php
if(!isset($HTTP_GET_VARS["fullscreen"]))
{
show_table_header_begin();
@@ -66,7 +66,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["sysmapid"]))
{
$result=DBselect("select name from sysmaps where sysmapid=".$HTTP_GET_VARS["sysmapid"]);
@@ -124,6 +124,6 @@
echo "</TABLE>";
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/media.php b/frontends/php/media.php
index f0f917e8..4b2df951 100644
--- a/frontends/php/media.php
+++ b/frontends/php/media.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["title"] = "Media";
$page["file"] = "media.php";
@@ -6,7 +6,7 @@
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("User","R",$HTTP_GET_VARS["userid"]))
{
show_table_header("<font color=\"AA0000\">No permissions !</font
@@ -17,7 +17,7 @@
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]))
{
if($HTTP_GET_VARS["register"]=="enable")
@@ -44,12 +44,12 @@
}
?>
-<?
+<?php
show_table_header("MEDIA");
?>
<FONT COLOR="#000000">
-<?
+<?php
$sql="select mediaid,type,sendto,active from media where userid=".$HTTP_GET_VARS["userid"]." order by type,sendto";
$result=DBselect($sql);
@@ -107,7 +107,7 @@
</TR>
</TABLE>
-<?
+<?php
echo "<br>";
show_table2_header_begin();
echo "New media";
diff --git a/frontends/php/queue.php b/frontends/php/queue.php
index 786f3936..1012880f 100644
--- a/frontends/php/queue.php
+++ b/frontends/php/queue.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["title"] = "Information about monitoring server";
$page["file"] = "queue.php";
@@ -6,7 +6,7 @@
show_header($page["title"],10,0);
?>
-<?
+<?php
if(!check_right("Host","R",0))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -15,10 +15,10 @@
}
?>
-<?
+<?php
show_table_header("QUEUE OF ITEMS TO BE UPDATED");
?>
-<?
+<?php
$now=time();
$result=DBselect("select i.itemid, i.nextcheck, i.description, h.host,h.hostid from items i,hosts h where i.status=0 and h.status=0 and i.hostid=h.hostid and i.nextcheck<$now and i.key_<>'status' order by i.nextcheck");
echo "<table border=0 width=100% bgcolor='#CCCCCC' cellspacing=1 cellpadding=3>";
@@ -41,10 +41,10 @@
}
echo "</table>";
?>
-<?
+<?php
show_table_header("Total:$col");
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/report1.php b/frontends/php/report1.php
index 7bf036d2..8f0e4bdb 100644
--- a/frontends/php/report1.php
+++ b/frontends/php/report1.php
@@ -1,11 +1,11 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Status of Zabbix";
$page["file"] = "report1.php";
show_header($page["title"],0,0);
?>
-<?
+<?php
show_table_header("STATUS OF ZABBIX");
echo "<TABLE BORDER=0 WIDTH=100% BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>";
@@ -18,65 +18,65 @@
<tr bgcolor="#eeeeee">
<td>Is zabbix_suckerd running ?</td>
- <?
+ <?php
$str="No";
if(exec("ps -aef|grep zabbix_suckerd|grep -v grep|wc -l")>0)
{
$str="Yes";
}
?>
- <td><? echo $str; ?></td>
+ <td><?php echo $str; ?></td>
</tr>
<tr bgcolor="#dddddd">
<td>Is zabbix_trapperd running ?</td>
- <?
+ <?php
$str="No";
if(exec("ps -aef|grep zabbix_trapperd|grep -v grep|wc -l")>0)
{
$str="Yes";
}
?>
- <td><? echo $str; ?></td>
+ <td><?php echo $str; ?></td>
</tr>
<tr bgcolor="#eeeeee">
<td>Number of values stored in table history</td>
- <td><? echo $stats["history_count"]; ?></td>
+ <td><?php echo $stats["history_count"]; ?></td>
</tr>
<tr bgcolor="#dddddd">
<td>Number of values stored in table alarms</td>
- <td><? echo $stats["alarms_count"]; ?></td>
+ <td><?php echo $stats["alarms_count"]; ?></td>
</tr>
<tr bgcolor="#eeeeee">
<td>Number of values stored in table alerts</td>
- <td><? echo $stats["alerts_count"]; ?></td>
+ <td><?php echo $stats["alerts_count"]; ?></td>
</tr>
<tr bgcolor="#dddddd">
<td>Number of triggers (enabled/disabled)</td>
- <td><? echo $stats["triggers_count"],"(",$stats["triggers_count_enabled"],"/",$stats["triggers_count_disabled"],")"; ?></td>
+ <td><?php echo $stats["triggers_count"],"(",$stats["triggers_count_enabled"],"/",$stats["triggers_count_disabled"],")"; ?></td>
</tr>
<tr bgcolor="#eeeeee">
<td>Number of items (active/trapper/not active/not supported)</td>
- <td><? echo $stats["items_count"],"(",$stats["items_count_active"],"/",$stats["items_count_trapper"],"/",$stats["items_count_not_active"],"/",$stats["items_count_not_supported"],")"; ?></td>
+ <td><?php echo $stats["items_count"],"(",$stats["items_count_active"],"/",$stats["items_count_trapper"],"/",$stats["items_count_not_active"],"/",$stats["items_count_not_supported"],")"; ?></td>
</tr>
<tr bgcolor="#dddddd">
<td>Number of users</td>
- <td><? echo $stats["users_count"]; ?></td>
+ <td><?php echo $stats["users_count"]; ?></td>
</tr>
<tr bgcolor="#eeeeee">
<td>Number of hosts (monitored/not monitored)</td>
- <td><? echo $stats["hosts_count"],"(",$stats["hosts_count_monitored"],"/",$stats["hosts_count_not_monitored"],")"; ?></td>
+ <td><?php echo $stats["hosts_count"],"(",$stats["hosts_count_monitored"],"/",$stats["hosts_count_not_monitored"],")"; ?></td>
</tr>
</table>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/report2.php b/frontends/php/report2.php
index b866d6ed..2e7586c7 100644
--- a/frontends/php/report2.php
+++ b/frontends/php/report2.php
@@ -1,11 +1,11 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Availability report";
$page["file"] = "report2.php";
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("Host","R",0))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -14,7 +14,7 @@
}
?>
-<?
+<?php
show_table_header_begin();
echo "AVAILABILITY REPORT";
@@ -43,7 +43,7 @@
show_table_header_end();
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["hostid"])&&!isset($HTTP_GET_VARS["triggerid"]))
{
echo "<br>";
@@ -102,7 +102,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["triggerid"]))
{
echo "<TABLE BORDER=0 COLS=4 align=center WIDTH=100% BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>";
@@ -117,6 +117,6 @@
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/services.php b/frontends/php/services.php
index d0fdb894..8e1c0103 100644
--- a/frontends/php/services.php
+++ b/frontends/php/services.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["title"] = "High-level representation of monitored data";
$page["file"] = "services.php";
@@ -6,7 +6,7 @@
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("Service","U",0))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -15,7 +15,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]))
{
if($HTTP_GET_VARS["register"]=="update")
@@ -60,7 +60,7 @@
}
?>
-<?
+<?php
show_table_header("IT SERVICES");
$now=time();
@@ -140,7 +140,7 @@
echo "</table>";
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["serviceid"]))
{
show_table_header("LINKS");
@@ -177,7 +177,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["serviceid"]))
{
$result=DBselect("select serviceid,triggerid,name,algorithm from services where serviceid=".$HTTP_GET_VARS["serviceid"]);
@@ -277,7 +277,7 @@
show_table2_header_end();
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["serviceid"]))
{
$result=DBselect("select serviceid,triggerid,name from services where serviceid=".$HTTP_GET_VARS["serviceid"]);
@@ -336,7 +336,7 @@
show_table2_header_end();
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["serviceid"]))
{
@@ -368,6 +368,6 @@
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/srv_status.php b/frontends/php/srv_status.php
index 90769ba6..67544b0a 100644
--- a/frontends/php/srv_status.php
+++ b/frontends/php/srv_status.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["title"] = "High-level representation of monitored data";
$page["file"] = "srv_status.php";
@@ -6,7 +6,7 @@
show_header($page["title"],30,0);
?>
-<?
+<?php
show_table_header("IT SERVICES");
if(isset($HTTP_GET_VARS["serviceid"])&&isset($HTTP_GET_VARS["showgraph"]))
@@ -138,6 +138,6 @@
echo "</table>";
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php
index 4158f3ec..5c1634d2 100644
--- a/frontends/php/sysmap.php
+++ b/frontends/php/sysmap.php
@@ -1,11 +1,11 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Configuration of network map";
$page["file"] = "sysmap.php";
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("Network map","U",$HTTP_GET_VARS["sysmapid"]))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -14,12 +14,12 @@
}
?>
-<?
+<?php
show_table_header("CONFIGURATION OF NETWORK MAP");
echo "<br>";
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]))
{
if($HTTP_GET_VARS["register"]=="add")
@@ -52,7 +52,7 @@
}
?>
-<?
+<?php
$result=DBselect("select name from sysmaps where sysmapid=".$HTTP_GET_VARS["sysmapid"]);
$map=DBget_field($result,0,0);
show_table_header($map);
@@ -129,7 +129,7 @@
echo "</TABLE>";
?>
-<?
+<?php
show_table_header("CONNECTORS");
echo "<TABLE BORDER=0 COLS=4 align=center WIDTH=100% BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>";
echo "<TD WIDTH=10% NOSAVE><B>Host 1</B></TD>";
@@ -168,7 +168,7 @@
echo "</TABLE>";
?>
-<?
+<?php
echo "<br>";
echo "<a name=\"form\"></a>";
@@ -267,7 +267,7 @@
show_table2_header_end();
?>
-<?
+<?php
echo "<br>";
show_table2_header_begin();
echo "New connector";
@@ -313,6 +313,6 @@
show_table2_header_end();
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/sysmaps.php b/frontends/php/sysmaps.php
index 60d8ed2e..7baf8646 100644
--- a/frontends/php/sysmaps.php
+++ b/frontends/php/sysmaps.php
@@ -1,11 +1,11 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Network maps";
$page["file"] = "sysmaps.php";
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("Network map","U",0))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -14,7 +14,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]))
{
if($HTTP_GET_VARS["register"]=="add")
@@ -36,12 +36,12 @@
}
?>
-<?
+<?php
show_table_header("CONFIGURATION OF NETWORK MAPS");
echo "<br>";
?>
-<?
+<?php
show_table_header("NETWORK MAPS");
echo "<TABLE BORDER=0 align=center COLS=4 WIDTH=100% BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>";
echo "<TD WIDTH=3% NOSAVE><B>Id</B></TD>";
@@ -80,7 +80,7 @@
echo "</TABLE>";
?>
-<?
+<?php
echo "<a name=\"form\"></a>";
if(isset($HTTP_GET_VARS["sysmapid"]))
@@ -131,6 +131,6 @@
show_table2_header_end();
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/tr_comments.php b/frontends/php/tr_comments.php
index 38d2dbf3..28f1e1aa 100644
--- a/frontends/php/tr_comments.php
+++ b/frontends/php/tr_comments.php
@@ -1,11 +1,11 @@
-<?
+<?php
$page["title"] = "Trigger comments";
$page["file"] = "tr_comments.php";
include "include/config.inc.php";
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("Trigger comment","R",$HTTP_GET_VARS["triggerid"]))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -14,12 +14,12 @@
}
?>
-<?
+<?php
show_table_header("TRIGGER COMMENTS");
echo "<br>";
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]) && ($HTTP_GET_VARS["register"]=="update"))
{
$result=update_trigger_comments($HTTP_GET_VARS["triggerid"],$HTTP_GET_VARS["comments"]);
@@ -27,12 +27,12 @@
}
?>
-<?
+<?php
$result=DBselect("select comments from triggers where triggerid=".$HTTP_GET_VARS["triggerid"]);
$comments=stripslashes(DBget_field($result,0,0));
?>
-<?
+<?php
show_table2_header_begin();
echo "Comments";
@@ -49,6 +49,6 @@
show_table2_header_end();
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/tr_status.php b/frontends/php/tr_status.php
index a0e8a3b3..f21d8a55 100644
--- a/frontends/php/tr_status.php
+++ b/frontends/php/tr_status.php
@@ -1,10 +1,10 @@
-<?
+<?php
$page["title"] = "Status of triggers";
$page["file"] = "tr_status.php";
include "include/config.inc.php";
?>
-<?
+<?php
$tr_hash=calc_trigger_hash();
setcookie("triggers_hash",$tr_hash,time()+1800);
@@ -40,7 +40,7 @@
// echo "$tr_hash<br>$triggers_hash<br>".$old[1]."<br>".$new[1];
?>
-<?
+<?php
$refresh=10;
if(!isset($HTTP_GET_VARS["onlytrue"]))
{
@@ -55,7 +55,7 @@
show_header($page["title"],$refresh,0);
}
?>
-<?
+<?php
if(!check_right("Host","R",0))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -69,14 +69,14 @@
exit;
}
?>
-<?
+<?php
if(isset($audio))
{
echo "<BGSOUND src=\"audio/$audio\" loop=0>";
}
?>
-<?
+<?php
if(!isset($HTTP_GET_VARS["sort"]))
{
@@ -112,7 +112,7 @@
}
?>
-<?
+<?php
if(!isset($HTTP_GET_VARS["select"]))
{
$select="";
@@ -174,7 +174,7 @@
show_table_v_delimiter();
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["hostid"]))
{
$cond="&hostid=".$HTTP_GET_VARS["hostid"];
@@ -473,6 +473,6 @@
show_table_header("Total:$col");
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/trend.php b/frontends/php/trend.php
index f2d00290..736e9d50 100644
--- a/frontends/php/trend.php
+++ b/frontends/php/trend.php
@@ -1,4 +1,4 @@
-<?
+<?php
include "include/config.inc.php";
# PARAMETERS:
diff --git a/frontends/php/trends.php b/frontends/php/trends.php
index d738d061..49c73b6a 100644
--- a/frontends/php/trends.php
+++ b/frontends/php/trends.php
@@ -1,11 +1,11 @@
-<?
+<?php
include "include/config.inc.php";
$page["title"] = "Latest values";
$page["file"] = "latest.php";
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("Item","R",$HTTP_GET_VARS["itemid"]))
{
show_table_header("<font color=\"AA0000\">No permissions !</font>");
@@ -14,7 +14,7 @@
}
?>
-<?
+<?php
show_table_header_begin();
$result=DBselect("select i.description,h.host,h.hostid from items i,hosts h where i.hostid=h.hostid and i.itemid=".$HTTP_GET_VARS["itemid"]);
$description=DBget_field($result,0,0);
@@ -85,7 +85,7 @@
echo "<br>";
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["itemid"])&&isset($HTTP_GET_VARS["type"]))
{
show_table_header(strtoupper($HTTP_GET_VARS["type"]));
@@ -126,6 +126,6 @@
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/triggers.php b/frontends/php/triggers.php
index 68e95517..af25cf41 100644
--- a/frontends/php/triggers.php
+++ b/frontends/php/triggers.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["title"] = "Configuration of triggers";
$page["file"] = "triggers.php";
@@ -6,7 +6,7 @@
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("Host","U",0))
{
show_table_header("<font color=\"AA0000\">No permissions !</font
@@ -17,7 +17,7 @@
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]))
{
if($HTTP_GET_VARS["register"]=="add dependency")
@@ -78,13 +78,13 @@
}
?>
-<?
+<?php
show_table_header_begin();
echo "CONFIGURATION OF TRIGGERS";
show_table_v_delimiter();
?>
-<?
+<?php
$result=DBselect("select hostid,host from hosts order by host");
while($row=DBfetch($result))
{
@@ -105,7 +105,7 @@
show_table_header_end();
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["hostid"])&&!isset($HTTP_GET_VARS["triggerid"]))
{
@@ -182,7 +182,7 @@
}
?>
-<?
+<?php
$result=DBselect("select count(*) from hosts");
if(DBget_field($result,0,0)>0)
{
@@ -191,6 +191,6 @@
}
?>
-<?
+<?php
show_footer();
?>
diff --git a/frontends/php/users.php b/frontends/php/users.php
index 1e0161ee..c2f95369 100644
--- a/frontends/php/users.php
+++ b/frontends/php/users.php
@@ -1,4 +1,4 @@
-<?
+<?php
$page["title"] = "Users";
$page["file"] = "users.php";
@@ -6,7 +6,7 @@
show_header($page["title"],0,0);
?>
-<?
+<?php
if(!check_right("User","U",0))
{
show_table_header("<font color=\"AA0000\">No permissions !</font
@@ -16,7 +16,7 @@
}
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["register"]))
{
if($HTTP_GET_VARS["register"]=="add")
@@ -63,11 +63,11 @@
}
?>
-<?
+<?php
show_table_header("CONFIGURATION OF USERS");
?>
-<?
+<?php
echo "<TABLE BORDER=0 COLS=4 align=center WIDTH=100% BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>";
echo "<TR><TD WIDTH=3%><B>Id</B></TD>";
echo "<TD WIDTH=10%><B>Alias</B></TD>";
@@ -113,7 +113,7 @@
echo "</TABLE>";
?>
-<?
+<?php
if(isset($HTTP_GET_VARS["userid"]))
{
echo "<br>";
@@ -168,12 +168,12 @@
}
?>
-<?
+<?php
echo "<br>";
@insert_user_form($HTTP_GET_VARS["userid"]);
?>
-<?
+<?php
show_footer();
?>