aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-09-05 14:01:21 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-09-05 14:01:21 +0200
commitabd65e00aba5a2581665a689e01fe9330046f001 (patch)
tree67c27d54db34b09cef3667d85198f9a88dda77ba /mod
parent14125ce67bb27b024d082738c8065e1bc7f2d377 (diff)
downloadvolse-hubzilla-abd65e00aba5a2581665a689e01fe9330046f001.tar.gz
volse-hubzilla-abd65e00aba5a2581665a689e01fe9330046f001.tar.bz2
volse-hubzilla-abd65e00aba5a2581665a689e01fe9330046f001.zip
Load infos and notices via ping and show them with js popup
Diffstat (limited to 'mod')
-rw-r--r--mod/ping.php22
1 files changed, 20 insertions, 2 deletions
diff --git a/mod/ping.php b/mod/ping.php
index 8a3d284af..38a32744d 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -159,8 +159,26 @@ function ping_init(&$a) {
}
- echo " </notif>
- </result>
+ echo " </notif>";
+
+ echo " <sysmsgs>";
+ if(x($_SESSION,'sysmsg')){
+ foreach ($_SESSION['sysmsg'] as $m){
+ echo "<notice>".($m)."</notice>";
+ }
+ $_SESSION['sysmsg']=array();
+ unset($_SESSION['sysmsg']);
+ }
+ if(x($_SESSION,'sysmsg_info')){
+ foreach ($_SESSION['sysmsg_info'] as $m){
+ echo "<info>".($m)."</info>";
+ }
+ $_SESSION['sysmsg_info']=array();
+ unset($_SESSION['sysmsg_info']);
+ }
+
+ echo " </sysmsgs>";
+ echo"</result>
";
killme();