diff options
author | Andreas Gohr <andi@splitbrain.org> | 2005-10-22 12:07:40 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2005-10-22 12:07:40 +0200 |
commit | 17ee7f669c94439a8c4526e5aba6c021922a9868 (patch) | |
tree | db7e8620313bac8256bbe906e31d91efd5d084e6 | |
parent | 64a165d896cb15adee024054c19db22f4e842044 (diff) | |
download | rpg-17ee7f669c94439a8c4526e5aba6c021922a9868.tar.gz rpg-17ee7f669c94439a8c4526e5aba6c021922a9868.tar.bz2 |
use REMOTE_USER for username if nothing else available #587
darcs-hash:20051022100740-7ad00-29869f9ced046d42d4f0a2fc484d37b85801108f.gz
-rw-r--r-- | inc/common.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php index e08858665..e5ab385ca 100644 --- a/inc/common.php +++ b/inc/common.php @@ -36,6 +36,11 @@ function pageinfo(){ $info['userinfo'] = $USERINFO; $info['perm'] = auth_quickaclcheck($ID); $info['subscribed'] = is_subscribed($ID,$_SERVER['REMOTE_USER']); + + // if some outside auth were used only REMOTE_USER is set + if(!$info['userinfo']['name']){ + $info['userinfo']['name'] = $_SERVER['REMOTE_USER']; + } }else{ $info['perm'] = auth_aclcheck($ID,'',null); $info['subscribed'] = false; |