"; $i = 0; foreach ($brcats as $cat)//print category list of Torrents section { $numinrow = $i % $catsperrow; $rownum = (int)($i / $catsperrow); if ($i && $numinrow == 0){ $categories .= "".($brenablecatrow ? "" : "").""; } $categories .= "\n"; $i++; } $categories .= ""; if ($allowspecial) //print category list of Special section { $categories .= ""; $i = 0; foreach ($spcats as $cat) { $numinrow = $i % $catsperrow; $rownum = (int)($i / $catsperrow); if ($i && $numinrow == 0){ $categories .= "".($spenablecatrow ? "" : "").""; } $categories .= "\n"; $i++; } $categories .= ""; } if ($showsubcat)//Show subcategory (i.e. source, codecs) selections { if ($showsource){ $categories .= ""; $i = 0; foreach ($sources as $source) { $categories .= ($i && $i % $catsperrow == 0) ? "" : ""; $categories .= "\n"; $i++; } $categories .= ""; } if ($showmedium){ $categories .= ""; $i = 0; foreach ($media as $medium) { $categories .= ($i && $i % $catsperrow == 0) ? "" : ""; $categories .= "\n"; $i++; } $categories .= ""; } if ($showcodec){ $categories .= ""; $i = 0; foreach ($codecs as $codec) { $categories .= ($i && $i % $catsperrow == 0) ? "" : ""; $categories .= "\n"; $i++; } $categories .= ""; } if ($showaudiocodec){ $categories .= ""; $i = 0; foreach ($audiocodecs as $audiocodec) { $categories .= ($i && $i % $catsperrow == 0) ? "" : ""; $categories .= "\n"; $i++; } $categories .= ""; } if ($showstandard){ $categories .= ""; $i = 0; foreach ($standards as $standard) { $categories .= ($i && $i % $catsperrow == 0) ? "" : ""; $categories .= "\n"; $i++; } $categories .= ""; } if ($showprocessing){ $categories .= ""; $i = 0; foreach ($processings as $processing) { $categories .= ($i && $i % $catsperrow == 0) ? "" : ""; $categories .= "\n"; $i++; } $categories .= ""; } if ($showteam){ $categories .= ""; $i = 0; foreach ($teams as $team) { $categories .= ($i && $i % $catsperrow == 0) ? "" : ""; $categories .= "\n"; $i++; } $categories .= ""; } } $categories .= "
".$lang_getrss['text_category']."
".$brcatrow[$rownum]."
".return_category_image($cat['id'], "torrents.php?allsec=1&")."
".$spcatrow[$rownum]."
".return_category_image($cat['id'], "torrents.php?allsec=1&")."
".$lang_getrss['text_source']."
".$source['name']."
".$lang_getrss['text_medium']."
".$medium['name']."
".$lang_getrss['text_codec']."
".$codec['name']."
".$lang_getrss['text_audio_codec']."
".$audiocodec['name']."
".$lang_getrss['text_standard']."
".$standard['name']."
".$lang_getrss['text_processing']."
".$processing['name']."
".$lang_getrss['text_team']."
".$team['name']."
"; */ $categories = build_search_box_category_table($browsecatmode, 'yes', 'torrents.php?allsec=1&', false, 3, '', ['section_name' => true]); print($categories); if (get_setting('main.spsct') == 'yes') { print '
'; $categoriesSpecial = build_search_box_category_table($specialcatmode, 'yes', 'torrents.php?allsec=1&', false, 3, '', ['section_name' => true]); print($categoriesSpecial); } ?>