diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-09-18 08:15:56 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-09-18 08:15:56 +0000 |
| commit | 984e8708f85679aefd3d0029383e8fefbaf647a0 (patch) | |
| tree | 5c01c40c2f38bbd525942ecce7e21bcb77366787 /frontends/php/graphs.php | |
| parent | 44e8cd98347176a8c79a470c5a0b7e6d236991e0 (diff) | |
| download | zabbix-984e8708f85679aefd3d0029383e8fefbaf647a0.tar.gz zabbix-984e8708f85679aefd3d0029383e8fefbaf647a0.tar.xz zabbix-984e8708f85679aefd3d0029383e8fefbaf647a0.zip | |
Better audit support.
git-svn-id: svn://svn.zabbix.com/trunk@1428 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/graphs.php')
| -rw-r--r-- | frontends/php/graphs.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/frontends/php/graphs.php b/frontends/php/graphs.php index 3f6421b8..49472e95 100644 --- a/frontends/php/graphs.php +++ b/frontends/php/graphs.php @@ -47,16 +47,29 @@ if($_GET["register"]=="add") { $result=add_graph($_GET["name"],$_GET["width"],$_GET["height"],$_GET["yaxistype"],$_GET["yaxismin"],$_GET["yaxismax"]); + if($result) + { + add_audit(AUDIT_ACTION_ADD,AUDIT_RESOURCE_GRAPH,"Graph [".addslashes($_GET["name"])."]"); + } show_messages($result, S_GRAPH_ADDED, S_CANNOT_ADD_GRAPH); } if($_GET["register"]=="update") { $result=update_graph($_GET["graphid"],$_GET["name"],$_GET["width"],$_GET["height"],$_GET["yaxistype"],$_GET["yaxismin"],$_GET["yaxismax"]); + if($result) + { + add_audit(AUDIT_ACTION_ADD,AUDIT_RESOURCE_GRAPH,"Graph ID [".$_GET["graphid"]."] Graph [".addslashes($_GET["name"])."]"); + } show_messages($result, S_GRAPH_UPDATED, S_CANNOT_UPDATE_GRAPH); } if($_GET["register"]=="delete") { + $graph=get_graph_by_graphid($_GET["graphid"]); $result=delete_graph($_GET["graphid"]); + if($result) + { + add_audit(AUDIT_ACTION_DELETE,AUDIT_RESOURCE_GRAPH,"Graph [".addslashes($graph["name"])."]"); + } show_messages($result, S_GRAPH_DELETED, S_CANNOT_DELETE_GRAPH); unset($_GET["graphid"]); } |
