mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +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
6
boot.php
6
boot.php
|
@ -721,14 +721,16 @@ function remote_user() {
|
|||
if(! function_exists('notice')) {
|
||||
function notice($s) {
|
||||
$a = get_app();
|
||||
if(! x($_SESSION,'sysmsg')) $_SESSION['sysmsg'] = array();
|
||||
if($a->interactive)
|
||||
$_SESSION['sysmsg'] .= $s;
|
||||
$_SESSION['sysmsg'][] = $s;
|
||||
}}
|
||||
if(! function_exists('info')) {
|
||||
function info($s) {
|
||||
$a = get_app();
|
||||
if(! x($_SESSION,'sysmsg_info')) $_SESSION['sysmsg_info'] = array();
|
||||
if($a->interactive)
|
||||
$_SESSION['sysmsg_info'] .= $s;
|
||||
$_SESSION['sysmsg_info'][] = $s;
|
||||
}}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue