= get_setting('authority.view_special_torrent')) $allowspecial = true; else $allowspecial = false; $showsubcat = (get_searchbox_value($brsectiontype, 'showsubcat') || ($allowspecial && get_searchbox_value($spsectiontype, 'showsubcat'))); $showsource = (get_searchbox_value($brsectiontype, 'showsource') || ($allowspecial && get_searchbox_value($spsectiontype, 'showsource'))); //whether show sources or not $showmedium = (get_searchbox_value($brsectiontype, 'showmedium') || ($allowspecial && get_searchbox_value($spsectiontype, 'showmedium'))); //whether show media or not $showcodec = (get_searchbox_value($brsectiontype, 'showcodec') || ($allowspecial && get_searchbox_value($spsectiontype, 'showcodec'))); //whether show codecs or not $showstandard = (get_searchbox_value($brsectiontype, 'showstandard') || ($allowspecial && get_searchbox_value($spsectiontype, 'showstandard'))); //whether show standards or not $showprocessing = (get_searchbox_value($brsectiontype, 'showprocessing') || ($allowspecial && get_searchbox_value($spsectiontype, 'showprocessing'))); //whether show processings or not $showteam = (get_searchbox_value($brsectiontype, 'showteam') || ($allowspecial && get_searchbox_value($spsectiontype, 'showteam'))); //whether show teams or not $showaudiocodec = (get_searchbox_value($brsectiontype, 'showaudiocodec') || ($allowspecial && get_searchbox_value($spsectiontype, 'showaudiocodec'))); //whether show audio codecs or not $brcatsperror = get_searchbox_value($brsectiontype, 'catsperrow'); $catsperrow = get_searchbox_value($spsectiontype, 'catsperrow'); $catsperrow = (!$allowspecial ? $brcatsperror : ($catsperrow > $catsperrow ? $catsperrow : $catsperrow)); //show how many cats per line $brcatpadding = get_searchbox_value($brsectiontype, 'catpadding'); $spcatpadding = get_searchbox_value($spsectiontype, 'catpadding'); $catpadding = (!$allowspecial ? $brcatpadding : ($brcatpadding < $spcatpadding ? $brcatpadding : $spcatpadding)); //padding space between categories in pixel $brcats = genrelist($brsectiontype); $spcats = genrelist($spsectiontype); if ($showsubcat){ if ($showsource) $sources = searchbox_item_list("sources"); if ($showmedium) $media = searchbox_item_list("media"); if ($showcodec) $codecs = searchbox_item_list("codecs"); if ($showstandard) $standards = searchbox_item_list("standards"); if ($showprocessing) $processings = searchbox_item_list("processings"); if ($showteam) $teams = searchbox_item_list("teams"); if ($showaudiocodec) $audiocodecs = searchbox_item_list("audiocodecs"); } stdhead($lang_getrss['head_rss_feeds']); $query = []; $query[] = "passkey=" . $CURUSER['passkey']; if ($_SERVER['REQUEST_METHOD'] == "POST") { $allowed_showrows=array('10','20','30','40','50'); $link = get_protocol_prefix(). $BASEURL ."/torrentrss.php"; if (isset($_POST['showrows']) && in_array($_POST['showrows'], $allowed_showrows, 1)) $query[] = "rows=".(int)$_POST['showrows']; else { stdmsg($lang_getrss['std_error'],$lang_getrss['std_no_row']); stdfoot(); die(); } foreach ($brcats as $cat) { if (!empty($_POST["cat{$cat['id']}"])) { $query[] = "cat{$cat['id']}=1"; } } if ($enablespecial == 'yes') { foreach ($spcats as $cat) { if (!empty($_POST["cat{$cat['id']}"])) { $query[] = "cat{$cat['id']}=1"; } } } if ($showsubcat){ if ($showsource) foreach ($sources as $source) { if (!empty($_POST["sou{$source['id']}"])) { $query[] = "sou{$source['id']}=1"; } } if ($showmedium) foreach ($media as $medium) { if (!empty($_POST["med{$medium['id']}"])) { $query[] = "med{$medium['id']}=1"; } } if ($showcodec) foreach ($codecs as $codec) { if (!empty($_POST["cod{$codec['id']}"])) { $query[] = "cod{$codec['id']}=1"; } } if ($showstandard) foreach ($standards as $standard) { if (!empty($_POST["sta{$standard['id']}"])) { $query[] = "sta{$standard['id']}=1"; } } if ($showprocessing) foreach ($processings as $processing) { if (!empty($_POST["pro{$processing['id']}"])) { $query[] = "pro{$processing['id']}=1"; } } if ($showteam) foreach ($teams as $team) { if (!empty($_POST["tea{$team['id']}"])) { $query[] = "tea{$team['id']}=1"; } } if ($showaudiocodec) foreach ($audiocodecs as $audiocodec) { if (!empty($_POST["aud{$audiocodec['id']}"])) { $query[] = "aud{$audiocodec['id']}=1"; } } } if (!empty($_POST["itemcategory"])) { $query[] = "icat=1"; } if (!empty($_POST["itemsmalldescr"])) { $query[] = "ismalldescr=1"; } if (!empty($_POST["itemsize"])) { $query[] = "isize=1"; } if (!empty($_POST["itemuploader"])) { $query[] = "iuplder=1"; } $searchstr = mysql_real_escape_string(trim($_POST["search"] ?? '')); // if (empty($searchstr)) // unset($searchstr); if ($searchstr) { $query[] = "search=".rawurlencode($searchstr); if ($_POST["search_mode"]){ $search_mode = intval($_POST["search_mode"] ?? 0); if (!in_array($search_mode,array(0,1,2))) { $search_mode = 0; } $query[] = "search_mode=".$search_mode; } } $inclbookmarked=intval($_POST['inclbookmarked'] ?? 0); if($inclbookmarked) { if (!in_array($inclbookmarked,array(0,1))) { $inclbookmarked = 0; } $addinclbm = "&inclbookmarked=".$inclbookmarked; } else { $addinclbm=""; } $queries = implode("&", $query); if ($queries) $link .= "?".$queries; $msg = $lang_getrss['std_use_following_url'] ."\n".$link."\n\n".$lang_getrss['std_utorrent_feed_url']."\n".$link."&linktype=dl".$addinclbm; stdmsg($lang_getrss['std_done'],format_comment($msg)); stdfoot(); die(); } ?>