diff options
author | Pim van den Berg | 2009-12-28 10:59:29 +0100 |
---|---|---|
committer | Pim van den Berg | 2009-12-28 10:59:29 +0100 |
commit | 0808310391b8ecb5b8cdee3c922ffccc076c8daa (patch) | |
tree | a704d189bddd04ce2aee978134a6b95ae1bf74db /plugin.php | |
parent | load plugins on the host page via ajax (diff) | |
download | apt-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 '')
-rw-r--r-- | plugin.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,9 +7,9 @@ $host = $_GET['h']; | |||
7 | $plugin = $_GET['p']; | 7 | $plugin = $_GET['p']; |
8 | 8 | ||
9 | if ($_GET['a'] == 'del') { | 9 | if ($_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 | ||