getName(); else $aPageTitle = 'Available Downloads'; $tPageTitle = $aPageTitle; $aPageUrl = '/available.php?'; if($aUserInfo !== null) $aPageUrl .= 'name=' . $aUserInfo->getName() . '&'; $aStartAt = -1; $aTake = 20; if(isset($_GET['start'])) $aStartAt = (int)filter_input(INPUT_GET, 'start', FILTER_SANITIZE_NUMBER_INT); $aTorrents = SeriaTorrent::all($pdo, !$sUserInfo->isLoggedIn(), true, $aUserInfo, $aStartAt, $aTake); require_once __DIR__ . '/_header.php'; echo '