mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
Use standard function protect_page() in helpdesk.php
To be consistent I think we should use the standard function protect_page() instead of a custom if statement in helpdesk.php so its the behaviour is the same as in other places.
This commit is contained in:
parent
66e0d6c99c
commit
583840679c
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
require_once 'engine/init.php';
|
||||
if (user_logged_in() === false) {
|
||||
header('Location: register.php');
|
||||
}
|
||||
protect_page();
|
||||
include 'layout/overall/header.php';
|
||||
|
||||
$view = (isset($_GET['view']) && (int)$_GET['view'] > 0) ? (int)$_GET['view'] : false;
|
||||
@ -229,4 +227,4 @@ if ($view !== false) {
|
||||
}
|
||||
}
|
||||
include 'layout/overall/footer.php';
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user