{layout @layout.html}
{block title}<title>LemonCMS {=CMS_VERSION} | Installation</title>{/block}
{block header}
{include header.html}
{/block}
{block content}
<div class="column-group">
  <div class="xlarge-50 large-50 medium-70 small-100 tiny-100 top-space push-center align-center">
    <h2>{_}step_2{/_} - {_}requirements_check{/_}</h2>
    <table class="ink-table">
      <thead>
	<tr>
	  <th style="border-bottom: 0;">{_}requirement{/_}</th>
	  <th style="border-bottom: 0;">{_}available{/_}</th>
	</tr>
      </thead>
      <tbody>
	<tr>
	  <td class="align-left" style="border-bottom: 0;">PHP 7.3</td>
	  {if $requirements['php_version']}
	  <td style="color: green; font-weight: bold; border-bottom: 0;">PHP {phpversion()}</td>
	  {else}
	  <td style="color: red; font-weight: bold; border-bottom: 0;">PHP {phpversion()}</td>
	  {/if}
	</tr>
	<tr>
	  <td class="align-left" style="border-bottom: 0;">{_}pdo_supported{/_}</td>
	  {if $requirements['pdo']}
	  <td style="color: green; font-weight: bold; border-bottom: 0;">{_}_true{/_}</td>
	  {else}
	  <td style="color: red; font-weight: bold; border-bottom: 0;">{_}_false{/_}</td>
	  {/if}
	</tr>
	<tr>
	  <td class="align-left" style="border-bottom: 0;">{_}mysql_supported{/_}<sup>[1]</sup></td>
	  {if $requirements['mysql']}
	  <td style="color: green; font-weight: bold; border-bottom: 0;">{_}_true{/_}</td>
	  {else}
	  <td style="color: red; font-weight: bold; border-bottom: 0;">{_}_false{/_}</td>
	  {/if}
	</tr>
	<tr>
	  <td class="align-left" style="border-bottom: 0;">{_}postgresql_supported{/_}<sup>[1]</sup></td>
	  {if $requirements['pgsql']}
	  <td style="color: green; font-weight: bold; border-bottom: 0;">{_}_true{/_}</td>
	  {else}
	  <td style="color: red; font-weight: bold; border-bottom: 0;">{_}_false{/_}</td>
	  {/if}
	</tr>
	<tr>
	  <td class="align-left" style="border-bottom: 0;">{_}mail_function_enabled{/_}</td>
	  {if $requirements['mail']}
	  <td style="color: green; font-weight: bold; border-bottom: 0;">{_}_true{/_}</td>
	  {else}
	  <td style="color: orange; font-weight: bold; border-bottom: 0;">{_}_false{/_}</td>
	  {/if}
	</tr>
	<tr>
	  <td class="align-left" style="border-bottom: 0;">{_}gd_enabled{/_}</td>
	  {if $requirements['gd']}
	  <td style="color: green; font-weight: bold; border-bottom: 0;">{_}_true{/_}</td>
	  {else}
	  <td style="color: orange; font-weight: bold; border-bottom: 0;">{_}_false{/_}</td>
	  {/if}
	</tr>
	<tr>
	  <td class="align-left" style="border-bottom: 0;">{_}imagick_enabled{/_}</td>
	  {if $requirements['imagick']}
	  <td style="color: green; font-weight: bold; border-bottom: 0;">{_}_true{/_}</td>
	  {else}
	  <td style="color: orange; font-weight: bold; border-bottom: 0;">{_}_false{/_}</td>
	  {/if}
	</tr>
	<tr>
	  <td class="align-left" style="border-bottom: 0;">{_}mbstring_enabled{/_}</td>
	  {if $requirements['mbstring']}
	  <td style="color: green; font-weight: bold; border-bottom: 0;">{_}_true{/_}</td>
	  {else}
	  <td style="color: red; font-weight: bold; border-bottom: 0;">{_}_false{/_}</td>
	  {/if}
	</tr>
	
	<tr>
	  <td class="align-left" style="border-bottom: 0;">{_}config_file_writable{/_}<sup>[2]</sup></td>
	  {if $requirements['config_file_writable']}
	  <td style="color: green; font-weight: bold; border-bottom: 0;">{_}_true{/_}</td>
	  {else}
	  <td style="color: red; font-weight: bold; border-bottom: 0;">{_}_false{/_}</td>
	  {/if}
	</tr>
      </tbody>
    </table>
  </div>
</div>
<div class="column-group">
  <div class="xlarge-80 large-80 medium-100 small-100 tiny-100 quarter-top-space push-center align-left medium">
    <sup>[1]</sup> {_}only_one_database{/_}<br>
    <sup>[2]</sup> <code>config/config.php</code>
  </div>
</div>
<div class="column-group">
  <div class="xlarge-50 large-50 medium-70 small-100 tiny-100 quarter-top-space push-center align-center">
    <a class="ink-button" href="?rt=install/step1">{_}previous{/_}</a>
    {if $showNextStep}
    <a class="ink-button green" href="?rt=install/step3">{_}next{/_}</a>
    {/if}
  </div>
</div>
{/block}
