aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.php')
-rw-r--r--plugin.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugin.php b/plugin.php
new file mode 100644
index 0000000..036dbb5
--- /dev/null
+++ b/plugin.php
@@ -0,0 +1,16 @@
1<?php
2
3require_once 'conf/common.inc.php';
4require_once 'inc/html.inc.php';
5
6$host = $_GET['h'];
7$plugin = $_GET['p'];
8
9if ($_GET['a'] == 'del') {
10 printf("<h3><span class=\"point\" onclick=\"javascript:getP('%s','%s')\"><img src=\"%s/layout/plus.gif\" alt=\"[+]\"> %s</span></h3>\n", $host, $plugin, $CONFIG['weburl'], $plugin);
11} else {
12 printf("<h3><span class=\"point\" onclick=\"javascript:rmP('%s','%s')\"><img src=\"%s/layout/minus.gif\" alt=\"[-]\"> %s</span></h3>\n", $host, $plugin, $CONFIG['weburl'], $plugin);
13 graphs_from_plugin($host, $plugin);
14}
15
16?>