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"], |
39 |
MyEscape($art["more"]), $art["id"], $empty["category"], "top", |
MyEscape($art["more"]), $art["id"], $empty["category"], "top", |
40 |
isEdit(), false, false, false)); |
$isEdit, false, false, false)); |
41 |
} |
} |
42 |
$empty = array("category" => "w", "limit" => ($wn_edit ? 4 : 5), "offset" => 0, "npar" => 0); |
$empty = array("category" => "w", "limit" => ($wn_edit ? 4 : 5), "offset" => 0, "npar" => 0); |
43 |
$ed = ""; |
$ed = ""; |
74 |
"height" => MyEscape($art["pic_h"]), |
"height" => MyEscape($art["pic_h"]), |
75 |
"links" => GetLinks($art["read"] && $art["id"], |
"links" => GetLinks($art["read"] && $art["id"], |
76 |
MyEscape($art["more"]), $art["id"], |
MyEscape($art["more"]), $art["id"], |
77 |
$empty["category"], "wn", isEdit(), true, |
$empty["category"], "wn", $isEdit, true, |
78 |
($i > 0), ($i < count($arts) - 1)), |
($i > 0), ($i < count($arts) - 1)), |
79 |
"text" => $art["text"] |
"text" => $art["text"] |
80 |
)); |
)); |
115 |
"height" => MyEscape($art["pic_h"]), |
"height" => MyEscape($art["pic_h"]), |
116 |
"links" => GetLinks($art["read"] && $art["id"], |
"links" => GetLinks($art["read"] && $art["id"], |
117 |
MyEscape($art["more"]), $art["id"], |
MyEscape($art["more"]), $art["id"], |
118 |
$empty["category"], "pn", isEdit(), true, |
$empty["category"], "pn", $isEdit, true, |
119 |
($i > 0), ($i < count($arts) - 1)), |
($i > 0), ($i < count($arts) - 1)), |
120 |
"text" => MyEscape($art["text"]) |
"text" => MyEscape($art["text"]) |
121 |
)); |
)); |
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); |
129 |
$tpl->assign("isedit", isEdit()); |
$tpl->assign("isedit", $isEdit); |
130 |
|
$tpl->assign("ismed", $isMed); |
131 |
} |
} |
132 |
$dbh->disconnect(); |
$dbh->disconnect(); |
133 |
?> |
?> |