mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 09:32:24 -04:00
Add --webroot parameter.
This commit is contained in:
parent
c8cb8f788a
commit
8349f9268b
4 changed files with 32 additions and 11 deletions
|
@ -1,6 +1,10 @@
|
|||
<?
|
||||
$longopts = array("webroot:");
|
||||
$options = getopt("", $longopts);
|
||||
$webRoot = $options["webroot"] ?? "/standardebooks.org";
|
||||
|
||||
$rssLength = 30;
|
||||
$contentFiles = explode("\n", trim(shell_exec('find /standardebooks.org/www/ebooks/ -name "content.opf" | sort') ?? ''));
|
||||
$contentFiles = explode("\n", trim(shell_exec('find ' . escapeshellarg($webRoot . '/www/ebooks/') . ' -name "content.opf" | sort') ?? ''));
|
||||
|
||||
$sortedContentFiles = array();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue