' . '' . '' . htmlspecialchars($set['copyright']) . ' | News' . '' . $set['homeurl'] . '' . 'News' . 'ru-RU'; // Новости $req = mysql_query('SELECT * FROM `news` ORDER BY `time` DESC LIMIT 15;'); if (mysql_num_rows($req)) { while ($res = mysql_fetch_assoc($req)) { echo '' . 'News: ' . $res['name'] . '' . '' . $set['homeurl'] . '/news/index.php' . '' . htmlspecialchars($res['avt']) . '' . '' . htmlspecialchars($res['text']) . '' . '' . date('r', $res['time']) . '' . ''; } } // Библиотека $req = mysql_query("select * from `lib` where `type`='bk' and `moder`='1' order by `time` desc LIMIT 15;"); if (mysql_num_rows($req)) { while ($res = mysql_fetch_array($req)) { echo '' . 'Library: ' . htmlspecialchars($res['name']) . '' . '' . $set['homeurl'] . '/library/index.php?id=' . $res['id'] . '' . '' . htmlspecialchars($res['avtor']) . '' . '' . htmlspecialchars($res['announce']) . '' . '' . date('r', $res['time']) . '' . ''; } } echo '';