diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-12-05 21:17:53 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-12-05 21:17:53 +0100 |
commit | 3d3c095d598070a3ccf1399c4c460bb1243e68dd (patch) | |
tree | 9af762c01d0f57b06fa52e1904be46a76058eff0 /inc | |
parent | 2ab3459f394e5bab42c8409e7b567f805dd5fcde (diff) | |
download | rpg-3d3c095d598070a3ccf1399c4c460bb1243e68dd.tar.gz rpg-3d3c095d598070a3ccf1399c4c460bb1243e68dd.tar.bz2 |
add some helpful user/group information to ?do
this simple patch adds user/group output when viewing a page
with ?do
darcs-hash:20061205201753-5224c-600980b0649b4cc927be5f46516f73aff3a6e7ed.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/infoutils.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index a6d0c269e..ab6e3fdc3 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -164,6 +164,16 @@ function check(){ msg('Debugging support is disabled',1); } + if($INFO['userinfo']['name']){ + global $auth; + msg('You are currently logged in as '.$_SESSION[DOKU_COOKIE]['auth']['user'].' ('.$INFO['userinfo']['name'].')',0); + + $info = $auth->getUserData($_SESSION[DOKU_COOKIE]['auth']['user']); + msg('You are part of the groups '.implode($info['grps'],', '),0); + }else{ + msg('You are currently not logged in',0); + } + msg('Your current permission for this page is '.$INFO['perm'],0); if(is_writable($INFO['filepath'])){ |