9 |
if ($del_id) { |
if ($del_id) { |
10 |
include_once("inc/newsDelete.php"); |
include_once("inc/newsDelete.php"); |
11 |
newsDelete($del_id); |
newsDelete($del_id); |
12 |
unset($top_edit, $wn_edit, $pn_edit); |
unset($top_edit); |
13 |
} |
} |
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)"); |
59 |
"links" => GetLinks($art["read"] && $art["id"], |
"links" => GetLinks($art["read"] && $art["id"], |
60 |
/* 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"] : "", |
61 |
MyEscape($art["more_title"]), $art["id"], $empty["category"], "top", |
MyEscape($art["more_title"]), $art["id"], $empty["category"], "top", |
62 |
$isEdit, true, ($i > 0), ($i < count($arts) - 1)) |
$isEdit, true, ($i > 0), ($i < count($arts) - 1)), |
63 |
|
"read" => $art["read"] || ($art["more"] && !strstr($art["more"], "?")) ? true : false |
64 |
)); |
)); |
65 |
} |
} |
66 |
} |
} |