14 |
if ($down_id) $dbh->dbh_do("UPDATE news SET ord = ord + 1 WHERE (news_id = $down_id)"); |
if ($down_id) $dbh->dbh_do("UPDATE news SET ord = ord + 1 WHERE (news_id = $down_id)"); |
15 |
if ($up_id) $dbh->dbh_do("UPDATE news SET ord = ord - 1 WHERE (news_id = $up_id)"); |
if ($up_id) $dbh->dbh_do("UPDATE news SET ord = ord - 1 WHERE (news_id = $up_id)"); |
16 |
} |
} |
17 |
$cat = "i"; |
$cat = "i"; $acat = "z"; |
18 |
if (!$offset) $offset = 0; |
if (!$offset) $offset = 0; |
19 |
$empty = array("category" => $cat, "limit" => 11, "offset" => $offset, "npar" => 0); |
$empty = array("category" => $cat, "limit" => 11, "offset" => $offset, "npar" => 0); |
20 |
if ($top_edit && $ed_id <= 0 && $isEdit) { |
if ($top_edit && $ed_id <= 0 && $isEdit) { |
42 |
include_once("inc/author.php"); |
include_once("inc/author.php"); |
43 |
array_push($a2, array( |
array_push($a2, array( |
44 |
"id" => $art["id"], |
"id" => $art["id"], |
45 |
"title" => MyEscape($art["title"]), |
"title" => MyEscape($art["title"], false), |
46 |
"lead" => MyEscape($art["lead"]), |
"lead" => MyEscape($art["lead"], false), |
47 |
"pgfs" => (count($art["text"]) > 0) ? true : false, |
"pgfs" => (count($art["text"]) > 0) ? true : false, |
48 |
"titlepic_url" => MyEscape($art["pic_url"]), |
"titlepic_url" => MyEscape($art["pic_url"]), |
49 |
"titlepic_alt" => MyEscape($art["pic_alt"]), |
"titlepic_alt" => MyEscape($art["pic_alt"]), |
55 |
/* MyEscape($art["more"]) */ ((count($art["text"]) > 0 || strstr("?", $art["more"]) == 0) && $art["id"]) ? $art["more"] : "", |
/* MyEscape($art["more"]) */ ((count($art["text"]) > 0 || strstr("?", $art["more"]) == 0) && $art["id"]) ? $art["more"] : "", |
56 |
MyEscape($art["more_title"]), $art["id"], $empty["category"], "top", |
MyEscape($art["more_title"]), $art["id"], $empty["category"], "top", |
57 |
$isEdit, true, ($i > 0), ($i < count($arts) - 1)), |
$isEdit, true, ($i > 0), ($i < count($arts) - 1)), |
58 |
"read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? true : false, |
"read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? $art["read"] : "", |
59 |
"AUTHOR" => GetAuthor($art["au_pic"], |
"AUTHOR" => GetAuthor($art["au_pic"], |
60 |
$art["au_alt"], $art["au_info"], |
$art["au_alt"], $art["au_info"], |
61 |
$art["au_w"], $art["au_h"]) |
$art["au_w"], $art["au_h"]) |