/* Purge intl */
+ if (FORCE_ARTICLE_PURGE == 0) {
$purge_interval = $row["purge_interval"];
print "<hr/>";
print_select_hash("purge_interval", $purge_interval, $purge_intervals,
'dojoType="dijit.form.Select" ' .
((FORCE_ARTICLE_PURGE == 0) ? "" : 'disabled="1"'));
+ }
print "</div>";
$digest_options = array("DIGEST_ENABLE", "DIGEST_CATCHUP", "DIGEST_PREFERRED_TIME");
+ $purge_options = array("PURGE_UNREAD_ARTICLES", "PURGE_OLD_DAYS");
+
$_SESSION["prefs_op_result"] = "";
print "<div dojoType=\"dijit.layout.AccordionContainer\" region=\"center\">";
}
/* Hide options from the user that are disabled in config.php. */
+ if (FORCE_ARTICLE_PURGE && in_array($pref_name, $purge_options))
+ continue;
if (DIGEST_SUBJECT === false && in_array($pref_name, $digest_options))
continue;
$checked = ($value == "true") ? "checked=\"checked\"" : "";
- if ($pref_name == "PURGE_UNREAD_ARTICLES" && FORCE_ARTICLE_PURGE != 0) {
- $disabled = "disabled=\"1\"";
- $checked = "checked=\"checked\"";
- } else {
- $disabled = "";
- }
-
- print "<input type='checkbox' name='$pref_name' $checked $disabled
+ print "<input type='checkbox' name='$pref_name' $checked
dojoType='dijit.form.CheckBox' id='CB_$pref_name' value='1'>";
} else if (array_search($pref_name, array('FRESH_ARTICLE_MAX_AGE',
$regexp = ($type_name == 'integer') ? 'regexp="^\d*$"' : '';
- if ($pref_name == "PURGE_OLD_DAYS" && FORCE_ARTICLE_PURGE != 0) {
- $disabled = "disabled=\"1\"";
- $value = FORCE_ARTICLE_PURGE;
- } else {
- $disabled = "";
- }
-
print "<input dojoType=\"dijit.form.ValidationTextBox\"
- required=\"1\" $regexp $disabled
+ required=\"1\" $regexp
name=\"$pref_name\" value=\"$value\">";
} else if ($pref_name == "SSL_CERT_SERIAL") {