$data){
$tr_class = ($index % 2 == 0) ? 'shaded' : '';
$status .= '
| '.$result.' | ';
if ($data->status == 1) {
$status .= '';
} else {
$status .= '';
}
$status .= ' | ';
if (!empty($data->locations)) {
$locations = $data->locations;
$location = implode(",", $locations);
$status .= ' | '.$location.' | ';
} else {
$status .= ' | ';
}
$status .= '
';
$index++;
}
return <<
.status-div {
display: inline-block;
}
.status-text {
font-size: 15px;
}
td {
padding: 6px;
text-align: center;
}
.align-td {
text-align: center;
}
.green-circle {
padding: 2px 10px;
border-radius: 100%;
background-color: green;
border: 1px solid black;
}
.red-circle {
padding: 2px 10px;
border-radius: 50%;
background-color: red;
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
Application |
Available |
Proxied |
Location |
{$status}
HTML;
}
$access = shell_exec("cat /config/log/nginx/access.log | goaccess -a -o html --html-prefs='{\"theme\":\"darkGray\"}' --log-format COMBINED --geoip-database=/config/geoip2db/GeoLite2-City.mmdb -");
$status = GetStatus();
echo str_replace("
", $status, $access);
?>