mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 11:19:22 +02:00
Merge pull request #208 from triath/use-protect_page()-in-helpdesk.php
Use standard function protect_page() in helpdesk.php
This commit is contained in:
commit
8e4d44fe4c
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user