Simplify services output on singleview.

parent 1c4284b5
Pipeline #1073 passed with stage
in 1 minute and 23 seconds
......@@ -35,15 +35,10 @@ echo 'Uptime since we started monitoring this pod ' . $pod['monthsmonitored'] .
echo 'Response Time from our monitoring server in Los Angeles is ' . $pod['latency'] . ' milliseconds<br>';
echo 'This pod has <a href="#" class="green" data-featherlight="podstat-counts.php?domain=' . $pod['domain'] . '">' . $pod['total_users'] . '</a> total users with ' . $pod['active_users_halfyear'] . ' active the last 6 months, users have posted ' . $pod['local_posts'] . ' times and commented ' . $pod['comment_counts'] . ' times<br>';
echo 'Users rate this pod <a href="#" class="green" data-featherlight-variant="table-responsive" data-featherlight="rate.php?domain=' . $pod['domain'] . '">' . $pod['userrating'] . '</a> out of 10<br>';
echo 'Services this pod offers are ';
echo 'Services this pod offers are: ';
$services = json_decode($pod['services'] ?? '[]') ?: [];
($pod['service_xmpp'] ?? false) && $services[] = 'xmpp';
foreach ($services as $service) {
printf(
'%1$s ',
$service
);
}
echo implode(', ', $services);
echo '<br><br>';
echo 'Server Country: ' . $pod['countryname'] . '<br>';
echo 'Server State: ' . $pod['state'] . '<br>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment