IsPlaceholder() || $ebook->EbookPlaceholder === null){ throw new Exceptions\EbookNotFoundException(); } if(Session::$User === null){ throw new Exceptions\LoginRequiredException(); } if(!Session::$User->Benefits->CanEditEbookPlaceholders){ throw new Exceptions\InvalidPermissionsException(); } if($exception){ http_response_code(Enums\HttpCode::UnprocessableContent->value); session_unset(); } } catch(Exceptions\EbookNotFoundException){ Template::ExitWithCode(Enums\HttpCode::NotFound); } catch(Exceptions\LoginRequiredException){ Template::RedirectToLogin(); } catch(Exceptions\InvalidPermissionsException){ Template::ExitWithCode(Enums\HttpCode::Forbidden); } ?> 'Delete ' . $ebook->Title, 'css' => ['/css/ebook-placeholder.css'], 'highlight' => '', 'description' => 'Delete ' . $ebook->Title ] ) ?>

Delete

$exception]) ?>

Are you sure you want to permanently delete Title) ?>?