mariofont / PHP-Login

Simple, easy-to-use, and database-free login system.
48 stars 33 forks source link

PHP-Login

Simple, easy-to-use, and database-free login system.

How it works

How to use it

  1. Download the source files to your computer.
  2. Open config.php with your favorite text editor (I suggest you use Atom) and find the variables $Username and $Password.
  3. Change the username and password (note that you have to use the salted version of your password.
  4. Save the files, upload them to your webserver and give it a try.
EXTRA:
<?php
  session_start(); /* Starts the session */
  if($_SESSION['Active'] == false){ /* Redirects user to login.php if not logged in */
    header("location:login.php");
    exit;
  }
?>

Authors