{% extends "Froxlor/userarea.html.twig" %} {% block heading %}
{{ lng('admin.configfiles.serverconfiguration') }}
{{ lng('admin.configfiles.description') }} {% endblock %} {% block actions %} {{ lng('admin.configfiles.distribution') }}: {{ distribution }} {% endblock %} {% block content %}
{% block settings %}
{% for stype,field in fields %}
{{ stype|upper }}
{% if stype != 'system' %}
{% endif %} {% set daemons = field.getDaemons %} {% for dtype,daemon in daemons %} {% if stype == 'system' %}
{% set recommended = false %} {% if (dtype == get_setting('system.traffictool')) or (dtype == 'libnssextrausers' and (get_setting('system.mod_fcgid') == '1' or get_setting('phpfpm.enabled') == '1' or get_setting('system.apacheitksupport') == '1')) or (dtype == 'logrotate') or (dtype == 'fcgid' and get_setting('system.mod_fcgid') == '1') or (dtype == 'php-fpm' and get_setting('phpfpm.enabled') == '1') or (dtype == 'cron') %} {% set recommended = true %} {% endif %}
{% else %}
{% set recommended = false %} {% if (dtype == 'apache22' and get_setting('system.webserver') == 'apache2' and get_setting('system.apache24') == '0') or (dtype == 'apache24' and get_setting('system.webserver') == 'apache2' and get_setting('system.apache24') == '1') or (dtype == 'lighttpd' and get_setting('system.webserver') == 'lighttpd') or (dtype == 'nginx' and get_setting('system.webserver') == 'nginx') or (dtype == 'bind' and get_setting('system.bind_enable') == '1' and get_setting('system.dns_server') == 'Bind') or (dtype == 'powerdns' and get_setting('system.bind_enable') == '1' and get_setting('system.dns_server') == 'PowerDNS') or (dtype == 'proftpd' and get_setting('system.ftpserver') == 'proftpd') or (dtype == 'pureftpd' and get_setting('system.ftpserver') == 'pureftpd') %} {% set recommended = true %} {% endif %}
{% endif %} {% endfor %}
{% endfor %}
{% endblock %}
* {{ lng('admin.configfiles.recommendednote') }}
{% endblock %}