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: 11 years ago
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!';
}

?>