REQUEST_URI Added
This commit is contained in:
parent
6db86ee12d
commit
e693cd088e
|
@ -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>";
|
||||
|
|
Loading…
Reference in New Issue