diff options
| author | Simon | 2011-03-18 11:26:43 +0100 |
|---|---|---|
| committer | Simon | 2011-03-18 11:26:43 +0100 |
| commit | 75965675618c0d59ff97ed6cc8a1286d69ba1b8d (patch) | |
| tree | 94f473ce23b776993926dbd99af692de651d7963 /library/Pbs/Notifier.php | |
| parent | Datenbank update, PoolController (diff) | |
| download | pbs2-75965675618c0d59ff97ed6cc8a1286d69ba1b8d.tar.gz pbs2-75965675618c0d59ff97ed6cc8a1286d69ba1b8d.tar.xz pbs2-75965675618c0d59ff97ed6cc8a1286d69ba1b8d.zip | |
PoolController fertig
Diffstat (limited to 'library/Pbs/Notifier.php')
| -rw-r--r-- | library/Pbs/Notifier.php | 26 |
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; |
