From d3bae4781025502fdfb729854e39f8b2072b8a37 Mon Sep 17 00:00:00 2001 From: Christopher Smith Date: Mon, 1 Apr 2013 16:55:40 +0100 Subject: add capability to restrict recipients of dokuwiki 'msg' alerts. This is useful where message is added to the queue before authentication is initialized --- inc/html.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index 59415f7da..09d1387bd 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1297,9 +1297,11 @@ function html_msgarea(){ foreach($MSG as $msg){ $hash = md5($msg['msg']); if(isset($shown[$hash])) continue; // skip double messages - print '
'; - print $msg['msg']; - print '
'; + if(info_msg_canshow($msg)){ + print '
'; + print $msg['msg']; + print '
'; + } $shown[$hash] = 1; } -- cgit v1.2.3 From f755f9abc6fe099a6bee2bdd4acda44baca5ea7a Mon Sep 17 00:00:00 2001 From: Christopher Smith Date: Sun, 7 Apr 2013 19:40:27 +0100 Subject: change nomenclature from 'show' to 'allow' (fn from canshow to allowed) --- inc/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index 09d1387bd..fb39fcb3c 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1297,7 +1297,7 @@ function html_msgarea(){ foreach($MSG as $msg){ $hash = md5($msg['msg']); if(isset($shown[$hash])) continue; // skip double messages - if(info_msg_canshow($msg)){ + if(info_msg_allowed($msg)){ print '
'; print $msg['msg']; print '
'; -- cgit v1.2.3 From a154806fb54c04841a42641bf5d66716d89c1554 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 25 Apr 2013 16:43:54 +0200 Subject: authad: capabilities depend on userdomain specific config --- inc/html.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index fb39fcb3c..3bef75eab 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1352,6 +1352,8 @@ function html_updateprofile(){ /** @var auth_basic $auth */ global $auth; + var_dump($auth); + print p_locale_xhtml('updateprofile'); $fullname = $INPUT->post->str('fullname', $INFO['userinfo']['name'], true); -- cgit v1.2.3 From c366e16a83b0dcd4ad853358daf8cf6ecd8b3cd6 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 25 Apr 2013 17:03:19 +0200 Subject: removed debug statement thanks @Klap-in --- inc/html.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index 3bef75eab..fb39fcb3c 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1352,8 +1352,6 @@ function html_updateprofile(){ /** @var auth_basic $auth */ global $auth; - var_dump($auth); - print p_locale_xhtml('updateprofile'); $fullname = $INPUT->post->str('fullname', $INFO['userinfo']['name'], true); -- cgit v1.2.3