mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update topic_watch.php
This commit is contained in:
parent
f650e59d75
commit
dd5adb17a4
@ -18,16 +18,14 @@ $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']);
|
||||
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(intval($_GET['start'])) : 0;
|
||||
$per_page = $bb_cfg['topics_per_page'];
|
||||
|
Loading…
Reference in New Issue
Block a user