Permalink
Browse files

Fix info cloudauth output on UI + add connect to sst

  • Loading branch information...
NEMS Linux
NEMS Linux committed Dec 1, 2018
1 parent 5ad8c6a commit 405a27971de67d516e83c05ee08155d12e6f50b9
Showing with 13 additions and 1 deletion.
  1. +12 −0 config/index.php
  2. +1 −1 info/index.php
@@ -217,6 +217,18 @@ function sanitize($string) {
<i class="icon-append fa fa-key"></i>
<input type="text" name="osbkey" value="<?= $nemsconf['osbkey'] ?>">
<b class="tooltip tooltip-bottom-right">Your Off-Site Backup License Key</b>
<?php
if (isset($nemsconf['osbkey']) && strlen($nemsconf['osbkey'])) {
echo '<span style="font-size: 0.8em;">';
if (shell_exec('/usr/local/bin/nems-info cloudauth') == 1) {
echo '<span class="nems-green">Connected</span>';
} else {
echo '<span class="color-red">Authorization Failed</span>';
}
echo '</span>';
}
?>

</label>
</section>
</fieldset>
@@ -46,7 +46,7 @@
<p style="padding:4px 6px; color: #aaa !important;"><b>NEMS Network Interface:</b> <span class="nems-green"><?= shell_exec('/usr/local/bin/nems-info nic'); ?></span></p>
<p style="padding:4px 6px; color: #aaa !important;"><b>Number of Hosts:</b> <span class="nems-green"><?= shell_exec('/usr/local/bin/nems-info hosts'); ?></span></p>
<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 cloud') == 1) echo 'Yes'; else echo 'No'; ?></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>

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

0 comments on commit 405a279

Please sign in to comment.