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:
triath 2015-08-15 14:50:25 +02:00
parent 66e0d6c99c
commit 583840679c

View File

@ -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';
?>
?>