improving kondurake patches

This commit is contained in:
skid 2016-08-09 17:33:37 +03:00
commit 08bdff8ba3
3 changed files with 3 additions and 4 deletions

View file

@ -57,7 +57,6 @@
<div class="l-center units narrow">
<?php
$ips = json_decode(shell_exec(VESTA_CMD.'v-list-sys-ips json'), true);
foreach ($data as $key => $value) {
++$i;
if ($data[$key]['SUSPENDED'] == 'yes') {
@ -179,7 +178,7 @@ sort-name="<?=$key?>" sort-bandwidth="<?=$data[$key]['U_BANDWIDTH']?>" sort-dis
</div>
<!-- /.l-unit__name -->
<div class="l-unit__ip">
<?=empty($ips[$data[$key]['IP']]['NAT']) ? $data[$key]['IP'] : "{$data[$key]['IP']} → {$ips[$data[$key]['IP']]['NAT']}"; ?>
<?=empty($ips[$data[$key]['IP']]['NAT']) ? $data[$key]['IP'] : "{$ips[$data[$key]['IP']]['NAT']}"; ?>
</div>
<!-- /.l-unit__ip -->
<div class="l-unit__stats">