redirect after login
This commit is contained in:
parent
1ec8049068
commit
b938db9e5d
@ -5,6 +5,10 @@
|
|||||||
* by https://t.me/ibnux
|
* by https://t.me/ibnux
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
if(Admin::getID()){
|
||||||
|
r2(U.'dashboard');
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($routes['1'])) {
|
if (isset($routes['1'])) {
|
||||||
$do = $routes['1'];
|
$do = $routes['1'];
|
||||||
} else {
|
} else {
|
||||||
|
@ -4,5 +4,10 @@
|
|||||||
* by https://t.me/ibnux
|
* by https://t.me/ibnux
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
if(Admin::getID()){
|
||||||
r2(APP_URL.'/index.php?_route=dashboard');
|
r2(U.'dashboard');
|
||||||
|
}if(User::getID()){
|
||||||
|
r2(U.'home');
|
||||||
|
}else{
|
||||||
|
r2(U.'login');
|
||||||
|
}
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
* by https://t.me/ibnux
|
* by https://t.me/ibnux
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
if(User::getID()){
|
||||||
|
r2(U.'home');
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($routes['1'])) {
|
if (isset($routes['1'])) {
|
||||||
$do = $routes['1'];
|
$do = $routes['1'];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user