aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin.php
diff options
context:
space:
mode:
authorPim van den Berg2009-12-28 10:59:29 +0100
committerPim van den Berg2009-12-28 10:59:29 +0100
commit0808310391b8ecb5b8cdee3c922ffccc076c8daa (patch)
treea704d189bddd04ce2aee978134a6b95ae1bf74db /plugin.php
parentload plugins on the host page via ajax (diff)
downloadapt-panopticon_cgp-0808310391b8ecb5b8cdee3c922ffccc076c8daa.zip
apt-panopticon_cgp-0808310391b8ecb5b8cdee3c922ffccc076c8daa.tar.gz
apt-panopticon_cgp-0808310391b8ecb5b8cdee3c922ffccc076c8daa.tar.bz2
apt-panopticon_cgp-0808310391b8ecb5b8cdee3c922ffccc076c8daa.tar.xz
replace duplicate code by function plugin_header
Diffstat (limited to 'plugin.php')
-rw-r--r--plugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin.php b/plugin.php
index 036dbb5..054c559 100644
--- a/plugin.php
+++ b/plugin.php
@@ -7,9 +7,9 @@ $host = $_GET['h'];
7$plugin = $_GET['p']; 7$plugin = $_GET['p'];
8 8
9if ($_GET['a'] == 'del') { 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); 10 plugin_header($host, $plugin, 1);
11} else { 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); 12 plugin_header($host, $plugin, 0);
13 graphs_from_plugin($host, $plugin); 13 graphs_from_plugin($host, $plugin);
14} 14}
15 15