GetSimple Support Forum
Check Which User Is Logged In - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8)
+--- Thread: Check Which User Is Logged In (/showthread.php?tid=1545)



Check Which User Is Logged In - mikeh - 2011-04-09

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?


Check Which User Is Logged In - ccagle8 - 2011-04-09

get_cookie('GS_ADMIN_USERNAME') should do it


Check Which User Is Logged In - mikeh - 2011-04-09

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.


Check Which User Is Logged In - polyfragmented - 2011-04-09

Quote:get_cookie('GS_ADMIN_USERNAME')

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