httpResponse(); break; case validateRoute('DELETE', 'torrents/\\d+/pack-files'): $log = new Logs($db); $mailbox = new Mailbox($db, $user); $requests = new Requests($db, $user, $log, $mailbox); $torrent = new Torrent($db, $user, $log, null, null, $requests, $mailbox); $torrent->deleteTorrentsInPack((int) $params[1]); httpResponse(); break; case validateRoute('DELETE', 'torrents/multi'): $log = new Logs($db); $mailbox = new Mailbox($db, $user); $requests = new Requests($db, $user, $log, $mailbox); $torrent = new Torrent($db, $user, $log, null, null, $requests, $mailbox); $torrent->multiDelete($_GET); httpResponse(); break; case validateRoute('PATCH', 'torrents/\\d+'): $log = new Logs($db); $movieData = new MovieData($db); $sweTv = new SweTv($db); $subtitles = new Subtitles($db, $user); $torrent = new Torrent($db, $user, $log, $movieData, $sweTv, null, null, $subtitles); $torrent->update((int) $params[1], $postdata); httpResponse(); break; case validateRoute('GET', 'torrents/\\d+/multi'): $torrent = new Torrent($db, $user); $subtitles = new Subtitles($db, $user); $requests = new Requests($db, $user);