$x= new phpbb('patch/to/phpbb/');
|
$x= new punbb('patch/to/punbb/'); | |
Returns true if you are logged in, false if not | $x->check_login();
|
$x->check_login();
|
Logouts current user |
$x->logout();
|
$x->logout();
|
Login user based on suplied password and login | $x->login($login, $pass); on success returns an array of loggedin user | $x->login($login, $pass); |
Registers a new active account | $x->register($login, $pass, $email); You may pass optional 4th argument - 0 to make the account inactive (but the activation mail won't be send) | $x->register($login, $pass, $email); |
Returns True if current user is admin/user, False if not. | $x->is_admin(); | $x->is_admin(); |