From: Andrew Dolgov Date: Thu, 12 Jan 2006 13:50:53 +0000 (+0100) Subject: new global option: ENABLE_FEED_BROWSER X-Git-Tag: schema_freeze_for_1.1.2~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e2f728be035cca5b1046ec64405666d789f04efd;p=tt-rss.git new global option: ENABLE_FEED_BROWSER --- diff --git a/backend.php b/backend.php index 2f16ed81..f70bc8e9 100644 --- a/backend.php +++ b/backend.php @@ -1567,6 +1567,11 @@ } if ($subop == "browse") { + + if (!ENABLE_FEED_BROWSER) { + print "Feed browser is administratively disabled."; + return; + } print "
"; @@ -2057,10 +2062,13 @@ onchange=\"javascript:addFeed()\" size=\"40\"> -   - (Top 50) - + onclick=\"javascript:addFeed()\" value=\"Add feed\">"; + + if (ENABLE_FEED_BROWSER) { + print " (Top 50)"; + } + + print " @@ -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") { diff --git a/config.php-dist b/config.php-dist index 5935dd12..95086be7 100644 --- a/config.php-dist +++ b/config.php-dist @@ -64,6 +64,9 @@ define('MAIL_FROM', 'TT-RSS Daemon '); // Pretty obvious, I suppose. + + define('ENABLE_FEED_BROWSER', true); + // Enable or disable local feed browser // vim:ft=php ?> diff --git a/prefs.php b/prefs.php index c2492f1a..71be4033 100644 --- a/prefs.php +++ b/prefs.php @@ -87,8 +87,10 @@ onclick="selectTab('genConfig')"> + +