????? ??? ???? ???????? ??????? ???? ?? ??????? ????? ??? ???????????? ???????? ????? ??? ??? ??????? ??????? ?? ????? ????????? ?????? ?? ????? ??? ???????? ????? ??????
??? ?? ??????? ?????? DLE ??????? ???????? ? ????? ??????, ? ????????????? ? ?????? ??? ?????? ??????. ??? ????? ???????????? ??? ??????? ???? ?? ?? ??? ????? ? ??? ??????? ??? ????????? ??????
???
<?php
if(!defined('DATALIFEENGINE'))
{
die("??????? ?? ???????????? ??? ????????<br> ICQ-SUPPORT:");
}
$newsp = dle_cache("newsp", $config['skin']);
if (!$newsp) {
$db->query("SELECT id, title, date, alt_name, autor, short_story, category, flag FROM " . PREFIX . "_post WHERE approve='1' AND category = '5' ORDER BY date DESC LIMIT 0,3");
while ($row = $db->get_array()) {
$ln = $row['alt_name'];
$nid = $row['category'];
$t = $row['id'];
$title = "<a href='$nid/$t-$ln.html'><b>$row[title]</b></a><br>";
if (strlen($row['short_story']) > 0)
$text = substr ($row['short_story'], 0, 350)."... <a href='/$nid/$t-$ln.html'>????????? »<a/>";
$text = preg_replace ("'\<img src=(.*?)\>'si", "<div align='left'><img src=$1 width=65 height=49> $title</div>", $text);
$text = preg_replace ("'\<img align=(.*?) src=(.*?)\>'si", "<div class='brd' align='left'><a href=$2><img src=$2 width=150 height=150></a> $title</div>", $text);
$el1++;
$link = "<br>".$text."";
$newsp .= "".$link."<br>";
}
$db->free();
create_cache ("newsp", $newsp, $config['skin']);
}
?>