Game-Jaming/Backend/Controllers/Admin/Admin.php

11 lines
119 B
PHP
Raw Normal View History

<?php
/**
* @return bool
*/
2021-03-12 10:10:14 +00:00
function isAdmin(): bool
{
session_start();
return isset($_SESSION['admin']);
}