mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
Load infos and notices via ping and show them with js popup
This commit is contained in:
parent
14125ce67b
commit
abd65e00ab
22 changed files with 222 additions and 12 deletions
22
mod/ping.php
22
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue