From 9c976e3a54e8121b191a2210c1c97126fec6fda7 Mon Sep 17 00:00:00 2001 From: Koala Ng Date: Fri, 12 Sep 2025 18:02:28 +0800 Subject: [PATCH 1/6] Update lang_settings.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加缺失的繁体翻译字段 --- lang/cht/lang_settings.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/cht/lang_settings.php b/lang/cht/lang_settings.php index 9f08e286..e50e42ef 100644 --- a/lang/cht/lang_settings.php +++ b/lang/cht/lang_settings.php @@ -816,6 +816,8 @@ $lang_settings = array 'text_use_challenge_response_authentication_note' => '如果啟用,登錄時將不傳輸明文密碼,建議啟用。未來版本會刪除此配置且啟用此功能。', 'row_complain_enabled' => '啟用申訴', 'row_complain_enabled_note' => '默認: "yes"', + 'row_record_announce_logs' => '記錄匯報日誌', + 'text_record_announce_logs_note' => '要啓用,請先安裝並啓動 ClickHouse,並在 .env 文件中添加配置', 'row_min_size' => '起步體積', 'text_bonus_mini_size' => '要求種子的體積最小爲', 'text_bonus_mini_size_help' => '。小於此體積的種子不參與魔力計算。單位:字節(Byte),如 1 Byte = 1024 KiB。', From 62af81691c52decb57b56e44aa0a8dc38b6a8d42 Mon Sep 17 00:00:00 2001 From: Koala Ng Date: Fri, 12 Sep 2025 18:04:24 +0800 Subject: [PATCH 2/6] Update lang_settings.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加缺失的英文翻译字段 --- lang/en/lang_settings.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/en/lang_settings.php b/lang/en/lang_settings.php index f228ad82..f6b4e405 100644 --- a/lang/en/lang_settings.php +++ b/lang/en/lang_settings.php @@ -816,6 +816,8 @@ $lang_settings = array 'text_use_challenge_response_authentication_note' => 'If enabled, no plaintext passwords will be transmitted at login, recommended. Future releases will remove this configuration and enable this feature.' , 'row_complain_enabled' => 'Whether to enable complaints', 'row_complain_enabled_note' => 'default: "yes"', + 'row_record_announce_logs' => 'Record reporting logs', + 'text_record_announce_logs_note' => 'To enable it, first install and start ClickHouse and add the configuration in the .env file', 'row_min_size' => 'Minimum volume', 'text_bonus_mini_size'=> 'The minimum volume required for torrent is', 'text_bonus_mini_size_help' => '. Torrent size smaller than this volume are not included in the bonus calculation. Unit: bytes (Byte), e.g., 1 Byte = 1024 KiB.', From a6c04ee1e7e1c9737030462b4722feb6882ac178 Mon Sep 17 00:00:00 2001 From: Koala Ng Date: Fri, 12 Sep 2025 18:10:44 +0800 Subject: [PATCH 3/6] Create user-modify-log.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新缺失的繁体翻译字段 --- resources/lang/zh_TW/user-modify-log.php | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 resources/lang/zh_TW/user-modify-log.php diff --git a/resources/lang/zh_TW/user-modify-log.php b/resources/lang/zh_TW/user-modify-log.php new file mode 100644 index 00000000..e18ed3f2 --- /dev/null +++ b/resources/lang/zh_TW/user-modify-log.php @@ -0,0 +1,5 @@ + '修改內容', +]; From 71d03572dff59c9a38f97c18706302cb8117119e Mon Sep 17 00:00:00 2001 From: Koala Ng Date: Fri, 12 Sep 2025 18:11:56 +0800 Subject: [PATCH 4/6] Create user-modify-log.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新缺失的英文翻译字段 --- resources/lang/en/user-modify-log.php | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 resources/lang/en/user-modify-log.php diff --git a/resources/lang/en/user-modify-log.php b/resources/lang/en/user-modify-log.php new file mode 100644 index 00000000..c8cdb06f --- /dev/null +++ b/resources/lang/en/user-modify-log.php @@ -0,0 +1,3 @@ +return [ + 'content' => 'Modified content', +]; From 0444f5a683b5811535feb1b25961884395eadcc2 Mon Sep 17 00:00:00 2001 From: Koala Ng Date: Fri, 12 Sep 2025 18:16:00 +0800 Subject: [PATCH 5/6] Update user-modify-log.php --- resources/lang/en/user-modify-log.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/lang/en/user-modify-log.php b/resources/lang/en/user-modify-log.php index c8cdb06f..d11ea4db 100644 --- a/resources/lang/en/user-modify-log.php +++ b/resources/lang/en/user-modify-log.php @@ -1,3 +1,5 @@ + 'Modified content', ]; From e65c9e4fb110b1b6473a29c841d0877906680049 Mon Sep 17 00:00:00 2001 From: Koala Ng Date: Fri, 12 Sep 2025 18:17:51 +0800 Subject: [PATCH 6/6] Update adredir.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加登录检测后再跳转,防止被恶意引用 --- public/adredir.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/adredir.php b/public/adredir.php index 2554c721..8ab41e20 100644 --- a/public/adredir.php +++ b/public/adredir.php @@ -2,6 +2,9 @@ require "../include/bittorrent.php"; dbconn(); require_once(get_langfile_path()); +loggedinorreturn(); +parked(); + if ($enablead_advertisement != 'yes') stderr($lang_adredir['std_error'], $lang_adredir['std_ad_system_disabled']); $id=$_GET['id'] ?? 0;