Installation Guide Last updated December 25th, 2011

Please read through this guide carefully when setting up the script for the first time.

If you experience any issues please contact us via our CodeCanyon profile, we'll try and get back to you the very same day (GMT).

View demo »

Upload all the files to your server, then simply run the Install Wizard. A link to the wizard can be found on the home.php page, or just open the /install/ folder on your server.


Step 1 Remember these

Few things to keep in mind:

  • Always backup - Keep a fresh copy of the files you downloaded before you edit them
  • If you already have a database, make a backup of it before upgrading / installing!
  • PHP knowledge will be handy
  • Jigowatt can not be liable for any data lost during upgrades and / or installs

Step 2 Setup MySQL & config.php

Create a fresh MySQL Database.

File: install/login.sql - line 84

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

Now that line should look like this:

(1, 'a:3:{i:0;s:1:"3";i:1;s:1:"1";i:2;s:1:"2";}', 0, 'admin', 'Demo Admin', 'test.admin@jigowatt.co.uk', '21232f297a57a5a743894a0e4a801fc3');

Save login.sql and insert it into your Database. I use PHPMyAdmin's SQL / Import window to do it :)

File: classes/config.sample.php - line 6

Replace the example URL with your website address.

define("SITE_PATH", "http://www.jigowatt.co.uk/themeforest/login/");

File: classes/config.sample.php - line 12

Replace the example email with your own email address.

$address = "no-reply@jigowatt.co.uk";

File: classes/config.sample.php - line 19-22

Replace these details with those of your database and save.

$host = "localhost"; // If you don't know what your host is, it's safe to leave it localhost
$dbName = "database"; // Database name
$dbUser = "username"; // Username
$dbPass = "password"; // Password

File: classes/config.sample.php - line 28

Replace the default 0 to the amount of minutes you want site-wide login expiration to be at. For example, setting it to 60 means that after 60 minutes from a user logging in, the user will be logged out automatically.

// 0 means logout on browser close
$minutes = 0;

After making these edits, rename config.sample.php to config.php.

Step 3 Upload to your server

On completion of Steps 1 & 2 you now need to upload the following files and folders to directory on your server.

admin/
assets/
classes/
install/
activate.php
ajax.php
disabled.php
footer.php
forgot.php
header.php
home.php
login.php
logout.php
my-account.php
protected.php
protected_2.php
protected_3.php
sign_up.php

Step 4 Integrate your pages

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

Note Make sure it's inside PHP open <?php and close ?> tags.

<?php 

include('classes/class.check.php');
$check = new Check(array(1,2));

// Admin and Special users only

?>

Important Guidelines

The number inside the parenthesis is the desired user level a user must have to view the page. In the standard installation:

  • 1 = Administrator
  • 2 = Special
  • 3 = User (default)

Eg, only an Administrator would be able to view the page with:

<?php 
include('classes/class.check.php');
$check = new Check(array(1));
?>

Note You have the ability to manage User Levels in the Control Panel.

Step 5 - Finished!

Save and upload the changed files to your server. You must upload them in the file structure provided.

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

Quick Note on User Levels

From within the Control Panel (/admin/ directory) in your browser you can Add/Edit or Disable User 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.