ispCP - Board - Support
Determine how user is logged in - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: Determine how user is logged in (/thread-2658.html)



Determine how user is logged in - rbtux - 03-07-2008 08:04 PM

Hi guys

Can somebody tell me how I can determine in the ispcp code how a user was logged in?

I want to make some menuentries only available when the user is logged in via administrator / reseller.

Is there a variable or object available providing this information?


RE: Determine how user is logged in - RatS - 03-07-2008 08:39 PM

have a look in $_SESSION


RE: Determine how user is logged in - rbtux - 03-07-2008 09:37 PM

ahh... kk var_dump should help then... Thx.


RE: Determine how user is logged in - RatS - 03-07-2008 10:04 PM

$cfg['DEBUG'] = true; // see ispcp-lib.php


RE: Determine how user is logged in - rbtux - 03-08-2008 05:51 AM

there is a lot more in there as one would expect... Great!