fixed getting current script dir

This commit is contained in:
sose 2021-04-08 00:55:01 +00:00
parent 893abeaacd
commit 7c945997d7
1 changed files with 1 additions and 8 deletions

View File

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