В файле /themes/prestashop/index.php появился вот такой код
function remove_expired_entries($value)
{
list($ip, $time) = explode('-', $value);
if (time() - $time < 2) return true;
}
function clean_entries($value)
{
list($ip, $time) = explode('-', $value);
return $ip;
}
$file = 'access.dat';
$data = array();
if(is_readable($file))
{
$data = array_filter(file('access.dat', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES), 'remove_expired_entries');
}
$ip = sprintf("%u", ip2long($_SERVER['REMOTE_ADDR']));
if(!in_array($ip, array_map('clean_entries', $data)))
{
$data[] = $ip . '-' . time();
file_put_contents($file, implode("\n", $data), LOCK_EX);
// Do some action
$logFileHandler = fopen(pathinfo(__FILE__, PATHINFO_FILENAME).'.log', 'a');
fputs($logFileHandler, date('Y-m-d H:i:s') . "\t{$ip}\r\n");
fclose($logFileHandler);
die('OK');
}
die('ERR');
он генерирует файл index.log с такой информацией 2015-07-06 22:51:42 1123631299
Это служебная информация хостинга или взлом?