Login   Register  
PHP Classes
elePHPant
Icontem

File: login.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Johan De Klerk  >  jUser  >  login.php  >  Download  
File: login.php
Role: Example script
Content type: text/plain
Description: an example
Class: jUser
Manage and authenticate users
Author: By
Last change:
Date: 2003-06-29 12:43
Size: 320 bytes
 

Contents

Class file image Download
<?php

require('jUser.php');

$jA = new jUser();

$jA -> jCreateUser('username''password''accesslevel');

if (
$jA -> jAuthenticate('Any Realm')){
    
$id $jA -> jGetUserId();
    
    
$jA -> jChangeUser($id'johan1''password1''newaccesslevel');
        
    echo 
'hello, you are now logged in!';
}

?>