Variable printing

This commit is contained in:
Abhorrent_Anger 2019-01-26 00:56:06 +02:00
parent 076e3c381f
commit 58e1b94350
1 changed files with 15 additions and 12 deletions

View File

@ -1,3 +1,7 @@
<?php
$host_ip = $_SERVER['SERVER_ADDR'];
$s_name = $_SERVER['SERVER_NAME'];
?>
<html>
<head>
<title>PuBe - Purum Bellum</title>
@ -39,8 +43,8 @@
<a href="https://www.zdaemon.org/">ZDaemon</a>
</th>
<td>
<a href="zds://192.168.2.1:10669">Purum Bellum - Horde2 Coop (2014)</a>
<a href="zds://192.168.2.1:10666">Purum Bellum - RJ Nonsense</a>
<a href="zds://<?=$host_ip;?>:10669">Purum Bellum - Horde2 Coop (2014)</a>
<a href="zds://<?=$host_ip;?>:10666">Purum Bellum - RJ Nonsense</a>
</td>
</tr>
</table>
@ -54,7 +58,7 @@
<a href="https://join.funkwhale.audio/">Funkwhale</a>
</th>
<td>
<a href="https://fw.pube.tk/">fw.pube.tk</a>
<a href="https://fw.<?=$s_name;?>/">fw.<?=$s_name;?></a>
</td>
</tr>
<tr>
@ -65,7 +69,7 @@
<a href="https://joinpeertube.org/">PeerTube</a>
</th>
<td>
<a href="https://pt.pube.tk/">pt.pube.tk</a>
<a href="https://pt.<?=$s_name;?>/">pt.<?=$s_name;?></a>
</td>
</tr>
<tr>
@ -76,7 +80,7 @@
<a href="https://pixelfed.org/">PixelFed</a>
</th>
<td>
<a href="https://pix.pube.tk/">pix.pube.tk</a>
<a href="https://pix.<?=$s_name;?>/">pix.<?=$s_name;?></a>
</td>
</tr>
<tr>
@ -87,7 +91,7 @@
<a href="https://pleroma.social/">Pleroma</a>
</th>
<td>
<a href="https://pl.pube.tk/">pl.pube.tk</a>
<a href="https://pl.<?=$s_name;?>/">pl.<?=$s_name;?></a>
</td>
</tr>
</table>
@ -101,7 +105,7 @@
<a href="https://about.gitlab.com/">GitLab (Invite only)</a>
</th>
<td>
<a href="https://git.pube.tk/">git.pube.tk</a>
<a href="https://git.<?=$s_name;?>/">git.<?=$s_name;?></a>
</td>
</tr>
<tr>
@ -112,7 +116,7 @@
<a href="http://www.irchelp.org/">IRC</a>
</th>
<td>
<a href="https://irc.pube.tk/">irc.pube.tk</a>
<a href="https://irc.<?=$s_name;?>/">irc.<?=$s_name;?></a>
</td>
</tr>
</table>
@ -160,7 +164,7 @@
IPv4:
</th>
<td>
77.38.211.222
<?=$host_ip;?>
</td>
</tr>
<tr>
@ -168,7 +172,7 @@
DN:
</th>
<td>
pube.tk
<?=$s_name;?>
</td>
</tr>
<tr>
@ -192,11 +196,10 @@
UT:
</th>
<td>
465 days
<?=shell_exec('uptime | awk -F, \'{sub(".*up ",x,$1);print $1}\'')?>
</td>
</tr>
</table>
</div>
</div>
</body>