summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorSimon2011-03-18 11:26:43 +0100
committerSimon2011-03-18 11:26:43 +0100
commit75965675618c0d59ff97ed6cc8a1286d69ba1b8d (patch)
tree94f473ce23b776993926dbd99af692de651d7963 /library
parentDatenbank update, PoolController (diff)
downloadpbs2-75965675618c0d59ff97ed6cc8a1286d69ba1b8d.tar.gz
pbs2-75965675618c0d59ff97ed6cc8a1286d69ba1b8d.tar.xz
pbs2-75965675618c0d59ff97ed6cc8a1286d69ba1b8d.zip
PoolController fertig
Diffstat (limited to 'library')
-rw-r--r--library/Pbs/Notifier.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/library/Pbs/Notifier.php b/library/Pbs/Notifier.php
index 256aea4..23fec57 100644
--- a/library/Pbs/Notifier.php
+++ b/library/Pbs/Notifier.php
@@ -45,6 +45,32 @@ class Pbs_Notifier{
break;
}
break;
+ case "link":
+ switch($result){
+ case "forbidden":
+ $result = "<div class='errorbox'>Not allowed to link this</div>";
+ break;
+ case "ok":
+ $result = "<div class='okbox'>Link sucessful</div>";
+ break;
+ case "error":
+ $result = "<div class='warningbox'>Link failed</div>";
+ break;
+ }
+ break;
+ case "unlink":
+ switch($result){
+ case "forbidden":
+ $result = "<div class='errorbox'>Not allowed to unlink this</div>";
+ break;
+ case "ok":
+ $result = "<div class='okbox'>Unlink sucessful</div>";
+ break;
+ case "error":
+ $result = "<div class='warningbox'>Unlink failed</div>";
+ break;
+ }
+ break;
}
return $result;