Browse Source

fixed getting current script dir

master
sose 3 months ago
parent
commit
7c945997d7
  1. 9
      gemhltv_news

9
gemhltv_news

@ -7,18 +7,11 @@ $LOGO_FILE = "/var/gemini-data/logos/gemhltv_news";
# ^^^^^^^^ path to file containing the text to be displayed at the top of the
# page
$READER_LINK = dirname($abs_path) . "/reader";
$READER_LINK = dirname(__PATH__) . "/reader";
# ^^^^^^^^^^ uri path to an instance of reader.php
# the default is relative, and assumes you have one in the same directory as
# this script
$abs_path = "gemini://" . getenv("SERVER_NAME") . getenv("SCRIPT_NAME");
$abs_path = "gemini://"
. getenv("SERVER_NAME")
. getenv("SCRIPT_NAME");
$feed_title = "";
$node_description = "";
$feed = new XMLReader;

Loading…
Cancel
Save