summaryrefslogtreecommitdiffstats
path: root/library/Pbs
diff options
context:
space:
mode:
authormichael pereira2011-04-04 17:11:58 +0200
committermichael pereira2011-04-04 17:11:58 +0200
commit02716f178d25f4490f6f74140045d817c73fcc71 (patch)
tree518d783a1c0dd48cb5f8b0187ee06094007113f4 /library/Pbs
parentConfig in User fertig mit pagination (diff)
downloadpbs2-02716f178d25f4490f6f74140045d817c73fcc71.tar.gz
pbs2-02716f178d25f4490f6f74140045d817c73fcc71.tar.xz
pbs2-02716f178d25f4490f6f74140045d817c73fcc71.zip
getRessoources bei Play werden angezeigt
Diffstat (limited to 'library/Pbs')
-rw-r--r--library/Pbs/Notifier.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/library/Pbs/Notifier.php b/library/Pbs/Notifier.php
index 843b804..2d86748 100644
--- a/library/Pbs/Notifier.php
+++ b/library/Pbs/Notifier.php
@@ -123,8 +123,20 @@ class Pbs_Notifier{
break;
case "json":
switch($result){
- default:
- $result = "<div class='okbox'>$result</div>";
+ default:{
+ $result = unserialize($result);
+
+ $result2 = "<div class='infobox'>";
+ $result2 .= "<table class='json'>";
+ $result2 .= "<tr><td><b>info</b>: </td><td>".$result['info']."</td></tr>";
+ $result2 .= "<tr><td><b>kernel</b>: </td><td><a href=".$result['kernel'].">".$result['kernel']."<a></td></tr>";
+ $result2 .= "<tr><td><b>initramfs</b>: </td><td><a href=".$result['initramfs'].">".$result['initramfs']."<a></td></tr>";
+ $result2 .= "<tr><td><b>kcl</b>: </td><td><a href=".$result['kcl'].">".$result['kcl']."<a></td></tr>";
+ $result2 .= "<tr><td><b>config</b>: </td><td>".$result['config']."</td></tr>";
+ $result2 .= "</table>";
+ $result2 .= "</div>";
+ $result = $result2;
+ }
break;
case "forbidden":
$result = "<div class='errorbox'>Not allowed to display ressources</div>";