Files

12 lines
247 B
PHP
Executable File

<?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['access'] == 'admin') {
header('Location: login.php' ) ;
}
?>