require_once "../config.php"; require_once "functions.php"; require_once "../functions.php"; basic_nosid_redirect_check(); require_once "../sessions.php"; require_once "../version.php"; require_once "../config.php"; require_once "../db-prefs.php"; $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); login_sequence($link); /* perform various redirect-needing subops */ $subop = db_escape_string($_GET["subop"]); $go = $_GET["go"]; if ($subop == "tc" && !$go) { $cat_id = db_escape_string($_GET["id"]); if ($cat_id != 0) { db_query($link, "UPDATE ttrss_feed_categories SET collapsed = NOT collapsed WHERE id = '$cat_id' AND owner_uid = " . $_SESSION["uid"]); } else { if ($_COOKIE["ttrss_vf_uclps"] != 1) { setcookie("ttrss_vf_uclps", 1); } else { setcookie("ttrss_vf_uclps", 0); } } header("Location: tt-rss.php"); return; } $ts_id = db_escape_string($_GET["ts"]); if ($go == "vf" && $ts_id) { $result = db_query($link, "UPDATE ttrss_user_entries SET marked = NOT marked WHERE ref_id = '$ts_id' AND owner_uid = " . $_SESSION["uid"]); $query_string = preg_replace("/&ts=[0-9]*/", "", $_SERVER["QUERY_STRING"]); header("Location: tt-rss.php?$query_string"); return; } ?>