Simple Authorization Script

Installation Instructions
  1. Download Simple Authorization Script.
  2. Unpack the zip file.
  3. Open and configure the sas.php file.
    • Change the variable $pass to the password you would like to use.
    • Optional: Change the variable $cookiename.
    • Optional: Change the expiry time ($expirytime). Default is 1 hour.
    • Optional: Change the error message ($msg).
    Optional: You can change the look of the login page by altering the function "show_login_page", but DO NOT DELETE ANY FORM INPUTS and DO NOT ALTER THE HIDDEN INPUT. We also request that you leave the footer credit as is.
  4. Add the following line to the page you wish to password protect. This line should be included as the first line in php.
    • require('sas.php');
    Optional: Add a logout button or logout text string to your password protected pages. Place the following line of php code on your password protected page where you want the display the logout button/text string.

    For a logout button, use the php code:
    • <?=$logout_button?>
    For a logout text string, use the php code:
    • <?=$logout_text?>
  5. Upload sas.php and your password protected page in the same folder on your server.

Is something not working? Please feel free to contact us or ask a question. Remember to leave details and specifics of your problem, simply stating "It doesn't work" doesn't help me help you solve the problem!

You may also want to read up on troubleshooting which explains a few common warnings and errors people have reported, along with their solutions.