forked from Adleraci/adlerka.top
exit on redirect
This commit is contained in:
parent
a121abd910
commit
8f78663419
@ -51,6 +51,7 @@ function initRouter(): bool
|
||||
$routerRequest["page_name"];
|
||||
// Redirect with default page name
|
||||
header("Location: $redirectAddress");
|
||||
echo "false";
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
@ -60,6 +61,7 @@ function initRouter(): bool
|
||||
if(empty($routerRequest["type"])){
|
||||
$routerRequest["type"] = "page";
|
||||
}
|
||||
echo "true";
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user