Trustmaster |
|
||||||
---|---|---|---|---|---|---|---|
What you need is just the current user object which is $usr / {PHP.usr} depending on whether you are in PHP or TPL. It has some commonly used properties which are set in system/common.php lines 322-336:
What you need to check to know whether the user is logged in or not is this:
There are actually more fields available for users than listed above. All fields present in `cot_users` table (including extrafields) are available via $usr['profile'] array. For example, here is how you can get the avatar image path:
May the Source be with you!
|