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) { |
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"]) |