Location: PHPKode > scripts > User Manager > user-manager/examples/example1.php
<?php

include_once(usermanager.php);

UM = new UserManager();

// The URL of the page should be something like
// http://example.org/switcher.php?action=LOGIN|REGISTER|FORGOT|INFO
switch ($_GET['action'])
{
    case LOGIN:
        UM->display_login();
        break;
    case REGISTER:
        UM->display_register();
        break;
    case FORGOT:
        UM->display_forgot();
        break;
    case INFO:
        UM->display_user();
        break;
    default:
        // Redirects to the home page set in the class
        header("Location: $this->HOMEPAGE"); 
        break;
}
Return current item: User Manager