|
|
|
@ -703,28 +703,19 @@
|
|
|
|
|
|
|
|
|
|
if ($subop == "remove") {
|
|
|
|
|
|
|
|
|
|
if (!WEB_DEMO_MODE) {
|
|
|
|
|
|
|
|
|
|
$ids = split(",", db_escape_string($_GET["ids"]));
|
|
|
|
|
|
|
|
|
|
foreach ($ids as $id) {
|
|
|
|
|
|
|
|
|
|
if ($id > 0) {
|
|
|
|
|
$ids = split(",", db_escape_string($_GET["ids"]));
|
|
|
|
|
|
|
|
|
|
db_query($link, "DELETE FROM ttrss_feeds
|
|
|
|
|
WHERE id = '$id' AND owner_uid = " . $_SESSION["uid"]);
|
|
|
|
|
foreach ($ids as $id) {
|
|
|
|
|
|
|
|
|
|
$icons_dir = ICONS_DIR;
|
|
|
|
|
if ($id > 0) {
|
|
|
|
|
|
|
|
|
|
if (file_exists($icons_dir . "/$id.ico")) {
|
|
|
|
|
unlink($icons_dir . "/$id.ico");
|
|
|
|
|
}
|
|
|
|
|
} else if ($id < -10) {
|
|
|
|
|
db_query($link, "DELETE FROM ttrss_feeds
|
|
|
|
|
WHERE id = '$id' AND owner_uid = " . $_SESSION["uid"]);
|
|
|
|
|
|
|
|
|
|
$label_id = -$id - 11;
|
|
|
|
|
$icons_dir = ICONS_DIR;
|
|
|
|
|
|
|
|
|
|
db_query($link, "DELETE FROM ttrss_labels
|
|
|
|
|
WHERE id = '$label_id' AND owner_uid = " . $_SESSION["uid"]);
|
|
|
|
|
if (file_exists($icons_dir . "/$id.ico")) {
|
|
|
|
|
unlink($icons_dir . "/$id.ico");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|