diff options
author | Andrew Dolgov <[email protected]> | 2010-11-08 14:51:58 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-08 14:51:58 +0300 |
commit | 8d86f15f40c45592f189614938e7ec88dadc0bb5 (patch) | |
tree | d83cec35903c2f43e1926e7247747c46c863cb51 /modules/backend-rpc.php | |
parent | aa1c2aa4f9eecdad2da212c731573b4aa1604dd0 (diff) |
prefs: add button to clear all generated URLs
Diffstat (limited to 'modules/backend-rpc.php')
-rw-r--r-- | modules/backend-rpc.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 1bf41d299..053cd47df 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -1120,6 +1120,16 @@ return; } + if ($subop == "clearKeys") { + + db_query($link, "DELETE FROM ttrss_access_keys WHERE + owner_uid = " . $_SESSION["uid"]); + + print "<rpc-reply><message>OK</message></rpc-reply>"; + + return; + } + print "<rpc-reply><error>Unknown method: $subop</error></rpc-reply>"; } ?> |