function build_tor_filelist($file_contents) { global $lang; if (!($tor = bdecode($file_contents))) { return $lang['TORFILE_INVALID']; } $torrent = new torrent($tor); return $torrent->get_filelist(); }