query("SELECT Username FROM users_main WHERE ID='$UserID'"); list($Username) = $DB->next_record(); } else { $UserID = $LoggedUser['ID']; } // Finally we start // Require the table class // require_once SERVER_ROOT . '/classes/mass_user_torrents_table_view.class.php'; View::show_header('Organize Bookmarks', 'browse,jquery,jquery-ui,jquery.tablesorter,sort'); $EditType = isset($_GET['type']) ? $_GET['type'] : 'torrents'; list(, $CollageDataList, $TorrentList) = Users::get_bookmarks($UserID); $TT = new MASS_USER_TORRENTS_TABLE_VIEW($TorrentList, $CollageDataList, $EditType, 'Organize Torrent Bookmarks'); $TT->render_all(); View::show_footer();