PHP Classes

File: example_phpbb.php

Recommend this page to a friend!
  Classes of Piotr Malinski   Forums Integrator   example_phpbb.php   Download  
File: example_phpbb.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Forums Integrator
Integrate with punBB and phpBB forum user systems
Author: By
Last change:
Date: 17 years ago
Size: 447 bytes
 

Contents

Class file image Download
<?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', 'a2@1a.pl');
echo
'<BR>Created a user account. Login: foobar, password: foobar';