Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (36 sloc) 956 Bytes
<modification>
<id>Error log check and alert</id>
<version>1.0.0</version>
<vqmver>2.x</vqmver>
<author>Radi Penchev- radidesign.net</author>
<file name="/admin/view/template/common/header.tpl">
<operation>
<search position="bottom"><![CDATA[]]></search>
<add><![CDATA[
<style type="text/css">
#content {
padding-top: 20px!important;
}
.warning {
position: absolute!important;
margin-top: 4px;
margin-left: 30px;
}
</style>
<?php
$filename = $file = DIR_LOGS . $this->config->get('config_error_filename');
if (filesize($filename) > 1000000) {
echo '<div class="warning" >';
echo $filename . ': ' . filesize($filename) ;
echo ' bytes';
echo '<a href="';
echo $this->data['clear'] = $this->url->link('tool/error_log/clear', 'token=' . $this->session->data['token'], 'SSL');
echo '" > CLEAR</a>';
echo '</div>';
} else {
}
?>
]]></add>
</operation>
</file>
</modification>