PHP Classes

File: class_loginphpBB_example.php

Recommend this page to a friend!
  Classes of MARY Matthieu   phpBB login   class_loginphpBB_example.php   Download  
File: class_loginphpBB_example.php
Role: Example script
Content type: text/plain
Description: a basic test for using this class
Class: phpBB login
Authenticate users registered in a phpBB database
Author: By
Last change:
Date: 20 years ago
Size: 318 bytes
 

Contents

Class file image Download
<?php
require_once 'class_login.php';
$login = 'your_login_to_check';
$pass = 'your_pass_for_your_login';

$login = new login('./forum/config.php','./forum/includes/constants.php');
if (
count($login->aErrors)>0) print_r($login->aErrors);
else{
 echo
'id for user ['.$login->verify($login,$pass).']';
}
?>