PHP Classes

File: login.php

Recommend this page to a friend!
  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: 20 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!';
}

?>