mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 00:45:46 -04:00
Replace the icon and title
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
text-align: left;
|
||||
}
|
||||
td {
|
||||
padding-right: 30px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
.green-circle {
|
||||
padding: 2px 10px;
|
||||
@@ -157,7 +157,10 @@
|
||||
}
|
||||
|
||||
$geodb = file_exists('/config/geoip2db/GeoLite2-City.mmdb') ? '--geoip-database=/config/geoip2db/GeoLite2-City.mmdb' : '';
|
||||
$access = shell_exec("goaccess -a -o html --config-file=/dashboard/goaccess.conf ".$geodb);
|
||||
$goaccess = shell_exec("goaccess -a -o html --config-file=/dashboard/goaccess.conf ".$geodb);
|
||||
$status = GetHeader() . GetProxies() . GetF2B() . GetAnnouncements() . '<div class="wrap-general">';
|
||||
echo str_replace("<div class='wrap-general'>", $status, $access);
|
||||
$page = str_replace("<div class='wrap-general'>", $status, $goaccess);
|
||||
$page = str_replace("<title>Server Statistics", "<title>SWAG Dashboard", $page);
|
||||
$page = preg_replace("/(<link rel='icon' )(.*?)(>)/", "<link rel='icon' type='image/svg+xml' href='/icon.svg'>", $page);
|
||||
echo $page;
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user