Skip to content
Permalink
Browse files

Detect and display speedtest server location

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 28, 2019
1 parent aeac3dc commit 7d7aff0170066dd13045f32cdd08c15f79125e4f
Showing with 2 additions and 2 deletions.
  1. +2 −2 info/index.php
@@ -34,7 +34,7 @@
$speedtestserver = intval(trim(shell_exec('/usr/local/bin/nems-info speedtest')));
$speedtestwhich = trim(shell_exec('/usr/local/bin/nems-info speedtest which'));
$speedtestlocation = trim(shell_exec('/usr/local/bin/nems-info speedtest location'));
?>

<div class="container" style="margin-top: 100px; padding-bottom: 100px;">
@@ -52,7 +52,7 @@
<p style="padding:4px 6px; color: #aaa !important;"><b>Number of Services:</b> <span class="nems-green"><?= shell_exec('/usr/local/bin/nems-info services'); ?></span></p>
<p style="padding:4px 6px; color: #aaa !important;"><b>Authorized for Cloud:</b> <span class="nems-green"><?php if (shell_exec('/usr/local/bin/nems-info cloudauth') == 1) echo 'Yes'; else echo 'No'; ?></span></p>

<p style="padding:4px 6px; color: #aaa !important;"><b>Speedtest Server:</b> <span class="nems-green"><?= $speedtestserver ?></span><?php if ($speedtestwhich == 'switch') echo ' (<span class="color-red">DISABLED</span>)<br />In NEMS SST you have chosen to ignore the recommended server and instead use the one specified in the checkcommand args in NEMS NConf.'; ?></p>
<p style="padding:4px 6px; color: #aaa !important;"><b>Speedtest Server:</b> <span class="nems-green"><?= $speedtestserver ?></span> <?= $speedtestlocation ?> <?php if ($speedtestwhich == 'switch') echo ' (<span class="color-red">DISABLED</span>)<br />In NEMS SST you have chosen to ignore the recommended server and instead use the one specified in the checkcommand args in NEMS NConf.'; ?></p>

<?php
if (isset($statlog) && is_array($statlog)) {

0 comments on commit 7d7aff0

Please sign in to comment.
You can’t perform that action at this time.