path('template:checksums')) && filesize($checksums)) {
$this['checksum']->verify($this['path']->path('template:'), $log);
if ($count = count($log)) {
$html[] = 'Some template files have been modified.';
$html[] = '
';
foreach (array('modified', 'missing') as $type) {
if (isset($log[$type])) {
foreach ($log[$type] as $file) {
$html[] = '- '.$file.($type == 'missing' ? ' (missing)' : null).'
';
}
}
}
$html[] = '
';
} else {
$html[] = 'Verification successful, no file modifications detected.';
}
} else {
$html[] = 'Checksum file is missing! Your template is maybe compromised.';
}
echo implode("\n", $html);