diff --git a/root/dashboard/www/index.php b/root/dashboard/www/index.php index bf8031f..d061f53 100644 --- a/root/dashboard/www/index.php +++ b/root/dashboard/www/index.php @@ -33,10 +33,6 @@ border: 1px solid black; } -

Welcome to your SWAG instance

-

A webserver and reverse proxy solution brought to you by linuxserver.io with php support and a built-in Certbot client.

-

We have an article on how to use swag here: docs.linuxserver.io

-

For help and support, please visit: linuxserver.io/support

HTML; } @@ -156,11 +152,34 @@ HTML; } + function GetLinks() { + return << +
+

Useful Links

+ + + + + + + + +
+
+
+
+ + HTML; + } + $geodb = file_exists('/config/geoip2db/GeoLite2-City.mmdb') ? '--geoip-database=/config/geoip2db/GeoLite2-City.mmdb' : ''; $goaccess = shell_exec("goaccess -a -o html --config-file=/dashboard/goaccess.conf ".$geodb); - $status = GetHeader() . GetProxies() . GetF2B() . GetAnnouncements() . '
'; + $status = GetHeader() . GetProxies() . GetF2B() . GetAnnouncements() . GetLinks() . '
'; $page = str_replace("
", $status, $goaccess); $page = str_replace("Server Statistics", "<title>SWAG Dashboard", $page); + $page = str_replace("<h1 class='h-dashboard'>", "<h1>", $page); + $page = str_replace("<i class='fa fa-tachometer'></i>", "<img src='/icon.svg' width='32' height='32'> SWAG ", $page); $page = preg_replace("/(<link rel='icon' )(.*?)(>)/", "<link rel='icon' type='image/svg+xml' href='/icon.svg'>", $page); echo $page; ?>