PHP Classes

File: examples/example2.php

Recommend this page to a friend!
  Classes of Giulio Bai   User Manager   examples/example2.php   Download  
File: examples/example2.php
Role: Example script
Content type: text/plain
Description: Example #2
Class: User Manager
Manage and authenticate registered users
Author: By
Last change: fixed
Date: 14 years ago
Size: 558 bytes
 

Contents

Class file image Download
<?php

include_once("../usermanager.php");

$UM = new UserManager;

// Change the username max length
$UM->USR_MAXCHARS = 50; // Default 30

// Change the HOMEPAGE to link by default (Default "/index.php")
$UM->HOMEPAGE = "http://example.org/index.php"; // may also be "../index.php"

// Change the redirection page to access after the login (Default "/index.php")
$UM->REDIR_PAGE = "http://example.org/myredirection.php";

// Change the links to LOGIN|REGISTER|FORGOT PASSWORD
$UM->LOGIN|REGISTER|FORGOTPW = "a_page_on_your_site.php";

?>