diff options
| author | Philip Wittamore <philip@wittamore.com> | 2025-10-22 11:26:12 +0200 | 
|---|---|---|
| committer | Philip Wittamore <philip@wittamore.com> | 2025-10-22 11:26:12 +0200 | 
| commit | c090c321670ff68cfd483d7fdefb788d5509d265 (patch) | |
| tree | b7cbf5f8bd32e22378cddefa63b7fa5f7418a7f7 | |
| parent | 30a1a627fd445781fed8679b1e636cf1685e980e (diff) | |
| download | scripts-c090c321670ff68cfd483d7fdefb788d5509d265.tar.gz scripts-c090c321670ff68cfd483d7fdefb788d5509d265.tar.bz2 scripts-c090c321670ff68cfd483d7fdefb788d5509d265.zip | |
update
| -rw-r--r-- | getfeeds.php | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/getfeeds.php b/getfeeds.php index a6fa2e7..ca52b9b 100644 --- a/getfeeds.php +++ b/getfeeds.php @@ -1,9 +1,14 @@  <?php +/* + Build rss feed pages for gopher + creates the necessary gophermaps using + /feeds/feedname/feed and /feeds/feedname/title + feed contains the feed url, title is whatever title you edit + requires simplepie https://www.simplepie.org/ +*/  require_once('/root/bin/SimplePie.compiled.php'); -// iterate through feed directories -  $root = "/srv/gopher/feeds";  $cache= "/srv/gopher/cache";  $fs   = "feed"; @@ -17,6 +22,7 @@ if (file_exists("$root/$hs")) {      file_put_contents("$root/gophermap", "last update: ".$dt->format('Y-m-d H:i:s')."\n\n", FILE_APPEND);  } +// iterate through feed directories  foreach ($dir as $subdir) {      # get feed settings from directory      if (!file_exists("$subdir/$fs")) continue; | 
