diff options
| -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; | 
