---------------------------
linlout (Login Logout) v1.2 - Copyright (C) Davide Gironi, 2002
---------------------------

a simple Login / Logout php script that helps webmasters in
implementing secure login and password protection.


Features
--------

.login verification
.page protection
.automatic creation of user account (by mailback confirm)
.automatic password changing
.automatic account deletion
.password reminder (by mailback confirm)
.multiple level security
.language files
.administration pannel


Licence
-------

/**********************************************************************
* linlout (Login Logout)                                              *
* Copyright (C) Davide Gironi, 2002                                   *
* davide.gironi@libero.it                                             *
* http://hozone.cjb.net                                               *
*                                                                     *
* This library is free software; you can redistribute it and/or       *
* modify it under the terms of the GNU Lesser General Public          *
* License as published by the Free Software Foundation.               *
*                                                                     *
* This library is distributed in the hope that it will be useful,     *
* but WITHOUT ANY WARRANTY; without even the implied warranty of      *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU   *
* Lesser General Public License for more details.                     *
*                                                                     *
* You should have received a copy of the GNU Lesser General Public    *
* License along with this library; if not, write to the               *
* Free Software Foundation, Inc.,                                     *
* 59 Temple Place, Suite 330,                                         *
* Boston, MA                                                          *
* 02111-1307                                                          *
* USA                                                                 *
*                                                                     *
* For further information, visit www.gnu.org                          *
**********************************************************************/  


Requirement
-----------
1. Apache
2. Php
3. MySQL


Installation
------------

1. unzip
   
   this files/directories are NECESSARY to linlout to work
   ./login.php
   ./logout.php
   ./linlout.lib/

   this are samples files (you can even replace it with your web page files)
   ./index.php
   ./home.php
   ./menu.php
   ./settings.conf
   ./style.css
   
2. create a mySQL database

3. configure ./linlout.lib/linlout.conf
   instructions are in linlout.conf
  
4. run ./linlout.lib/admin/createtables.php from your browser 

   your first admin login will be:
   username : $LINLOUT_WEBMASTER_NAME  (from linlout.conf)
   password : admin
   email    : $LINLOUT_WEBMASTER_EMAIL (from linlout.conf)

5. put this code in any page you want to protect whit password
 	
   require "./linlout.lib/include.inc"; //linlout include.inc path
   $userID=getUser();
   if ($userID) {
     // put here the html code of the authorized area
   } else {
      print $linlout_lang[msg_loginregister2];
   }


Manual
------

for multiple level security
set according to the level security you want
i.e.  - status=99 -> admin
      - status=0  -> not active
      - status=1  -> normal user
      - status=2  -> super user
samples file are:
 - menu.php, if the status is 99 then the link to admin control pannel compare
 - all the files in ./linlout.lib/admin, they are browseable only by admin (only if
   your status is = 99)


Support
-------
The newest version of linlout can be downloaded from my home page:
http://hozone.cjb.net
Send me comments, suggestions and bugs to davide.gironi@libero.it