mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
feat: Added ability to hide BitTorrent client in peers list (#1890)
* feat: Added ability to hide peer torrent client * Update displaying_torrent.php * Update functions.php * Update register.php * Updated
This commit is contained in:
parent
ccb122f9cb
commit
f5d65b8911
6 changed files with 39 additions and 22 deletions
|
@ -197,6 +197,7 @@ $bf['user_opt'] = [
|
|||
'dis_post_edit' => 13, // [PROHIBITIONS] Block editing own posts / topics
|
||||
'user_dls' => 14, // [SETTINGS] Hide list of "Current downloads" in my profile
|
||||
'user_retracker' => 15, // [SETTINGS] Add my retracker into downloaded torrent files
|
||||
'user_hide_torrent_client' => 16 // [SETTINGS] Option to hide user's torrent client in peer list
|
||||
];
|
||||
|
||||
function bit2dec($bit_num)
|
||||
|
|
|
@ -365,6 +365,7 @@ foreach ($profile_fields as $field => $can_edit) {
|
|||
'user_dls' => $reg_mode ? false : true,
|
||||
'user_callseed' => $reg_mode ? true : true,
|
||||
'user_retracker' => $reg_mode ? true : true,
|
||||
'user_hide_torrent_client' => $reg_mode ? true : true,
|
||||
];
|
||||
|
||||
foreach ($update_user_opt as $opt => $can_change_opt) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue