В event/listener.php ошибка, приводящая к sql_error на свежеустановленном трекере при попытке авторизации.
В строке 2008
Код: Выделить всё
(uid, torrent_pass, uploaded) VALUES('{$this->user->data['user_id']}', '{$user_passkey}', '".($this->config['ppkbb_ipreg_countrestrict'][1] ? $config['ppkbb_ipreg_countrestrict'][1] : 0)."')";
заменить на
Код: Выделить всё
(uid, torrent_pass, uploaded) VALUES('{$this->user->data['user_id']}', '{$user_passkey}', '".($this->config['ppkbb_ipreg_countrestrict'][1] ? $this->config['ppkbb_ipreg_countrestrict'][1] : 0)."')";
Отправлено спустя 10 часов 40 минут 26 секунд:
Ещё один фикс для админской части модуля acp/xbtbb3cker_userdata_module.php
При редактировании данных пользователя эти 2 ссылки ссылались на текущего пользователя, а не того, кого редактируем.
ищем
Код: Выделить всё
'U_TR_COMM' => append_sid("{$phpbb_root_path}search.$phpEx", "author_id={$user->data['user_id']}&sr=posts&ot=1&pt=c"),
'U_TR_TORR' => append_sid("{$phpbb_root_path}search.$phpEx", "author_id={$user->data['user_id']}&sr=topics&ot=1&pt=t"),
заменяем на
Код: Выделить всё
'U_TR_COMM' => append_sid("{$phpbb_root_path}search.$phpEx", "author_id={$user_id}&sr=posts&ot=1&pt=c"),
'U_TR_TORR' => append_sid("{$phpbb_root_path}search.$phpEx", "author_id={$user_id}&sr=topics&ot=1&pt=t"),