print "<param key=\"default_view_limit\" value=\"" .
sprintf("%d", get_pref($link, "_DEFAULT_VIEW_LIMIT")) . "\"/>";
+ print "<param key=\"prefs_active_tab\" value=\"" .
+ get_pref($link, "_PREFS_ACTIVE_TAB") . "\"/>";
+
print "</init-params>";
}
return;
}
+ set_pref($link, "_PREFS_ACTIVE_TAB", "feedBrowser");
+
print "<div>".__('This panel shows feeds subscribed by other users of this system, just in case you are interested in them too.')."</div>";
$limit = db_escape_string($_GET["limit"]);
}
}
+ set_pref($link, "_PREFS_ACTIVE_TAB", "feedConfig");
+
print "<div class=\"prefGenericAddBox\">
<input id=\"fadd_cat\"
onkeypress=\"return filterCR(event, addFeedCat)\"
if ($quiet) return;
+ set_pref($link, "_PREFS_ACTIVE_TAB", "filterConfig");
+
$sort = db_escape_string($_GET["sort"]);
if (!$sort || $sort == "undefined") {
return;
}
+ set_pref($link, "_PREFS_ACTIVE_TAB", "labelConfig");
+
$sort = db_escape_string($_GET["sort"]);
if (!$sort || $sort == "undefined") {
// print check_for_update($link);
+ set_pref($link, "_PREFS_ACTIVE_TAB", "genConfig");
+
if (!SINGLE_USER_MODE) {
$result = db_query($link, "SELECT id,email FROM ttrss_users
}
}
+ set_pref($link, "_PREFS_ACTIVE_TAB", "userConfig");
+
$sort = db_escape_string($_GET["sort"]);
if (!$sort || $sort == "undefined") {
try {
active_tab = getInitParam("prefs_active_tab");
- if (!active_tab) active_tab = "genConfig";
+ if (!active_tab || active_tab == '0') active_tab = "genConfig";
document.onkeydown = pref_hotkey_handler;
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_DEFAULT_VIEW_LIMIT', 3, '30', '', 1);
-insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_ACTIVE_TAB', 3, '', '', 1);
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_ACTIVE_TAB', 2, '', '', 1);
create table ttrss_user_prefs (
owner_uid integer not null,
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_DEFAULT_VIEW_LIMIT', 3, '30', '', 1);
-insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_ACTIVE_TAB', 3, '', '', 1);
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_ACTIVE_TAB', 2, '', '', 1);
create table ttrss_user_prefs (
owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,