From 1a076098050969d217f7abe8ec2102719fcba21d Mon Sep 17 00:00:00 2001
From: Pim van den Berg
Date: Sat, 5 Dec 2009 20:23:25 +0100
Subject: load plugins on the host page via ajax
---
host.php | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
(limited to 'host.php')
diff --git a/host.php b/host.php
index 3bf3698..17cb499 100644
--- a/host.php
+++ b/host.php
@@ -21,21 +21,24 @@ if(!$plugins) {
# first the ones defined in overview
foreach($CONFIG['overview'] as $plugin) {
if (in_array($plugin, $plugins)) {
- printf("
%s
\n", $CONFIG['weburl'], $plugin);
+ printf(''."\n", $plugin);
+ printf("
%s
\n", $host, $plugin, $CONFIG['weburl'], $plugin);
graphs_from_plugin($host, $plugin);
+ print "
\n";
}
}
# other plugins
foreach($plugins as $plugin) {
if (!in_array($plugin, $CONFIG['overview'])) {
- $url = sprintf('%s'."\n", $CONFIG['weburl'], $host, $plugin, $plugin);
+ printf(''."\n", $plugin);
if ($splugin == $plugin) {
- printf("
%s
\n", $CONFIG['weburl'], $url);
+ printf("
%s
\n", $host, $plugin, $CONFIG['weburl'], $plugin);
graphs_from_plugin($host, $plugin);
} else {
- printf("
%s
\n", $CONFIG['weburl'], $url);
+ printf("
%s
\n", $host, $plugin, $CONFIG['weburl'], $plugin);
}
+ print "
\n";
}
}
--
cgit v1.1