1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-30 05:57:10 +00:00

new global option: ENABLE_FEED_BROWSER

This commit is contained in:
Andrew Dolgov
2006-01-12 14:50:53 +01:00
parent dbf4a4cf05
commit e2f728be03
3 changed files with 22 additions and 4 deletions

View File

@@ -1567,6 +1567,11 @@
}
if ($subop == "browse") {
if (!ENABLE_FEED_BROWSER) {
print "Feed browser is administratively disabled.";
return;
}
print "<div class=\"infoBoxContents\">";
@@ -2057,10 +2062,13 @@
onchange=\"javascript:addFeed()\"
size=\"40\">
<input type=\"submit\" class=\"button\"
onclick=\"javascript:addFeed()\" value=\"Add feed\">
&nbsp;
(<a href='javascript:browseFeeds()'>Top 50</a>)
</td><td align='right'>
onclick=\"javascript:addFeed()\" value=\"Add feed\">";
if (ENABLE_FEED_BROWSER) {
print "&nbsp;(<a href='javascript:browseFeeds()'>Top 50</a>)";
}
print "</td><td align='right'>
<input id=\"feed_search\" size=\"20\"
onchange=\"javascript:updateFeedList()\"
value=\"$feed_search\">
@@ -3984,6 +3992,11 @@
if ($op == "pref-feed-browser") {
if (!ENABLE_FEED_BROWSER) {
print "Feed browser is administratively disabled.";
return;
}
$subop = $_REQUEST["subop"];
if ($subop == "details") {