IPs and Ports: Only show attributes used by the current webserver

This commit is contained in:
Johannes Feichtner
2016-02-15 22:37:46 +01:00
parent c269a3d363
commit 46eeb65ff0
5 changed files with 20 additions and 10 deletions

View File

@@ -8,29 +8,29 @@ $header
</header>
<section>
<form action="{$linker->getLink(array('section' => 'ipsandports'))}" method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="s" value="$s"/>
<input type="hidden" name="page" value="$page"/>
<div class="overviewsearch">
{$searchcode}
</div>
<div class="overviewadd">
<img src="templates/{$theme}/assets/img/icons/add.png" alt="" />&nbsp;
<a href="{$linker->getLink(array('section' => 'ipsandports', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['ipsandports']['add']}</a>
</div>
<table class="full hl">
<thead>
<tr>
<th>{$lng['admin']['ipsandports']['ip']}&nbsp;{$arrowcode['ip']}</th>
<th>{$lng['admin']['ipsandports']['port']}&nbsp;{$arrowcode['port']}</th>
<th>Listen</th>
<th>NameVirtualHost</th>
<if !$is_nginx><th>Listen</th></if>
<if $is_apache><th>NameVirtualHost</th></if>
<th>vHost-Container</th>
<th>Specialsettings</th>
<th>ServerName</th>
<if $is_apache><th>ServerName</th></if>
<th>SSL</th>
<th>{$lng['panel']['options']}</th>
</tr>
@@ -39,7 +39,7 @@ $header
<if $pagingcode != ''>
<tfoot>
<tr>
<td colspan="8">{$pagingcode}</td>
<td colspan="<if $is_apache>8<else>6</if>">{$pagingcode}</td>
</tr>
</tfoot>
</if>

View File

@@ -1,11 +1,11 @@
<tr>
<td>{$row['ip']}</td>
<td>{$row['port']}</td>
<td><if $row['listen_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>
<td><if $row['namevirtualhost_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>
<if !$is_nginx><td><if $row['listen_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td></if>
<if $is_apache><td><if $row['namevirtualhost_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td></if>
<td><if $row['vhostcontainer']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>
<td><if $row['specialsettings']!=''>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>
<td><if $row['vhostcontainer_servername_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>
<if $is_apache><td><if $row['vhostcontainer_servername_statement']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td></if>
<td><if $row['ssl']=='1'>{$lng['panel']['yes']}<else>{$lng['panel']['no']}</if></td>
<td>
<a href="{$linker->getLink(array('section' => 'ipsandports', 'page' => $page, 'action' => 'edit', 'id' => $row['id']))}">