if ($value) {
print "<style type=\"text/css\">";
- print $value;
+ print str_replace("<br/>", "\n", $value);
print "</style>";
}
if ($subop == "setpref") {
header("Content-Type: text/plain");
+ $value = str_replace("\n", "<br/>", $_REQUEST['value']);
+
$key = db_escape_string($_REQUEST["key"]);
- $value = db_escape_string($_REQUEST["value"]);
+ $value = db_escape_string($value);
set_pref($link, $key, $value);
$value = get_pref($link, "USER_STYLESHEET");
+ $value = str_replace("<br/>", "\n", $value);
+
print T_sprintf("You can override colors, fonts and layout of your currently selected theme with custom CSS declarations here. <a target=\"_blank\" class=\"visibleLink\" href=\"%s\">This file</a> can be used as a baseline.", "tt-rss.css");
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"rpc\">";