Installation Guide

Please read through this guide carefully, if you experience any issues please contact us via our ThemeForest profile, we'll try and get back to you the very same day (GMT).

Requirements

Step 1

Check the downloaded package.

Here at Jigowatt, we all use a selection of Macintosh computers and laptops, this script was developed and packaged using one, occasionally Windows doesn't like this so please check a selection of the files to make sure they've got to you in one piece. If not, please find out what to do here.

Backup Backup Backup! Keep a fresh copy of the files somewhere safe before you edit them.

Step 2

Create your MySQL Database, you will need the server address (usually localhost) the database name, database user and password.

File: login.sql - aprox line 60

Replace 'admin' and '21232f297a57a5a743894a0e4a801fc3' with your prefered login details. The password is in MD5 format, do NOT enter a plain-text password, it will not work.
If you need to encrypt your password please click here

Save and insert login.sql into your Database via your prefered editors (phpMyAdmin etc.) SQL insertion interface. INSERT INTO `login_users` (`user_id`, `username`, `password`) VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3');

File: functions/dbconn.php - aprox line 2

Replace these details with those of your database and save. $db = dbconn('localhost','database_name','database_user','database_pass');File: functions/config.php - aprox line 7

Replace the example URL with your website details. define("SITE_PATH", "http://www.jigowatt.co.uk/themeforest/login/");

Step 3

On completion of Steps 1 & 2 you need to now upload the following files / folders to your root directory.

Take Note: If you are aware of any file conflicts do not upload those files, for example, if you already have a stylesheet.css file in the root directory you need to merge them together, removing or merging any conflicting tags such as 'body'.

admin/
ajax.php
assets/
check.php
disabled.php
footer.php
functions/
home.php
login.php
login.inc.php
logout.php
sign_up.php
stylesheet.css
user_level.php

Step 4

File: your_file.php (A test file is recommended)
Integration with previous pages of your website is extremely quick and simple! Just place the following code at the top of each PHP page you wish to protect (make sure it's inside PHP open ( < ? ) and close ( ? > ) tags).

include('check.php');
check_login(2);

Important Guidelines

The number inside the brackets is the desired user level a user must have to view the page.

i.e. In the standard installation

Administrator is user level 1
Special user is level 2
Standard user is level 3

With the above inserted into the top of a page, the Admin and Special users would be able to view the page, whereas if you insert the following only an Administrator would be able to view the page, it's easy to see how this could benefit your website. Again, make sure it's inside PHP open ( < ? ) and close ( ? > ) tags.include('check.php');
check_login(1);
Note: You have the ability to change and manage User Levels in the Administration panel, read below for instructions on how to do so.

Step 5

File: header.php - line N/A (your existing header)

Your welcome to use our header.php file if you haven't got one of your own in which case, upload the included file. We understand however that the majority of customers will already have their own header. Below are elements which you must include in your existing header.php file for the login script to function correctly.

Beginning of your header (before ANY other code)<? session_start(); ?>
Within your existing <head > tags include the login stylesheet (you may not need to do this if you have merged an existing stylesheet)<link rel="stylesheet" href="/themeforest/login/stylesheet.css" />

Step 6 (Optional)

File: your_header.php - line N/A

In our Online Demo you will notice that in the header there is a dynamic link to either Login or Logout(User) you may wish to include a similar link in your existing website.

Important: For this to function you must have started the session (see Step 5) on the page you include this code on. If you are including this in the header you've just edited ignore this message, you have already started the session.< ? // Remove space.

// If the user is logged in, display the logout link.
if(session_is_registered('username')) {
echo "<div id='logout'><a href='logout.php'>Logout (".$_SESSION['username'].")</a></div>";
} else {
echo "<div id='login'><a href='login.php'>Login</a></div>";
}

?>

Feel free to modify accordingly to suit your website.

Step 7 - Finished!

Save and upload changed files to your server. You must upload them in the file structure provided, any questions or for support please contact chris.balchin@jigowatt.co.uk.

To login to your Control Panel please visit http://www.yourdomain.com/admin and login using the details your inserted into the SQL earlier.

Please don't post support issues on the scripts comments page it will take us longer to reply to you, we use e-mail for time and support management.

Quick Note on User Levels

From within the Control Panel (admin directory) in your browser you can Add/Edit or DisableUser Levels to suit your website, please login to your Control Panel using the details you inserted into the database earlier and familiarise yourself with how it functions.
3 standard levels will already appear in the Manage Level panel you won't be able to edit the Admin level from within the Control Panel for obvious reasons (this is not an error). Note: Please choose User Levels carefully, once Users have been assigned to the level you cannot Delete the Level, this is to avoid dormant users.