|
|
@ -5,7 +5,6 @@
|
|
|
|
require_once "functions.php";
|
|
|
|
require_once "functions.php";
|
|
|
|
require_once "magpierss/rss_fetch.inc";
|
|
|
|
require_once "magpierss/rss_fetch.inc";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$link = pg_connect(DB_CONN);
|
|
|
|
$link = pg_connect(DB_CONN);
|
|
|
|
|
|
|
|
|
|
|
|
pg_query("set client_encoding = 'utf-8'");
|
|
|
|
pg_query("set client_encoding = 'utf-8'");
|
|
|
@ -340,6 +339,9 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($subop == "remove") {
|
|
|
|
if ($subop == "remove") {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!WEB_DEMO_MODE) {
|
|
|
|
|
|
|
|
|
|
|
|
$ids = split(",", $_GET["ids"]);
|
|
|
|
$ids = split(",", $_GET["ids"]);
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($ids as $id) {
|
|
|
|
foreach ($ids as $id) {
|
|
|
@ -347,11 +349,14 @@
|
|
|
|
pg_query("DELETE FROM ttrss_entries WHERE feed_id = '$id'");
|
|
|
|
pg_query("DELETE FROM ttrss_entries WHERE feed_id = '$id'");
|
|
|
|
pg_query("DELETE FROM ttrss_feeds WHERE id = '$id'");
|
|
|
|
pg_query("DELETE FROM ttrss_feeds WHERE id = '$id'");
|
|
|
|
pg_query("COMMIT");
|
|
|
|
pg_query("COMMIT");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($subop == "add") {
|
|
|
|
if ($subop == "add") {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!WEB_DEMO_MODE) {
|
|
|
|
|
|
|
|
|
|
|
|
$feed_link = pg_escape_string($_GET["link"]);
|
|
|
|
$feed_link = pg_escape_string($_GET["link"]);
|
|
|
|
|
|
|
|
|
|
|
|
$result = pg_query(
|
|
|
|
$result = pg_query(
|
|
|
@ -364,7 +369,7 @@
|
|
|
|
if ($feed_id) {
|
|
|
|
if ($feed_id) {
|
|
|
|
update_rss_feed($link, $feed_link, $feed_id);
|
|
|
|
update_rss_feed($link, $feed_link, $feed_id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$result = pg_query("SELECT * FROM ttrss_feeds ORDER by title");
|
|
|
|
$result = pg_query("SELECT * FROM ttrss_feeds ORDER by title");
|
|
|
|