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?
Unfortunately no one can be told what PunBB is - you have to see it for yourself.
You are not logged in. Please login or register.
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. ![]()
Last edited by tomjacko (2009-10-23 07:56:44)
There is the $forum_user array in 1.3.
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.