mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-02-05 04:59:42 +08:00
Improve branding
This commit is contained in:
parent
fcee0924f2
commit
b2ac39a8cf
@ -33,10 +33,6 @@
|
||||
border: 1px solid black;
|
||||
}
|
||||
</style>
|
||||
<h1>Welcome to your <a target="_blank" href="https://github.com/linuxserver/docker-swag">SWAG</a> instance</h1>
|
||||
<h4>A webserver and reverse proxy solution brought to you by <a target="_blank" href="https://www.linuxserver.io/">linuxserver.io</a> with php support and a built-in Certbot client.</h4>
|
||||
<h4>We have an article on how to use swag here: <a target="_blank" href="https://docs.linuxserver.io/general/swag">docs.linuxserver.io</a></h4>
|
||||
<h4>For help and support, please visit: <a target="_blank" href="https://www.linuxserver.io/support">linuxserver.io/support</a></h4>
|
||||
HTML;
|
||||
}
|
||||
|
||||
@ -156,11 +152,34 @@
|
||||
HTML;
|
||||
}
|
||||
|
||||
function GetLinks() {
|
||||
return <<<HTML
|
||||
<div class="wrap-panel status-div">
|
||||
<div>
|
||||
<h2>Useful Links</h2>
|
||||
<table class="table-hover">
|
||||
<tbody class="tbody-data">
|
||||
<tr><td class="link-text left-text"><span class="status-text"><a href="https://www.linuxserver.io/">Linuxserver.io</a></span></td></tr>
|
||||
<tr><td class="link-text left-text"><span class="status-text"><a href="https://github.com/linuxserver/docker-swag">SWAG Container</a></span></td></tr>
|
||||
<tr><td class="link-text left-text"><span class="status-text"><a href="https://docs.linuxserver.io/general/swag">SWAG Setup</a></span></td></tr>
|
||||
<tr><td class="link-text left-text"><span class="status-text"><a href="https://www.linuxserver.io/support">Support</a></span></td></tr>
|
||||
<tr><td class="link-text left-text"><span class="status-text"><a href="https://opencollective.com/linuxserver/donate">Donate</a></span></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br/>
|
||||
</div>
|
||||
<br/>
|
||||
</div>
|
||||
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() . '<div class="wrap-general">';
|
||||
$status = GetHeader() . GetProxies() . GetF2B() . GetAnnouncements() . GetLinks() . '<div class="wrap-general">';
|
||||
$page = str_replace("<div class='wrap-general'>", $status, $goaccess);
|
||||
$page = str_replace("<title>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;
|
||||
?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user