new global option: ENABLE_FEED_BROWSER

master
Andrew Dolgov 19 years ago
parent dbf4a4cf05
commit e2f728be03

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

@ -65,5 +65,8 @@
define('MAIL_FROM', 'TT-RSS Daemon <noreply@ttrss.your-shiny-host.org>'); define('MAIL_FROM', 'TT-RSS Daemon <noreply@ttrss.your-shiny-host.org>');
// Pretty obvious, I suppose. // Pretty obvious, I suppose.
define('ENABLE_FEED_BROWSER', true);
// Enable or disable local feed browser
// vim:ft=php // vim:ft=php
?> ?>

@ -87,8 +87,10 @@
onclick="selectTab('genConfig')"> onclick="selectTab('genConfig')">
<input id="feedConfigTab" class="prefsTab" type="submit" value="Feed Configuration" <input id="feedConfigTab" class="prefsTab" type="submit" value="Feed Configuration"
onclick="selectTab('feedConfig')"> onclick="selectTab('feedConfig')">
<? if (ENABLE_FEED_BROWSER) { ?>
<input id="feedBrowserTab" class="prefsTab" type="submit" value="Feed Browser" <input id="feedBrowserTab" class="prefsTab" type="submit" value="Feed Browser"
onclick="selectTab('feedBrowser')"> onclick="selectTab('feedBrowser')">
<? } ?>
<input id="filterConfigTab" class="prefsTab" type="submit" value="Content Filtering" <input id="filterConfigTab" class="prefsTab" type="submit" value="Content Filtering"
onclick="selectTab('filterConfig')"> onclick="selectTab('filterConfig')">
<? if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) { ?> <? if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) { ?>

Loading…
Cancel
Save