0) { db_query($link, "UPDATE ttrss_feed_categories SET collapsed = NOT collapsed WHERE id = '$cat_id' AND owner_uid = " . $_SESSION["uid"]); } else { $pref_name = ''; switch ($cat_id) { case -1: $pref_name = '_COLLAPSED_SPECIAL'; break; case -2: $pref_name = '_COLLAPSED_LABELS'; break; case 0: $pref_name = '_COLLAPSED_UNCAT'; break; } if ($pref_name) { if (get_pref($link, $pref_name)) { set_pref($link, $pref_name, 'false'); } else { set_pref($link, $pref_name, 'true'); } } } header("Location: index.php"); return; } $ts_id = db_escape_string($_GET["ts"]); if ($go == "vf" && $ts_id) { toggleMarked($link, $ts_id); $query_string = preg_replace("/&ts=[0-9]*/", "", $_SERVER["QUERY_STRING"]); header("Location: index.php?$query_string"); return; } $tp_id = db_escape_string($_GET["tp"]); if ($go == "vf" && $tp_id) { togglePublished($link, $tp_id); $query_string = preg_replace("/&tp=[0-9]*/", "", $_SERVER["QUERY_STRING"]); header("Location: index.php?$query_string"); return; } $sop = db_escape_string($_GET["sop"]); if ($sop) { if ($go == "view") { $a_id = db_escape_string($_GET["id"]); } elseif ($go == "vf") { $a_id = db_escape_string($_GET["aid"]); } if ($a_id) { if ($sop == "tp") { togglePublished($link, $a_id); } if ($sop == "ts") { toggleMarked($link, $a_id); } if ($sop == "mu") { markUnread($link, $a_id); } $query_string = str_replace("&sop=$sop", "", $_SERVER["QUERY_STRING"]); header("Location: index.php?$query_string"); } } ?>