function advSortResortAll() { /* * Grab all categories active on the tracker... */ $rstCategoryList = @mysql_query("SELECT DISTINCT `category` FROM `namemap`"); if ($rstCategoryList === false) { return false; } /* * Run through each category, resorting everything */ while ($rowCategory = mysql_fetch_row($rstCategoryList)) { if (!advSortResortCategory($rowCategory[0])) { return false; } } return true; }
admShowMsg("Global resort complete", "Redirecting to advanced sorting page.", "Redirecting", true, "bta_advsort.php", 3); exit; break; case "grpsort": /* * Sorts torrents only in category */ advSortResortCategory($category); admShowMsg("Resorting finished", "Redirecting to advanced sorting page.", "Redirecting", true, "bta_advsort.php", 3); exit; break; case "grpsortall": /* * Sorts torrents and group names */ advSortResortCategory($category); advSortResortGroupNames($category); admShowMsg("Resorting complete", "Redirecting to advanced sorting page.", "Redirecting", true, "bta_advsort.php", 3); exit; break; case "grponlysort": /* * Sorts group names only */ advSortResortGroupNames($category); admShowMsg("Resorting of group headings complete", "Redirecting to advanced sorting page.", "Redirecting", true, "bta_advsort.php", 3); exit; break; case "mvtorrent": /* * Requires the info hash to be specified.