
|
[dokuwiki]
||
[Date Prev]
[12-2006 Date Index]
[Date Next]
||
[Thread Prev]
[12-2006 Thread Index]
[Thread Next]
[dokuwiki] [patch] add some helpful user/group information to ?do=check
- From: Mike Frysinger <vapier@xxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Mon, 4 Dec 2006 20:15:36 -0500
this simple patch adds user/group output when viewing a page
with ?do=check ... i find it pretty useful when doing dokuwiki
updates/installs to make sure my database settings are all OK
-mike
--- old-dokuwiki/inc/infoutils.php 2006-12-02 15:24:48.000000000 -0500
+++ new-dokuwiki/inc/infoutils.php 2006-12-02 15:24:48.000000000 -0500
@@ -164,6 +164,16 @@
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'])){
|

|