mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 07:40:39 -04:00
Fix OPDS/RSS scripts"
This commit is contained in:
parent
905aef22fa
commit
1f6170d23a
2 changed files with 4 additions and 2 deletions
4
scripts/generate-opds.php
Executable file → Normal file
4
scripts/generate-opds.php
Executable file → Normal file
|
@ -1,4 +1,6 @@
|
|||
<?
|
||||
require_once('/standardebooks.org/web/lib/Core.php');
|
||||
|
||||
use function Safe\krsort;
|
||||
use function Safe\getopt;
|
||||
use function Safe\preg_replace;
|
||||
|
@ -8,8 +10,6 @@ $options = getopt("", $longopts);
|
|||
$webRoot = $options["webroot"] ?? "/standardebooks.org/web";
|
||||
$webUrl = $options["weburl"] ?? "https://standardebooks.org";
|
||||
|
||||
require_once($webRoot . '/lib/Core.php');
|
||||
|
||||
$contentFiles = explode("\n", trim(shell_exec('find ' . escapeshellarg($webRoot . '/www/ebooks/') . ' -name "content.opf" | sort') ?? ''));
|
||||
$allEbooks = [];
|
||||
$newestEbooks = [];
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?
|
||||
require_once('/standardebooks.org/web/lib/Core.php');
|
||||
|
||||
use function Safe\file_get_contents;
|
||||
use function Safe\getopt;
|
||||
use function Safe\krsort;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue