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

@@ -29,6 +29,10 @@ if (isset($_POST['id'])) {
if ($page == 'ipsandports'
|| $page == 'overview'
) {
// Do not display attributes that are not used by the current webserver
$websrv = Settings::Get('system.webserver');
$is_nginx = ($websrv == 'nginx');
$is_apache = ($websrv == 'apache2');
if ($action == '') {