forked from Adleraci/adlerka.top
		
	exit on redirect
This commit is contained in:
		@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user