mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Added ability to view "Watching topics" of other people's (Admins) (#1336)
* Added ability to view "Watching topics" of other people's (For admins only) * Update CHANGELOG.md
This commit is contained in:
parent
3e92b105ad
commit
f154d706f8
6 changed files with 15 additions and 4 deletions
|
@ -21,6 +21,17 @@ $page_cfg['include_bbcode_js'] = true;
|
|||
|
||||
$tracking_topics = get_tracks('topic');
|
||||
$user_id = $userdata['user_id'];
|
||||
if (isset($_GET['uid'])) {
|
||||
if (get_username($_GET['uid'])) {
|
||||
if ($_GET['uid'] == $userdata['user_id'] || IS_ADMIN) {
|
||||
$user_id = DB()->escape($_GET['uid']);
|
||||
} else {
|
||||
bb_die($lang['NOT_AUTHORISED']);
|
||||
}
|
||||
} else {
|
||||
bb_die($lang['USER_NOT_EXIST']);
|
||||
}
|
||||
}
|
||||
$start = isset($_GET['start']) ? abs((int)$_GET['start']) : 0;
|
||||
$per_page = $bb_cfg['topics_per_page'];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue