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 <?php
require_once 'engine/init.php'; require_once 'engine/init.php';
if (user_logged_in() === false) { protect_page();
header('Location: register.php');
}
include 'layout/overall/header.php'; include 'layout/overall/header.php';
$view = (isset($_GET['view']) && (int)$_GET['view'] > 0) ? (int)$_GET['view'] : false; $view = (isset($_GET['view']) && (int)$_GET['view'] > 0) ? (int)$_GET['view'] : false;
@ -229,4 +227,4 @@ if ($view !== false) {
} }
} }
include 'layout/overall/footer.php'; include 'layout/overall/footer.php';
?> ?>