diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-23 07:34:27 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-23 07:34:27 +0000 |
| commit | 28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89 (patch) | |
| tree | 8281ccd48964ee0dd11c5ea689091fa3cef706fb /frontends/php/include/graphs.inc.php | |
| parent | 495799b2aa61aab23d74d7faa110a0cd09d59bf0 (diff) | |
| download | zabbix-28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89.tar.gz zabbix-28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89.tar.xz zabbix-28a09ed13e41ddbe5e30d63e92a1f5fb3395ef89.zip | |
- developed group permission system (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3371 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/graphs.inc.php')
| -rw-r--r-- | frontends/php/include/graphs.inc.php | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/frontends/php/include/graphs.inc.php b/frontends/php/include/graphs.inc.php index 32803367..20219ee9 100644 --- a/frontends/php/include/graphs.inc.php +++ b/frontends/php/include/graphs.inc.php @@ -99,18 +99,12 @@ function add_graph($name,$width,$height,$yaxistype,$yaxismin,$yaxismax,$showworkperiod,$showtriggers,$graphtype=GRAPH_TYPE_NORMAL,$templateid=0) { - if(!check_right("Graph","A",0)) - { - error("Insufficient permissions"); - return 0; - } - - $graphid=get_dbid("graphs","graphid"); + $graphid = get_dbid("graphs","graphid"); $result=DBexecute("insert into graphs". - " (graphid,name,width,height,yaxistype,yaxismin,yaxismax,templateid,show_work_period,show_triggers,graphtype,templateid)". + " (graphid,name,width,height,yaxistype,yaxismin,yaxismax,templateid,show_work_period,show_triggers,graphtype)". " values ($graphid,".zbx_dbstr($name).",$width,$height,$yaxistype,$yaxismin,". - " $yaxismax,$templateid,$showworkperiod,$showtriggers,$graphtype,$templateid)"); + " $yaxismax,$templateid,$showworkperiod,$showtriggers,$graphtype)"); if($result) { info("Graph '$name' added"); @@ -122,12 +116,6 @@ function update_graph($graphid,$name,$width,$height,$yaxistype,$yaxismin,$yaxismax,$showworkperiod,$showtriggers,$graphtype=GRAPH_TYPE_NORMAL,$templateid=0) { - if(!check_right("Graph","U",0)) - { - error("Insufficient permissions"); - return 0; - } - $g_graph = get_graph_by_graphid($graphid); $graphs = get_graphs_by_templateid($graphid); @@ -159,12 +147,6 @@ function delete_graph($graphid) { - if(!check_right("Graph","U",0)) - { - error("Insufficient permissions"); - return 0; - } - $graph = get_graph_by_graphid($graphid); $chd_graphs = get_graphs_by_templateid($graphid); @@ -184,10 +166,6 @@ if($result) { info("Graph '".$graph["name"]."' deleted"); - - // delete graph permisions - DBexecute('delete from rights where name=\'Graph\' and id='.$graphid); - } return $result; } @@ -652,7 +630,7 @@ if(isset($_REQUEST[$item])) $form->AddVar($item,$_REQUEST[$item]); - show_header2( + show_table_header( S_NAVIGATE, $form); |
