summaryrefslogtreecommitdiffstats
path: root/public/opml/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/opml/index.php')
-rw-r--r--public/opml/index.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/public/opml/index.php b/public/opml/index.php
new file mode 100644
index 0000000..260057d
--- /dev/null
+++ b/public/opml/index.php
@@ -0,0 +1,10 @@
+<?php
+require_once '../../app/app.php';
+
+if (!file_exists(config_path('people.opml'))) {
+ header('HTTP/1.1 404 Not Found');
+ exit;
+}
+
+header('Content-Type: text/xml; charset=utf-8');
+readfile(config_path('people.opml'));