INSTALLATION INSTRUCTIONS
[STEP ]
Create a MySQL database on your server.
[STEP 4 FAQ]
Q. How do I create a MySQL database?
A. Creating a MySQL Database will vary from server to server.
Your hosting control panel should have a MySQL databases area,
where you will be able to create a database, database user, and database password.
[STEP ]
Open up config.php file located in /includes/ directory,
and change the four constants as show below:
define('DB_SERVER', "localhost"); Usualy localhost
define('DB_USER', "root"); Your database username created in step above
define('DB_PASS', "root"); Your database password created in step above
define('DB_NAME', "dbname"); Your database name created in step above
[STEP ]
Open your hosting control panel CPanel/H-Sphere etc.. and using
PhpMyAdmin or any other program execute sql.sql file
[STEP ]
Point tour browser to your Advanced Login System directory, and login with
Username: admin
Password: admin
Once logged in You will also need to change your admin password, and update email address.
[STEP
You can now delete queries.sql file from your server
[Integration]
To protect your pages from unauthorized user access add the following
code at the beginning of each page:
define("_VALID_PHP", true);
require_once("include/config.php");
if (!$session->logged_ in)
redirect("yourpage.php");
What it means: If user is not logged in it will be redirected to yourpage.php
For admin access do the following:
define("_VALID_PHP", true);
require_once("include/config.php");
if (!$session->isAdmin())
redirect("yourpage.php");
What it means: If logged in user does not have administrative privilege
it will be redirected to yourpage.php