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
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");?>
version | feature | status |
---|---|---|
Download version 1.2 | runs on PHP 4.04 or higher | stable |
2.0 not available | $_SESSION['foo'] supported | superceded by 2.1 |
Download version 2.1 | 2 icons | newest release |