Gazelle/sections/bookmarks/edit_torrents.php

35 lines
905 B
PHP
Raw Normal View History

2013-02-25 21:16:55 +00:00
<?php
// ugly UserID code that should be turned into a function . . .
2013-05-05 08:00:31 +00:00
if (!empty($_GET['userid'])) {
if (!check_perms('users_override_paranoia')) {
2013-02-25 21:16:55 +00:00
error(403);
}
$UserID = $_GET['userid'];
2013-05-05 08:00:31 +00:00
if (!is_number($UserID)) {
error(404);
}
2013-07-13 08:00:46 +00:00
$DB->query("
SELECT Username
FROM users_main
WHERE ID = '$UserID'");
2013-02-25 21:16:55 +00:00
list($Username) = $DB->next_record();
} else {
$UserID = $LoggedUser['ID'];
}
// Finally we start
2013-05-05 08:00:31 +00:00
// Require the table class
2013-05-27 08:00:58 +00:00
// require_once SERVER_ROOT . '/classes/mass_user_torrents_table_view.class.php';
2013-02-25 21:16:55 +00:00
2013-06-27 08:01:06 +00:00
View::show_header('Organize Bookmarks', 'browse,jquery-ui,jquery.tablesorter,sort');
2013-02-25 21:16:55 +00:00
$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();
2013-05-05 08:00:31 +00:00
View::show_footer();