Skip to content

Commit 08bdff8

Browse files
author
skid
committed
improving kondurake patches
1 parent 652ba9c commit 08bdff8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

web/templates/admin/add_web.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<select class="vst-list" name="v_ip">
6464
<?php
6565
foreach ($ips as $ip => $value) {
66-
$display_ip = htmlentities(empty($value['NAT']) ? $ip : "{$ip} → {$value['NAT']}");
66+
$display_ip = htmlentities(empty($value['NAT']) ? $ip : "{$value['NAT']}");
6767
$ip_selected = (!empty($v_ip) && $ip == $_POST['v_ip']) ? 'selected' : '';
6868
echo "\t\t\t\t<option value=\"{$ip}\" {$ip_selected}>{$display_ip}</option>\n";
6969
}

web/templates/admin/edit_web.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<select class="vst-list" name="v_ip">
6767
<?php
6868
foreach ($ips as $ip => $value) {
69-
$display_ip = htmlentities(empty($value['NAT']) ? $ip : "{$ip} → {$value['NAT']}");
69+
$display_ip = htmlentities(empty($value['NAT']) ? $ip : "{$value['NAT']}");
7070
$ip_selected = ((!empty($v_ip) && $ip == $v_ip) || $v_ip == "'{$ip}'") ? 'selected' : '';
7171
echo "\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"{$ip}\" {$ip_selected}>{$display_ip}</option>\n";
7272
}

web/templates/admin/list_web.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757

5858
<div class="l-center units narrow">
5959
<?php
60-
$ips = json_decode(shell_exec(VESTA_CMD.'v-list-sys-ips json'), true);
6160
foreach ($data as $key => $value) {
6261
++$i;
6362
if ($data[$key]['SUSPENDED'] == 'yes') {
@@ -179,7 +178,7 @@
179178
</div>
180179
<!-- /.l-unit__name -->
181180
<div class="l-unit__ip">
182-
<?=empty($ips[$data[$key]['IP']]['NAT']) ? $data[$key]['IP'] : "{$data[$key]['IP']} → {$ips[$data[$key]['IP']]['NAT']}"; ?>
181+
<?=empty($ips[$data[$key]['IP']]['NAT']) ? $data[$key]['IP'] : "{$ips[$data[$key]['IP']]['NAT']}"; ?>
183182
</div>
184183
<!-- /.l-unit__ip -->
185184
<div class="l-unit__stats">

0 commit comments

Comments
 (0)