redirect after login

This commit is contained in:
Ibnu Maksum 2024-02-27 10:37:41 +07:00
parent 1ec8049068
commit b938db9e5d
No known key found for this signature in database
GPG key ID: 7FC82848810579E5
3 changed files with 15 additions and 2 deletions

View file

@ -5,6 +5,10 @@
* by https://t.me/ibnux
**/
if(Admin::getID()){
r2(U.'dashboard');
}
if (isset($routes['1'])) {
$do = $routes['1'];
} else {

View file

@ -4,5 +4,10 @@
* by https://t.me/ibnux
**/
r2(APP_URL.'/index.php?_route=dashboard');
if(Admin::getID()){
r2(U.'dashboard');
}if(User::getID()){
r2(U.'home');
}else{
r2(U.'login');
}

View file

@ -5,6 +5,10 @@
* by https://t.me/ibnux
**/
if(User::getID()){
r2(U.'home');
}
if (isset($routes['1'])) {
$do = $routes['1'];
} else {