exit() after using access-file
This commit is contained in:
parent
aeb62bba48
commit
412fbf47ee
18
php/api.php
18
php/api.php
@ -55,18 +55,18 @@ if (!empty($fn)) {
|
|||||||
$admin = new Admin();
|
$admin = new Admin();
|
||||||
$admin->check($fn);
|
$admin->check($fn);
|
||||||
|
|
||||||
} else {
|
exit();
|
||||||
|
|
||||||
###
|
|
||||||
# Guest Access
|
|
||||||
# Access to view all public folders and photos in Lychee.
|
|
||||||
###
|
|
||||||
|
|
||||||
$guest = new Guest();
|
|
||||||
$guest->check($fn);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
###
|
||||||
|
# Guest Access
|
||||||
|
# Access to view all public folders and photos in Lychee.
|
||||||
|
###
|
||||||
|
|
||||||
|
$guest = new Guest();
|
||||||
|
$guest->check($fn);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
exit('Error: No API function specified!');
|
exit('Error: No API function specified!');
|
||||||
|
Loading…
Reference in New Issue
Block a user