8 lines
162 B
PHP
8 lines
162 B
PHP
|
<?php
|
||
|
if($_SESSION['user']->isLoggedIn()) {
|
||
|
if (!isset($path[1])) {
|
||
|
require_once(VIEW_PATH . $path[0] . '.php');
|
||
|
}
|
||
|
}else{
|
||
|
redirect('login');
|
||
|
}
|