Login   Register  
PHP Classes
elePHPant
Icontem

File: class_loginphpBB_example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 10 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)>0print_r($login->aErrors);
else{
 echo 
'id for user ['.$login->verify($login,$pass).']';
}
?>