mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
Improve bulk downloads page
This commit is contained in:
parent
d659fb9649
commit
dbc2fd5fcd
5 changed files with 91 additions and 13 deletions
|
@ -93,5 +93,9 @@ foreach($ebooksByMonth as $month => $ebooks){
|
|||
$zip->close();
|
||||
|
||||
rename($tempFilename, $filePath);
|
||||
|
||||
// Set a filesystem attribute for the number of ebooks in the file. This will be used
|
||||
// to display that number on the downloads page.
|
||||
exec('attr -q -s ebook-count -V ' . escapeshellarg(sizeof($ebooks)) . ' ' . escapeshellarg($filePath));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue