summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-11 05:55:37 +0100
committerAndrew Dolgov <[email protected]>2005-12-11 05:55:37 +0100
commit5ddadb4c1eb2edcca5edc2eba3bb4c0907793c74 (patch)
treef42aa767cedb80376f61b6147a93f2213a743c0f /backend.php
parent85af98a6b72cb27b36e4260704f8d81895f7ada6 (diff)
implement save in feed_cat editor (closes #6)
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 4f4ac12e7..6d1f43681 100644
--- a/backend.php
+++ b/backend.php
@@ -1415,6 +1415,14 @@
update_interval = '$upd_intl',
purge_interval = '$purge_intl'
WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]);
+ }
+
+ if ($subop == "saveCat") {
+ $cat_title = db_escape_string($_GET["title"]);
+ $cat_id = db_escape_string($_GET["id"]);
+
+ $result = db_query($link, "UPDATE ttrss_feed_categories SET
+ title = '$cat_title' WHERE id = '$cat_id' AND owner_uid = ".$_SESSION["uid"]);
}