{# @copyright 2014 Mautic Contributors. All rights reserved @author Mautic @link http://mautic.org @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html #} {#use Mautic\InstallBundle\Configurator\Step\CheckStep;#} {% if 'index' == tmpl %} {% extends '@MauticInstall/Install/content.html.twig' %} {% endif %} {% block content %}

{{ 'mautic.install.heading.check.environment'|trans }}

{% autoescape false %}
{% if majors|length %}

{{ 'mautic.install.heading.major.problems'|trans }}

{{ 'mautic.install.sentence.major.problems'|trans ({'%majors%' : majors|length}) }}
    {% for message in majors %} {% if message == 'mautic.install.cache.unwritable' %}
  • {{ 'mautic.install.directory.unwritable'|trans ({'%path%' : cacheDir}) }}
  • {% elseif message == 'mautic.install.config.unwritable' %}
  • {{ message|trans ({'%path%' : configFile}) }}
  • {% elseif message == 'mautic.install.logs.unwritable' %}
  • {{ 'mautic.install.directory.unwritable'|trans ({'%path%' : logDir}) }}
  • {% elseif message == 'mautic.install.apc.version' %} {% set minAPCverison = (constant('PHP_VERSION') >= '5.4.0') ? '3.1.13' : '3.0.17' %}
  • {{ message|trans ({'%minapc%' : minAPCverison, '%currentapc%' : 'apc'|phpversion}) }}
  • {% else %}
  • {{ message|trans }}
  • {% endif %} {% endfor %}
{% endif %} {% if not (majors|length) %}

{{ 'mautic.install.heading.ready'|trans }}

{{ 'mautic.install.sentence.ready'|trans }}

{% endif %} {% if minors|length %}

{{ 'mautic.install.sentence.minor.problems'|trans }}

    {% for message in minors %} {% if message == 'mautic.install.pcre.version' %}
  • {{ message|trans ({'%pcreversion%' : constant('PCRE_VERSION')}) }}
  • {% elseif message == 'mautic.install.php.version.not.supported' %}
  • {{ message|trans ({'%phpversion%' : constant('PHP_VERSION')}) }}
  • {% elseif message == 'mautic.install.php.version.has.only.security.support' %}
  • {{ message|trans ({'%phpversion%' : constant('PHP_VERSION')}) }}
  • {% elseif message == 'mautic.install.memory.limit' %}
  • {{ message|trans ({'%min_memory_limit%' : constant('Mautic\\InstallBundle\\Configurator\\Step\\CheckStep::RECOMMENDED_MEMORY_LIMIT')}) }}
  • {% else %}
  • {{ message|trans }}
  • {% endif %} {% endfor %}
{% endif %} {% if not (majors|length) %} {{ form_start(form) }}
{{ form_row(form.buttons) }}
{{ form_end(form) }} {% endif %}
{% endautoescape %} {% endblock %}