Setup
Instructions
Follow these instructions to setup admin-Login-Only:
- unzip the distribution package into a new folder called "admin-Login-Only"
- open the file called: secret.php
- enter your own values for ADMINUSER, ADMINPASSWORD, ADMINHOME and save
Example: define("ADMINUSER", "admin"); // change the RED text only
- place all files from the "admin-Login-Only" folder into the web folder which has the file you wish to protect
Example - you want to protect: admin.php
- launch your browser and open the file called admin.php on your server
How to Protect any Page
After completing the setup above it is easy to protect any page. Simply add this one line of code
to the top of any page:
<?php require_once("adminOnly.php");?>
Test admin-Login-Only
Click here to test it out.
- Admin User Name: admin
- Admin Password: admin
- default page you will load if successful: admin.php
Click here to test it out.
Tips
Click here for tips.
Download the Distribution Zip File
http://www.globalissa.com/download.php?n=1&p=15
|