fixed getting cgi bin path
This commit is contained in:
parent
0ed560fb41
commit
917928af75
9
news.php
9
news.php
|
@ -1,18 +1,11 @@
|
|||
#!/usr/bin/php
|
||||
<?php
|
||||
|
||||
$abs_path = "gemini://" . getenv("SERVER_NAME") . getenv("SCRIPT_NAME");
|
||||
|
||||
$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");
|
||||
|
||||
$topics = array("WORLD",
|
||||
"BUSINESS",
|
||||
"TECHNOLOGY",
|
||||
|
|
Loading…
Reference in New Issue