Quote
userLoggedIn()
// returns an array of user details if logged in else returns false
// array components returned are self-explanatory
// returns an array of user details if logged in else returns false
// array components returned are self-explanatory
The function userLoggedIn() queries the etomite_manager_users table. It returns id, username and password (encrypted) for the current user if logged in, FALSE if current user not logged in.
Example Usage
// assumes user is logged in $details=$etomite->userLoggedIn(); // get details $username = $details['username']; $userid = $details['id']; // output details $output.='<h3>Your Screen Details</h3>'; $output.='Your username: '.$details['username'].'<br />'; $output.='Your user id: '.$details['id'].'<br />'; return $output;
I believe that the id returned here is always the same as the Internal Key in the etomite_user_attributes table. I have used this function to lookup the current users details in the attributes table using the getIntTableRows function.
Paul.
PS This is not official documentation and may not be accurate. It is accurate to the best of my knowledge at time of writing.











