Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check Which User Is Logged In
#1
I am so close to finishing my multi-user plugin.
Right now it can create, edit, and add new users. I also have the permissions system figured out besides one peice..

I need the plugin to check which user is logged in. $USR will not work.

Anyone have any ideas?
Reply
#2
get_cookie('GS_ADMIN_USERNAME') should do it
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#3
wow.. that was easy, I spent the last 3 hours trying to figure out a way to do that Big Grin

Well I will finish this up now and release it later tonight or tomorrow.

The permissions system will give the ability to block or grant (for each individual user) access to 'create new page', 'settings', 'plugins', 'backups', 'files', etc.
Reply
#4
Quote:get_cookie('GS_ADMIN_USERNAME')

AWESOME! This is exactly what I needed for the newsfeed plugin Smile
Reply




Users browsing this thread: 1 Guest(s)