Помощь - Поиск - Пользователи - Календарь
Полная версия: ????? ??????????? ????????? ??? ?????? {custom}
????? > ?????? > ?????? Files
3xwww
Snake
?????????? ??????????? ????? ???????????? ????????? ?????? ??? ?????? ???? {custom} ?? ??????? ?????? ? ??????? main.tpl
??? ??? ????? ?????????? ??? ?????? ??????????? ????? ?????? ?? ??????? ????????.
Snake
3xwww,
? ?????? ?????? ???? ?? ???????????.. ??????? ????? ??? ???
3xwww
????? ??? ???? ???????? ??????? ???? ?? ??????? ????? ??? ???????????? ???????? ????? ??? ??? ??????? ??????? ?? ????? ????????? ?????? ?? ????? ??? ???????? ????? ??????
??? ?? ??????? ?????? 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']);


}

?>

Snake
????????? ??????????? ?????? newfiles.php, ?????? ? ?????? ??????

AND category = '5'

??? 5 - ?????? ?????????.
3xwww
??????(Snake @ 10.7.2009, 8:02) *

????????? ??????????? ?????? newfiles.php, ?????? ? ?????? ??????

AND category = '5'

??? 5 - ?????? ?????????.

???????? ? ??? ??? ??? ??????? ???????? ??????? ??????????.
??? ????? ???????? ????? ??? ??????? ???????? ????????????
Это текстовая версия — только основной контент. Для просмотра полной версии этой страницы, пожалуйста, нажмите сюда.
(с) ИGРАМ.NET