print "</li></ul>";
}
- if (get_pref($link, 'ENABLE_LABELS')) {
+ if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) {
$result = db_query($link, "SELECT id,sql_exp,description FROM
ttrss_labels WHERE owner_uid = '$owner_uid' ORDER by description");
if ($op == "pref-labels") {
+ if (!GLOBAL_ENABLE_LABELS) {
+ return;
+ }
+
$subop = $_GET["subop"];
if ($subop == "test") {
// makes UI more responsive, but eats server memory.
// If you experience weird feedlist refresh bugs, disable this option.
+ define('GLOBAL_ENABLE_LABELS', true);
+ // Labels are a security risk, so this option can globally disable them for all users.
+
?>
onclick="selectTab('feedConfig')">
<input id="filterConfigTab" class="prefsTab" type="submit" value="Content Filtering"
onclick="selectTab('filterConfig')">
- <? if (get_pref($link, 'ENABLE_LABELS')) { ?>
+ <? if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) { ?>
<input id="labelConfigTab" class="prefsTab" type="submit" value="Label Editor"
onclick="selectTab('labelConfig')">
<? } ?>