<?PHP 
// remove this when you set the path to phpBB 
die('edit me first!'); 
 
include 'phpbb.php'; 
$x = new phpbb('../phpBB2/'); 
IF($x->check_login()) 
    { 
    echo 'You are logged in<BR>'; 
    } 
else 
    { 
    echo 'You are NOT logged in<BR>'; 
    } 
 
IF($x->is_admin()) 
    { 
    echo 'You are an admin<BR>'; 
    } 
else 
    { 
    echo 'You are not an admin<BR>'; 
    } 
 
$x->register('foobar', 'foobar', '[email protected]'); 
echo '<BR>Created a user account. Login: foobar, password: foobar';
 
 |