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