ordersprinter/spider/php/utils.php

15 lines
223 B
PHP

<?php
function isUserLoggedInCore() {
if(session_id() == '') {
session_start();
}
if (!isset($_SESSION['loggedin']) || !$_SESSION['loggedin']) {
// no user logged in
return false;
} else {
return true;
}
}
?>