summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/config.inc
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/config.inc')
-rw-r--r--frontends/php/include/config.inc40
1 files changed, 40 insertions, 0 deletions
diff --git a/frontends/php/include/config.inc b/frontends/php/include/config.inc
index ad78f306..de060a55 100644
--- a/frontends/php/include/config.inc
+++ b/frontends/php/include/config.inc
@@ -446,6 +446,22 @@
?>
</font>
</td>
+ <td colspan=1 bgcolor=FFFFFF align=center valign="top" width="15%">
+ <font face="Arial,Helvetica" size=2>
+ <a href="graphs.html">
+<?
+ if( ($page["file"]=="graphs.html")||
+ ($page["file"]=="<change>.html"))
+ {
+ echo "<b>[GRAPHS]</b></a>";
+ }
+ else
+ {
+ echo "GRAPHS</a>";
+ }
+?>
+ </font>
+ </td>
</tr>
</table>
</td>
@@ -675,6 +691,14 @@
$result=DBexecute($sql);
}
+ # Delete Graph
+
+ function delete_graph($graphid)
+ {
+ $sql="delete from graphs where graphid=$graphid";
+ $result=DBexecute($sql);
+ }
+
# Delete System Map
function delete_sysmap( $sysmapid )
@@ -875,6 +899,14 @@
}
}
+ # Update Graph
+
+ function update_graph($graphid,$name,$width,$height)
+ {
+ $sql="update graphs set name='$name',width=$width,height=$height where graphid=$graphid";
+ $result=DBexecute($sql);
+ }
+
# Update System Map
function update_sysmap($sysmapid,$name,$width,$height)
@@ -883,6 +915,14 @@
$result=DBexecute($sql);
}
+ # Add Graph
+
+ function add_graph($name,$width,$height)
+ {
+ $sql="insert into graphs (name,width,height) values ('$name',$width,$height)";
+ $result=DBexecute($sql);
+ }
+
# Add System Map
function add_sysmap($name,$width,$height)