45 |
$art = array(); |
$art = array(); |
46 |
list($art["id"], $art["title"], $art["lead"], $art["pic_url"], |
list($art["id"], $art["title"], $art["lead"], $art["pic_url"], |
47 |
$art["pic_alt"], $art["pic_pos"], $art["more"], |
$art["pic_alt"], $art["pic_pos"], $art["more"], |
48 |
$art["more_title"], $date, $art["au_pic"], |
$art["more_title"], $art["date"], $art["au_pic"], |
49 |
$art["au_alt"], $art["au_info"], $ord) = $row; |
$art["au_alt"], $art["au_info"], $ord) = $row; |
50 |
list($art["pic_w"], $art["pic_h"]) = PicSize($art["pic_url"]); |
list($art["pic_w"], $art["pic_h"]) = PicSize($art["pic_url"]); |
51 |
$art["more_new"] = strstr($art["more"], "://") ? true : false; |
$art["more_new"] = strstr($art["more"], "://") ? true : false; |
96 |
$tpl->assign("title_url_title", MyEscape(convert_html($art["more_title"]))); |
$tpl->assign("title_url_title", MyEscape(convert_html($art["more_title"]))); |
97 |
$tpl->assign("titlepic_width", $art["pic_w"]); |
$tpl->assign("titlepic_width", $art["pic_w"]); |
98 |
$tpl->assign("titlepic_height", $art["pic_h"]); |
$tpl->assign("titlepic_height", $art["pic_h"]); |
99 |
|
$tpl->assign("date", strftime("%d.%m.%Y.", strtotime($art["date"]))); |
100 |
include_once("author.php"); |
include_once("author.php"); |
101 |
$tpl->assign("AUTHOR", GetAuthor($art["au_pic"], |
$tpl->assign("AUTHOR", GetAuthor($art["au_pic"], |
102 |
$art["au_alt"], $art["au_info"], |
$art["au_alt"], $art["au_info"], |
109 |
$art["text"][$i]["exp"] = ParseNewline(convert_html( |
$art["text"][$i]["exp"] = ParseNewline(convert_html( |
110 |
MyEscape($art["text"][$i]["exp"]), false), true); |
MyEscape($art["text"][$i]["exp"]), false), true); |
111 |
if ($art["text"][$i]["hl"]) $art["text"][$i]["hl"] = GetHighlight($art["text"][$i]["hl"]); |
if ($art["text"][$i]["hl"]) $art["text"][$i]["hl"] = GetHighlight($art["text"][$i]["hl"]); |
112 |
|
if ($art["text"][$i]["level"]) $art["text"][$i]["level2"] = (($art["text"][$i]["level"] - 1) * 15) + 2; |
113 |
} |
} |
114 |
$tpl->assign("text", $art["text"]); |
$tpl->assign("text", $art["text"]); |
115 |
$tpl->assign("cat", $art["category"]); |
$tpl->assign("cat", $art["category"]); |