REQUEST_URI Added

This commit is contained in:
xdrm-brackets 2017-09-13 15:48:56 +02:00
parent 6db86ee12d
commit e693cd088e
1 changed files with 4 additions and 3 deletions

View File

@ -48,11 +48,12 @@
echo "<tr><td>$name</td>";
$link = $_SERVER['HTTP_HOST']."/ics/$id.ics";
echo "<td><a href='/info/$id'>Set colors</a></td>";
$URI = $_SERVER['REQUEST_URI'];
$link = $_SERVER['HTTP_HOST']."{$URI}ics/$id.ics";
echo "<td><a href='${URI}info/$id'>Set colors</a></td>";
echo "<td><a";
if( file_exists(__ROOT__."/tmp/$id.ics") )
echo " href='/ics/$id.ics'";
echo " href='${URI}ics/$id.ics'";
echo ">https://$link</a></td>";
echo "</tr>";