32 |
$tpl->assign("top_titlepic_width", $art["pic_w"]); |
$tpl->assign("top_titlepic_width", $art["pic_w"]); |
33 |
$tpl->assign("top_titlepic_height", $art["pic_h"]); |
$tpl->assign("top_titlepic_height", $art["pic_h"]); |
34 |
for ($j = 0; $j < count($art["text"]); $j++) |
for ($j = 0; $j < count($art["text"]); $j++) |
35 |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"])); |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"]), true); |
36 |
$tpl->assign("top_text", $art["text"]); |
$tpl->assign("top_text", $art["text"]); |
37 |
include_once("inc/links.php"); |
include_once("inc/links.php"); |
38 |
$tpl->assign("top_links", GetLinks($art["read"] && $art["id"], |
$tpl->assign("top_links", GetLinks($art["read"] && $art["id"], |
61 |
else { |
else { |
62 |
if ($ed && $ed["category"] == "w") $art = $ed; |
if ($ed && $ed["category"] == "w") $art = $ed; |
63 |
for ($j = 0; $j < count($art["text"]); $j++) |
for ($j = 0; $j < count($art["text"]); $j++) |
64 |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"])); |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"]), true); |
65 |
include_once("inc/links.php"); |
include_once("inc/links.php"); |
66 |
array_push($wn, array( |
array_push($wn, array( |
67 |
"id" => $art["id"], |
"id" => $art["id"], |
102 |
else { |
else { |
103 |
if ($ed && $ed["category"] == "p") $art = $ed; |
if ($ed && $ed["category"] == "p") $art = $ed; |
104 |
for ($j = 0; $j < count($art["text"]); $j++) |
for ($j = 0; $j < count($art["text"]); $j++) |
105 |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"])); |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"]), true); |
106 |
include_once("inc/links.php"); |
include_once("inc/links.php"); |
107 |
array_push($pn, array( |
array_push($pn, array( |
108 |
"id" => $art["id"], |
"id" => $art["id"], |
126 |
$tpl->assign("top_edit", $top_edit); |
$tpl->assign("top_edit", $top_edit); |
127 |
$tpl->assign("wn_edit", $wn_edit); |
$tpl->assign("wn_edit", $wn_edit); |
128 |
$tpl->assign("pn_edit", $pn_edit); |
$tpl->assign("pn_edit", $pn_edit); |
|
$tpl->assign("isedit", $isEdit); |
|
|
$tpl->assign("ismed", $isMed); |
|
129 |
} |
} |
130 |
$dbh->disconnect(); |
$dbh->disconnect(); |
131 |
?> |
?> |