mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 05:14:48 -04:00
Add public domain day banner
This commit is contained in:
parent
1b604ca97f
commit
c65035630f
16 changed files with 293 additions and 105 deletions
|
@ -4,7 +4,7 @@ use Safe\DateTimeImmutable;
|
|||
// If the user is not logged in, or has less than some amount of downloads, show a thank-you page.
|
||||
|
||||
$ebook = null;
|
||||
$downloadCount = $_COOKIE['download-count'] ?? 0;
|
||||
$downloadCount = HttpInput::Int(COOKIE, 'download-count') ?? 0;
|
||||
$showThankYouPage = Session::$User === null && $downloadCount < 5;
|
||||
$downloadUrl = null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue