You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SnipeITAPI/dieifnotloggedin.php

9 lines
226 B
PHTML

8 years ago
<?php
/**
* Simple way to block people that aren't logged in.
*/
8 years ago
require_once 'required.php';
if ($_SESSION['loggedin'] !== true || is_empty($_SESSION['user'])) {
sendError('You must be logged in to continue.', true);
}