Welcome to Geeklog Saturday, May 18 2013 @ 08:02 PM EDT
|
||||||||
![]() |
Forum Index > Extensions > Cool Hacks |
New Topic
|
Post Reply
|
get username |
|||
| Anonymous: mick |
|
||||||
|
|
Hi to all,
I want to integrate quickly a simply application that require authentication. In this application the login user/password it's based on file check. I want to pass the the geeklog autohentication automatically but I where I take this information. Thank's in advance Mick |
||||||
|
|||||||
| Dirk |
|
||||||
![]() ![]() ![]() ![]() ![]() Admin ![]() Status: offline ![]() Registered: 01/12/02 Posts: 13027 |
Use the global $_USER array:
PHP Formatted Code if (empty ($_USER['uid']) || ($_USER['uid'] == 1)) {// anonymous user } else { echo "Current user is " . $_USER['username']; } bye, Dirk |
||||||
|
|||||||
| Content generated in: 0.75 seconds |
|
|
|