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?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.3 extensions → Login function.
Is there a single function in the PunBB codebase that checks if a user is logged in?
Where can i find it?
use $pun_user['is_guest']
if ($pun_user['is_guest'])
{
here what a guest may do
}
else
{
here what a member may do
}
Isnt there
$pun_user['is_member']
$pun_user['is_administrator']
$pun_user['is_moderator']
etc? It is an array after all.
There is the $forum_user array in 1.3.
PunBB Forums → PunBB 1.3 extensions → Login function.
Powered by PunBB, supported by Informer Technologies, Inc.