mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
parent
edab2300d3
commit
70ecc3462d
2 changed files with 4 additions and 9 deletions
|
@ -10,7 +10,7 @@
|
|||
- [PHP 8.4] Fixed some deprecations [\#1718](https://github.com/torrentpier/torrentpier/pull/1718) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- [Configurable] Show magnet-links for guests [\#1712](https://github.com/torrentpier/torrentpier/pull/1712) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Set `cursor: pointer;` for buttons, inputs (buttons) [\#1710](https://github.com/torrentpier/torrentpier/pull/1710), [\#1711](https://github.com/torrentpier/torrentpier/pull/1711) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#1705](https://github.com/torrentpier/torrentpier/pull/1705), [\#1713](https://github.com/torrentpier/torrentpier/pull/1713), [\#1715](https://github.com/torrentpier/torrentpier/pull/1715), [\#1717](https://github.com/torrentpier/torrentpier/pull/1717), [\#1719](https://github.com/torrentpier/torrentpier/pull/1719) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#1705](https://github.com/torrentpier/torrentpier/pull/1705), [\#1713](https://github.com/torrentpier/torrentpier/pull/1713), [\#1715](https://github.com/torrentpier/torrentpier/pull/1715), [\#1717](https://github.com/torrentpier/torrentpier/pull/1717), [\#1719](https://github.com/torrentpier/torrentpier/pull/1719), [\#1720](https://github.com/torrentpier/torrentpier/pull/1720) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- New Crowdin updates [\#1704](https://github.com/torrentpier/torrentpier/pull/1704), [\#1706](https://github.com/torrentpier/torrentpier/pull/1706), [\#1714](https://github.com/torrentpier/torrentpier/pull/1714), [\#1716](https://github.com/torrentpier/torrentpier/pull/1716) ([Exileum](https://github.com/Exileum))
|
||||
|
||||
## [v2.4.5-rc.1](https://github.com/torrentpier/torrentpier/tree/v2.4.5-rc.1) (2024-12-08)
|
||||
|
|
|
@ -40,12 +40,7 @@ if (isset($_POST['submit'])) {
|
|||
}
|
||||
|
||||
if (!$errors) {
|
||||
$sql = DB()->fetch_rowset('SELECT ban_userid FROM ' . BB_BANLIST . ' WHERE ban_userid != 0');
|
||||
|
||||
foreach ($sql as $row) {
|
||||
$user_id_sql[] = ',' . $row['ban_userid'];
|
||||
}
|
||||
$user_id_sql = implode('', $user_id_sql);
|
||||
$banned_users = ($get_banned_users = get_banned_users()) ? (', ' . implode(', ', $get_banned_users)) : '';
|
||||
|
||||
if ($group_id != -1) {
|
||||
$user_list = DB()->fetch_rowset('
|
||||
|
@ -55,14 +50,14 @@ if (isset($_POST['submit'])) {
|
|||
AND ug.user_pending = 0
|
||||
AND u.user_id = ug.user_id
|
||||
AND u.user_active = 1
|
||||
AND u.user_id NOT IN(" . EXCLUDED_USERS . $user_id_sql . ')
|
||||
AND u.user_id NOT IN(" . EXCLUDED_USERS . $banned_users . ')
|
||||
');
|
||||
} else {
|
||||
$user_list = DB()->fetch_rowset('
|
||||
SELECT username, user_email, user_lang
|
||||
FROM ' . BB_USERS . '
|
||||
WHERE user_active = 1
|
||||
AND user_id NOT IN(' . EXCLUDED_USERS . $user_id_sql . ')
|
||||
AND user_id NOT IN(' . EXCLUDED_USERS . $banned_users . ')
|
||||
');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue