Current time: 11-15-2024, 01:36 PM Hello There, Guest! (LoginRegister)


Post Reply 
Determine how user is logged in
Author Message
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #1
Determine how user is logged in
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?
03-07-2008 08:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #2
RE: Determine how user is logged in
have a look in $_SESSION
03-07-2008 08:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #3
RE: Determine how user is logged in
ahh... kk var_dump should help then... Thx.
03-07-2008 09:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #4
RE: Determine how user is logged in
$cfg['DEBUG'] = true; // see ispcp-lib.php
03-07-2008 10:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #5
RE: Determine how user is logged in
there is a lot more in there as one would expect... Great!
03-08-2008 05:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)