}
if ($subop == "browse") {
+
+ if (!ENABLE_FEED_BROWSER) {
+ print "Feed browser is administratively disabled.";
+ return;
+ }
print "<div class=\"infoBoxContents\">";
onchange=\"javascript:addFeed()\"
size=\"40\">
<input type=\"submit\" class=\"button\"
- onclick=\"javascript:addFeed()\" value=\"Add feed\">
-
- (<a href='javascript:browseFeeds()'>Top 50</a>)
- </td><td align='right'>
+ onclick=\"javascript:addFeed()\" value=\"Add feed\">";
+
+ if (ENABLE_FEED_BROWSER) {
+ print " (<a href='javascript:browseFeeds()'>Top 50</a>)";
+ }
+
+ print "</td><td align='right'>
<input id=\"feed_search\" size=\"20\"
onchange=\"javascript:updateFeedList()\"
value=\"$feed_search\">
if ($op == "pref-feed-browser") {
+ if (!ENABLE_FEED_BROWSER) {
+ print "Feed browser is administratively disabled.";
+ return;
+ }
+
$subop = $_REQUEST["subop"];
if ($subop == "details") {
define('MAIL_FROM', 'TT-RSS Daemon <noreply@ttrss.your-shiny-host.org>');
// Pretty obvious, I suppose.
+
+ define('ENABLE_FEED_BROWSER', true);
+ // Enable or disable local feed browser
// vim:ft=php
?>
onclick="selectTab('genConfig')">
<input id="feedConfigTab" class="prefsTab" type="submit" value="Feed Configuration"
onclick="selectTab('feedConfig')">
+ <? if (ENABLE_FEED_BROWSER) { ?>
<input id="feedBrowserTab" class="prefsTab" type="submit" value="Feed Browser"
onclick="selectTab('feedBrowser')">
+ <? } ?>
<input id="filterConfigTab" class="prefsTab" type="submit" value="Content Filtering"
onclick="selectTab('filterConfig')">
<? if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) { ?>