Copyright (c) 2007 Tune Your Web
Please see readme.txt file for details
Tuney Login Manager v1.0


################
What is Included
################

1. After installation, the script will allow users to register and log into their account, request a password reminder, and once logged in change their password and their name.

2. No general formatting CSS is included with this script. This means that the standard installation does look a little bland. This was intentional. There is nothing worst than having to merge script style sheets with your own style sheets.

3. The CSS which is included is for displaying your forms nice and formatted without having to use tables.  If you have your own layout for forms, you can safely remove the supplied ones, but be aware that although the forms installed by default will still work, they will look a bit strange until you reformat them.


How to use the script
=====================
The default installation has a menu and header file which are included on each page.  This is because we needed to give you a basic working copy of the script.



INCLUDING THE IMPORTANT FILES
=============================
You need to include the following PHP code at the top of each page you want to protect:

	<?
		$page="Main Page";
		include("config.php");
		include("isloggedin.php");
	?>

In our working default install, the above files are included in the header.php file.



SORTING THE BROWSER TITLE
=========================

In the <title></title> tags in your <head> section, replace with the following:

	<title><? echo "$mytitlebar"; echo " | $page"; ?></title>



HANDLING YOUR PAGE
==================

The structure of the contents is nice and straight forward.  Just add the following an put your code in the relevant sections:

<?
	if($isloggedin==false){
		NOT LOGGED IN CODE OR MESSAGE
	elseif($isloogedin==true){
		YOUR PROTECT PAGE CONTENTS
}
?>



GETTING USER INFORMATION
========================

The following variables are available for you to use if required.

$name	-	Logged in user name
$email	-	user email address
$uid	-	The database user ID

This gives you the flexibility of either having static pages for all users or specific user pages.

For example, you can have a thank you for logging in page which is shown to all users.  Or you could have a page which shows a users account details picked up from your own developed system simply by linking the $uid to your other database tables.




#########
Copyright
#########
All rights reserved by Tune Your Web (http://tuneyourweb.com). 
Please read the licence.txt file for conditions of use.