Topic: Login function.

Is there a single function in the PunBB codebase that checks if a user is logged in?
Where can i find it?

Re: Login function.

use $pun_user['is_guest']

if ($pun_user['is_guest'])
{
  here what a guest may do
}
else
{
  here what a member may do
}

3 (edited by tomjacko 2009-10-23 07:56)

Re: Login function.

Isnt there
$pun_user['is_member']
$pun_user['is_administrator']
$pun_user['is_moderator']

etc? It is an array after all.  neutral

Re: Login function.

There is the $forum_user array in 1.3.