check($fn); exit(); } # Check if user is logged if ((isset($_SESSION['login'])&&$_SESSION['login']===true)&& (isset($_SESSION['identifier'])&&$_SESSION['identifier']===Settings::get()['identifier'])) { ### # Admin Access # Full access to Lychee. Only with correct password/session. ### $admin = new Admin(); $admin->check($fn); exit(); } ### # Guest Access # Access to view all public folders and photos in Lychee. ### $guest = new Guest(); $guest->check($fn); } else { exit('Error: No API function specified!'); } ?>