38 |
for ($j = 0; $j < count($art["text"]); $j++) |
for ($j = 0; $j < count($art["text"]); $j++) |
39 |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"]), true); |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"]), true); |
40 |
$read = $art["read"]; |
$read = $art["read"]; |
41 |
if ($read && count($art["text"]) <= 0) $read = ($art["more"] && !strstr($art["more"], "?")) ? $read : ""; |
if ($read && count($art["text"]) <= 0) $read = (($art["more"] && !strstr($art["more"], "?")) || $art["related"]) ? $read : ""; |
42 |
if ($read && !$art["id"]) $read = ""; |
if ($read && !$art["id"]) $read = ""; |
43 |
|
$more = ($art["more"] && strstr($art["more"], "?") == 0) ? $art["more"] : ""; |
44 |
array_push($a2, array( |
array_push($a2, array( |
45 |
"id" => $art["id"], |
"id" => $art["id"], |
46 |
"title" => MyEscape($art["title"]), |
"title" => MyEscape($art["title"]), |
52 |
"titlepic_width" => $art["pic_w"], |
"titlepic_width" => $art["pic_w"], |
53 |
"titlepic_height" => $art["pic_h"], |
"titlepic_height" => $art["pic_h"], |
54 |
"text" => $art["text"], |
"text" => $art["text"], |
55 |
"links" => GetLinks($read, ($art["more"] && strstr($art["more"], "?") == 0) ? $art["more"] : "", |
"links" => GetLinks($read, $more, MyEscape($art["more_title"]), $art["id"], $empty["category"], "top2", |
|
MyEscape($art["more_title"]), $art["id"], $empty["category"], "top2", |
|
56 |
true, ($i > 0), ($i < count($arts) - 1), $art["show"], $art["related"]), |
true, ($i > 0), ($i < count($arts) - 1), $art["show"], $art["related"]), |
57 |
"read" => $read, |
"read" => $read, |
58 |
|
"more" => $more, |
59 |
|
"more_title" => $art["more_title"], |
60 |
"AUTHOR" => GetAuthor($art["au_pic"], $art["au_alt"], $art["au_info"], $art["au_w"], $art["au_h"], $art["au_cv"]) |
"AUTHOR" => GetAuthor($art["au_pic"], $art["au_alt"], $art["au_info"], $art["au_w"], $art["au_h"], $art["au_cv"]) |
61 |
)); |
)); |
62 |
} |
} |
85 |
for ($j = 0; $j < count($art["text"]); $j++) |
for ($j = 0; $j < count($art["text"]); $j++) |
86 |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"]), true); |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"]), true); |
87 |
$read = $art["read"]; |
$read = $art["read"]; |
88 |
if ($read && count($art["text"]) <= 0) $read = ($art["more"] && !strstr($art["more"], "?")) ? $read : ""; |
if ($read && count($art["text"]) <= 0) $read = (($art["more"] && !strstr($art["more"], "?")) || $art["related"]) ? $read : ""; |
89 |
if ($read && !$art["id"]) $read = ""; |
if ($read && !$art["id"]) $read = ""; |
90 |
|
$more = ($art["more"] && strstr($art["more"], "?") == 0) ? $art["more"] : ""; |
91 |
array_push($a2, array( |
array_push($a2, array( |
92 |
"id" => $art["id"], |
"id" => $art["id"], |
93 |
"title" => MyEscape($art["title"]), |
"title" => MyEscape($art["title"]), |
99 |
"titlepic_width" => $art["pic_w"], |
"titlepic_width" => $art["pic_w"], |
100 |
"titlepic_height" => $art["pic_h"], |
"titlepic_height" => $art["pic_h"], |
101 |
"text" => $art["text"], |
"text" => $art["text"], |
102 |
"links" => GetLinks($read, ($art["more"] && strstr($art["more"], "?") == 0) ? $art["more"] : "", |
"links" => GetLinks($read, $more, MyEscape($art["more_title"]), $art["id"], $empty["category"], "top", |
|
MyEscape($art["more_title"]), $art["id"], $empty["category"], "top", |
|
103 |
true, ($i > 0), ($i < count($arts) - 1), $art["show"], $art["related"]), |
true, ($i > 0), ($i < count($arts) - 1), $art["show"], $art["related"]), |
104 |
"read" => $read, |
"read" => $read, |
105 |
|
"more" => $more, |
106 |
|
"more_title" => $art["more_title"], |
107 |
"AUTHOR" => GetAuthor($art["au_pic"], $art["au_alt"], $art["au_info"], $art["au_w"], $art["au_h"], $art["au_cv"]) |
"AUTHOR" => GetAuthor($art["au_pic"], $art["au_alt"], $art["au_info"], $art["au_w"], $art["au_h"], $art["au_cv"]) |
108 |
)); |
)); |
109 |
} |
} |
136 |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"]), true); |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"]), true); |
137 |
list($art["pic_w"], $art["pic_h"]) = PicResize($art["pic_w"], $art["pic_h"]); |
list($art["pic_w"], $art["pic_h"]) = PicResize($art["pic_w"], $art["pic_h"]); |
138 |
$read = $art["read"]; |
$read = $art["read"]; |
139 |
if ($read && count($art["text"]) <= 0) $read = ($art["more"] && !strstr($art["more"], "?")) ? $read : ""; |
if ($read && count($art["text"]) <= 0) $read = (($art["more"] && !strstr($art["more"], "?")) || $art["related"]) ? $read : ""; |
140 |
if ($read && !$art["id"]) $read = ""; |
if ($read && !$art["id"]) $read = ""; |
141 |
|
$more = ($art["more"] && strstr($art["more"], "?") == 0) ? $art["more"] : ""; |
142 |
array_push($wn, array( |
array_push($wn, array( |
143 |
"id" => $art["id"], |
"id" => $art["id"], |
144 |
"title" => MyEscape($art["title"]), |
"title" => MyEscape($art["title"]), |
149 |
"pos" => MyEscape($art["pic_pos"]), |
"pos" => MyEscape($art["pic_pos"]), |
150 |
"width" => $art["pic_w"], |
"width" => $art["pic_w"], |
151 |
"height" => $art["pic_h"], |
"height" => $art["pic_h"], |
152 |
"links" => GetLinks($read, ($art["more"] && strstr($art["more"], "?") == 0) ? $art["more"] : "", |
"links" => GetLinks($read, $more, MyEscape($art["more_title"]), $art["id"], $empty["category"], "wn", true, |
|
MyEscape($art["more_title"]), $art["id"], $empty["category"], "wn", true, |
|
153 |
($i > 0), ($i < count($arts) - 1), $art["show"], $art["related"]), |
($i > 0), ($i < count($arts) - 1), $art["show"], $art["related"]), |
154 |
"read" => $read, |
"read" => $read, |
155 |
|
"more" => $more, |
156 |
|
"more_title" => $art["more_title"], |
157 |
"text" => $art["text"] |
"text" => $art["text"] |
158 |
)); |
)); |
159 |
array_push($tmp2, array( |
array_push($tmp2, array( |
195 |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"]), true); |
$art["text"][$j]["text"] = ParseNewline(MyEscape($art["text"][$j]["text"]), true); |
196 |
list($art["pic_w"], $art["pic_h"]) = PicResize($art["pic_w"], $art["pic_h"]); |
list($art["pic_w"], $art["pic_h"]) = PicResize($art["pic_w"], $art["pic_h"]); |
197 |
$read = $art["read"]; |
$read = $art["read"]; |
198 |
if ($read && count($art["text"]) <= 0) $read = ($art["more"] && !strstr($art["more"], "?")) ? $read : ""; |
if ($read && count($art["text"]) <= 0) $read = (($art["more"] && !strstr($art["more"], "?")) || $art["related"]) ? $read : ""; |
199 |
if ($read && !$art["id"]) $read = ""; |
if ($read && !$art["id"]) $read = ""; |
200 |
|
$more = ($art["more"] && strstr($art["more"], "?") == 0) ? $art["more"] : ""; |
201 |
array_push($pn, array( |
array_push($pn, array( |
202 |
"id" => $art["id"], |
"id" => $art["id"], |
203 |
"title" => MyEscape($art["title"]), |
"title" => MyEscape($art["title"]), |
208 |
"pos" => MyEscape($art["pic_pos"]), |
"pos" => MyEscape($art["pic_pos"]), |
209 |
"width" => MyEscape($art["pic_w"]), |
"width" => MyEscape($art["pic_w"]), |
210 |
"height" => MyEscape($art["pic_h"]), |
"height" => MyEscape($art["pic_h"]), |
211 |
"links" => GetLinks($read, ($art["more"] && strstr($art["more"], "?") == 0) ? $art["more"] : "", |
"links" => GetLinks($read, $more, MyEscape($art["more_title"]), $art["id"], $empty["category"], "pn", true, |
|
MyEscape($art["more_title"]), $art["id"], $empty["category"], "pn", true, |
|
212 |
($i > 0), ($i < count($arts) - 1), $art["show"], $art["related"]), |
($i > 0), ($i < count($arts) - 1), $art["show"], $art["related"]), |
213 |
"read" => $read, |
"read" => $read, |
214 |
|
"more" => $more, |
215 |
|
"more_title" => $art["more_title"], |
216 |
"text" => MyEscape($art["text"]) |
"text" => MyEscape($art["text"]) |
217 |
)); |
)); |
218 |
array_push($tmp2, array( |
array_push($tmp2, array( |