Initial commit Change-Id: I0000000000000000000000000000000000000000
This commit is contained in:
11
classes/auth.php
Executable file
11
classes/auth.php
Executable file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
A simple auth module that should be included on any page that requires authentication
|
||||
@author ricky barrette
|
||||
@author Twenty Codes, LLC
|
||||
*/
|
||||
session_start();
|
||||
if(!$_SESSION['loggedIn']) {
|
||||
header('Location: login.php' ) ;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user