Файл: system/modules/daily_last.php
Строк: 21
<?
$result[] = daily::count($_GET['user'], intval($_GET['hide']));
$n = intval($_GET['n']);
$list = daily::get_last($_GET['user'], intval($_GET['hide']), $n);
if($list != false){
foreach ($list as $note) {
$result[] = array('id' => intval($note['id']), 'url' => '/daily_read/'.generate_url($note['id'].'_'.$note['topic']).'/', 'user' => $note['user'], 'topic' => protect_echo($note['topic']), 'text' => protect_echo(daily::substr(clean_echo($note['text']))), 'date' => date('d.m в H:i', $note['date']));
}
}
echo json_encode($result);
?>