1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

experimental split of public calls into public.php (refs #389)

This commit is contained in:
Andrew Dolgov
2011-11-15 11:40:57 +04:00
parent 507426ef6e
commit e0d91d846d
8 changed files with 304 additions and 219 deletions

View File

@@ -215,7 +215,7 @@
if (PUBSUBHUBBUB_HUB) {
$rss_link = get_self_url_prefix() .
"/backend.php?op=rss&id=-2&key=" .
"/public.php?op=rss&id=-2&key=" .
get_feed_access_key($link, -2, false);
$p = new Publisher(PUBSUBHUBBUB_HUB);

View File

@@ -1094,7 +1094,7 @@
print __("You can share this article by the following unique URL:");
$url_path = get_self_url_prefix();
$url_path .= "/backend.php?op=share&key=$uuid";
$url_path .= "/public.php?op=share&key=$uuid";
print "<div class=\"tagCloudContainer\">";
print "<a id='pub_opml_url' href='$url_path' target='_blank'>$url_path</a>";

View File

@@ -1520,7 +1520,7 @@
print "<p>".__('Published articles are exported as a public RSS feed and can be subscribed by anyone who knows the URL specified below.')."</p>";
$rss_url = '-2::' . htmlspecialchars(get_self_url_prefix() .
"/backend.php?op=rss&id=-2&view-mode=all_articles");;
"/public.php?op=rss&id=-2&view-mode=all_articles");;
print "<button dojoType=\"dijit.form.Button\" onclick=\"return displayDlg('generatedFeed', '$rss_url')\">".
__('Display URL')."</button> ";