page->get_page($page_id);
if(!isset($PHP_AUTH_USER)){
Header("WWW-Authenticate: Basic");
Header("HTTP/1.0 401 Unauthorized");
$error_message = "Sorry, You are not authorised to view this page\n";
$_POST["action"] = "blank";
$site_builder->show_smarty_page($this_page["page_id"],"","",$error_message);
exit;
}
else {
if($PHP_AUTH_PW != $this_page["member_password"] || $PHP_AUTH_USER != $this_page["member_username"]){
Header("WWW-Authenticate: Basic");
Header("HTTP/1.0 401 Unauthorized");
$_POST["action"] = "blank";
$error_message = "Login Details Incorrect
Sorry, You are not authorised to view this page.";
$site_builder->show_smarty_page($this_page["page_id"],"","",$error_message);
exit;
}
else {
?>
![]() |
|||||||
|
|
|
|||||
|
|||||||