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"], |
39 |
MyEscape($art["more"]), $art["id"], $empty["category"], "top", |
MyEscape($art["more"]), MyEscape($art["more_title"]), |
40 |
$isEdit, false, false, false)); |
$art["id"], $empty["category"], "top", $isEdit, |
41 |
|
false, false, false)); |
42 |
} |
} |
43 |
|
$menu2 = array(); |
44 |
$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); |
45 |
$ed = ""; |
$ed = ""; |
46 |
if ($wn_edit && $ed_id <= 0) { |
if ($wn_edit && $ed_id <= 0) { |
75 |
"width" => MyEscape($art["pic_w"]), |
"width" => MyEscape($art["pic_w"]), |
76 |
"height" => MyEscape($art["pic_h"]), |
"height" => MyEscape($art["pic_h"]), |
77 |
"links" => GetLinks($art["read"] && $art["id"], |
"links" => GetLinks($art["read"] && $art["id"], |
78 |
MyEscape($art["more"]), $art["id"], |
MyEscape($art["more"]), MyEscape($art["more_title"]), |
79 |
$empty["category"], "wn", $isEdit, true, |
$art["id"], $empty["category"], "wn", $isEdit, true, |
80 |
($i > 0), ($i < count($arts) - 1)), |
($i > 0), ($i < count($arts) - 1)), |
81 |
"text" => $art["text"] |
"text" => $art["text"] |
82 |
)); |
)); |
83 |
|
array_push($menu2, array( |
84 |
|
"pre" => "wn-", |
85 |
|
"cat" => $empty["category"], |
86 |
|
"id" => $art["id"], |
87 |
|
"title" => MyEscape($art["title"]), |
88 |
|
"url" => MyEscape($art["more"]), |
89 |
|
"more" => MyEscape($art["read"]) |
90 |
|
)); |
91 |
} |
} |
92 |
} |
} |
93 |
$empty = array("category" => "p", "limit" => ($pn_edit ? 4 : 5), "offset" => 0, "npar" => 0); |
$empty = array("category" => "p", "limit" => ($pn_edit ? 4 : 5), "offset" => 0, "npar" => 0); |
124 |
"width" => MyEscape($art["pic_w"]), |
"width" => MyEscape($art["pic_w"]), |
125 |
"height" => MyEscape($art["pic_h"]), |
"height" => MyEscape($art["pic_h"]), |
126 |
"links" => GetLinks($art["read"] && $art["id"], |
"links" => GetLinks($art["read"] && $art["id"], |
127 |
MyEscape($art["more"]), $art["id"], |
MyEscape($art["more"]), MyEscape($art["more_title"]), |
128 |
$empty["category"], "pn", $isEdit, true, |
$art["id"], $empty["category"], "pn", $isEdit, true, |
129 |
($i > 0), ($i < count($arts) - 1)), |
($i > 0), ($i < count($arts) - 1)), |
130 |
"text" => MyEscape($art["text"]) |
"text" => MyEscape($art["text"]) |
131 |
)); |
)); |
132 |
|
array_push($menu2, array( |
133 |
|
"pre" => "pn-", |
134 |
|
"cat" => $empty["category"], |
135 |
|
"id" => $art["id"], |
136 |
|
"title" => MyEscape($art["title"]), |
137 |
|
"url" => MyEscape($art["more"]), |
138 |
|
"more" => MyEscape($art["read"]) |
139 |
|
)); |
140 |
} |
} |
141 |
} |
} |
142 |
$tpl->assign("wn", $wn); |
$tpl->assign("wn", $wn); |
144 |
$tpl->assign("top_edit", $top_edit); |
$tpl->assign("top_edit", $top_edit); |
145 |
$tpl->assign("wn_edit", $wn_edit); |
$tpl->assign("wn_edit", $wn_edit); |
146 |
$tpl->assign("pn_edit", $pn_edit); |
$tpl->assign("pn_edit", $pn_edit); |
147 |
|
$tpl->assign("MENU2", $menu2); |
148 |
} |
} |
149 |
$dbh->disconnect(); |
$dbh->disconnect(); |
150 |
?> |
?> |