Skip to content
Permalink
ea00b0e2cb
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (16 sloc) 465 Bytes
<?php
defined('APP_DIR') or define('APP_DIR', __DIR__ . '/../app/');
include_once(APP_DIR . 'model/User.php');
include_once(APP_DIR . 'include/http.php');
$data = User::authenticated();
if ($data) {
if ($data->access == 'user') {
Http::redirect('user.php');
} else if ($data->access == 'admin') {
Http::redirect('admin.php');
}
}
include 'template/header.html';
include(APP_DIR . 'forms/login.php');
include 'template/footer.html';
?>
You can’t perform that action at this time.