mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 04:44:48 -04:00
Add --webroot parameter.
This commit is contained in:
parent
c8cb8f788a
commit
8349f9268b
4 changed files with 32 additions and 11 deletions
|
@ -1,5 +1,9 @@
|
|||
<?
|
||||
$contentFiles = explode("\n", trim(shell_exec('find /standardebooks.org/www/ebooks/ -name "content.opf" | sort') ?? ''));
|
||||
$longopts = array("webroot:");
|
||||
$options = getopt("", $longopts);
|
||||
$webRoot = $options["webroot"] ?? "/standardebooks.org";
|
||||
|
||||
$contentFiles = explode("\n", trim(shell_exec('find ' . escapeshellarg($webRoot . '/www/ebooks/') . ' -name "content.opf" | sort') ?? ''));
|
||||
|
||||
print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue