<commit_before>{assign var=showSitesSelection value=false}
{assign var=showPeriodSelection value=false}
{include file="CoreAdminHome/templates/header.tpl"}
{loadJavascriptTranslations plugins='SecurityInfo'}
{include file="CoreAdminHome/templates/menu.tpl"}

<h2>{'SecurityInfo_SecurityInformation'|translate}</h2>
<p>{'SecurityInfo_PluginDescription'|translate}</p>

<div style="max-width:980px;">
{foreach from=$results.test_results key=i item=section}
<h2>{$i}</h2>
<table class="adminTable">
	<thead>
		<tr>
		<th>{'SecurityInfo_Test'|translate}</th>
		<th>{'SecurityInfo_Result'|translate}</th>
		</tr>
	</thead>
	<tbody>
		{foreach from=$section key=j item=test}
		<tr>
			<td>{$j}</td>
			<td style="{if $test.result==-1}background-color:green;color:white;{elseif $test.result==-2}background-color:yellow;color:black;{else if $test.result=--4}background-color:red;color:white;{/if}">{$test.message}</td>
		</tr>
		{/foreach}<commit_msg>Security plugin: small translation modification and redirection to URL without publishing the referer<commit_after>{assign var=showSitesSelection value=false}
{assign var=showPeriodSelection value=false}
{include file="CoreAdminHome/templates/header.tpl"}
{loadJavascriptTranslations plugins='SecurityInfo'}
{include file="CoreAdminHome/templates/menu.tpl"}

<h2>{'SecurityInfo_SecurityInformation'|translate}</h2>
<p>{'SecurityInfo_PluginDescription'|translate:"<a target='_blank' href='misc/redirectToUrl.php?url=http://phpsec.org/'>PHP Security Consortium</a>"}</p>

<div style="max-width:980px;">
{foreach from=$results.test_results key=i item=section}
<h2>{$i}</h2>
<table class="adminTable">
	<thead>
		<tr>
		<th>{'SecurityInfo_Test'|translate}</th>
		<th>{'SecurityInfo_Result'|translate}</th>
		</tr>
	</thead>
	<tbody>
		{foreach from=$section key=j item=test}
		<tr>
			<td>{$j}</td>
			<td style="{if $test.result==-1}background-color:green;color:white;{elseif $test.result==-2}background-color:yellow;color:black;{else if $test.result=--4}background-color:red;color:white;{/if}">{$test.message}</td>
		</tr>
		{/foreach}
{'fraction_non_alphanumeric': 0.18978805394990367, 'fraction_numerical': 0.009633911368015413, 'mean_word_length': 8.190265486725664, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '725843', 'n_tokens_mistral': 759, 'n_tokens_neox': 721, 'n_words': 103}