GithubHelp home page GithubHelp logo

eliasmunizdev / php-login Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mariofont/php-login

0.0 1.0 0.0 153 KB

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

PHP 67.76% CSS 26.44% JavaScript 5.81%

php-login's Introduction

PHP-Login

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

How it works

  • The system is coded 100% in PHP (although a minimal knowledge of HTML is required).
  • The visual framework used is Bootstrap.
  • There are four main pages: login.php shows the login form, index.php the default password-protected area, logout.php simply ends the session and config.php stores the user's information.

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:
  • If you want to password-protect any page, just add this snippet of code at the beginning of it:
<?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

  • Mario Font - Whole project - GitHub
  • Calebrw - Security fixes - GitHub

php-login's People

Contributors

mariofont avatar calebrw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.