if ($blacklist_check) { $errcnt++; echo 'BL: /' . $bl['regex'] . '/i matched ' . $header['ID'] . '/' . $header['name'] . " (" . $header['groupname'] . ")\n"; if ($purgeMatched && isset($header['ID']) && $header['ID'] > 0) { // Support purging if enabled $release->delete($header['ID']); } # ensure whitelist flags are off to avoid extra processing # at the end of this loop (Below) $whitelist = array(); break; } if ($use_CategorySizeRestrictions == true && $header['categoryID']) { $sizes = null; if ($use_NNCategorySizeRestrictions) { $sizes = $category->getSizeRangeById($header['categoryID']); } else { if (array_key_exists($header['categoryID'], $categoryRestrictions)) { $sizes = $categoryRestrictions[$header['categoryID']]; } } if (is_array($sizes)) { # Restrictions are in place $totalSize = intval($header['size']); if (!($totalSize >= $sizes['min'] && $totalSize < $sizes['max'])) { $errcnt++; echo 'BL: size restrictions ' . $header['ID'] . '/' . $header['name'] . " (" . $header['groupname'] . ")\n"; if ($purgeMatched && isset($header['ID']) && $header['ID'] > 0) { // Support purging if enabled $release->delete($header['ID']); }