Location: PHPKode > scripts > Free PHP User Registration Login System > free-php-user-registration-login-system/ReadMe.txt
This script was downloaded at:
LightPHPScripts.com
Please support us by visiting
out website and letting people
know of it.
Produced under: LGPL

NOTE: Script assumes you have an existing userbase database. If not, please use the table
scheme provided in database.sql.

Step 1
------
Open config.php, fill it with the correct information

Step 2
------
Place the registration file where you want it to appear as:

<?php include('register.php'); ?>

Step 3
------
Place login.php in the page where you want the login box to appear as:

<?php include('login.php'); ?>


Step 4
------
To log out a user, redirect them to logoff.php as:

http://example.com/logoff.php

Step 5
------
To protect any pages, place this code on top most of the page:

<?php

session_start();

if($_SESSION['isLoged'] != 'yes' || $_SESSION['userName'] == NULL)
{
    header("Location: login.php");exit();
}
?>

Step 6
------
To protect any directory, place the above code in a file called index.php and
place that file in the directory.
Return current item: Free PHP User Registration Login System