This commit is contained in:
iBNu Maksum
2025-02-07 15:19:04 +07:00
parent b6fadae2e5
commit e0884c0a5a
3 changed files with 11 additions and 6 deletions

View File

@ -5,9 +5,13 @@
**/
if(Admin::getID()){
r2(getUrl('dashboard'));
}if(User::getID()){
r2(getUrl('home'));
//r2(getUrl('dashboard'));
$handler = 'dashboard';
}else if(User::getID()){
//r2(getUrl('home'));
$handler = 'home';
}else{
r2(getUrl('login'));
//r2(getUrl('login'));
$handler = 'login';
}
include($root_path . File::pathFixer('system/controllers/' . $handler . '.php'));