summaryrefslogtreecommitdiff
path: root/classes/handler/public.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-16 12:27:46 +0300
committerAndrew Dolgov <[email protected]>2021-03-16 12:27:46 +0300
commit44b274b6d422fd647bcffade2afba6a7e62f2786 (patch)
treeb07f5d30183885188c1e3049e92f4c2e7f187864 /classes/handler/public.php
parentc134aa387dbc4e7d7c175c7a42e0d5939e0cf065 (diff)
remove published opml (use CLI instead)
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-xclasses/handler/public.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index d5319c306..6a67827db 100755
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -753,27 +753,6 @@ class Handler_Public extends Handler {
<?php
}
- function publishOpml() {
- $key = clean($_REQUEST["key"]);
- $pdo = Db::pdo();
-
- $sth = $pdo->prepare( "SELECT owner_uid
- FROM ttrss_access_keys WHERE
- access_key = ? AND feed_id = 'OPML:Publish'");
- $sth->execute([$key]);
-
- if ($row = $sth->fetch()) {
- $owner_uid = $row['owner_uid'];
-
- $opml = new OPML($_REQUEST);
- $opml->opml_export("published.opml", $owner_uid, true, false);
-
- } else {
- header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
- echo "File not found.";
- }
- }
-
function cached() {
list ($cache_dir, $filename) = explode("/", $_GET["file"], 2);