From 7963fc270a46a0ddf64400b7f9eba085be9d6c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E7=BA=BF?= <13816653+maoxian-1@users.noreply.github.com> Date: Thu, 28 Aug 2025 20:17:57 +0800 Subject: [PATCH 1/3] Fix the effect of paths on menu selections --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 25b19fcb..96be416a 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2242,7 +2242,7 @@ function menu ($selected = "home") { global $USERUPDATESET; //no this option in config.php $enablerequest = 'yes'; - $script_name = $_SERVER["SCRIPT_FILENAME"]; + $script_name = $_SERVER["SCRIPT_NAME"]; if (preg_match("/index/i", $script_name)) { $selected = "home"; }elseif (preg_match("/forums/i", $script_name)) { From 90032fe04ce7d53d36788ae0a9c61b54e10d5ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E7=BA=BF?= <13816653+maoxian-1@users.noreply.github.com> Date: Tue, 2 Sep 2025 09:17:49 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8DSUM=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E7=B2=BE=E5=BA=A6=E4=B8=A2=E5=A4=B1=E5=87=BA?= =?UTF-8?q?=E7=8E=B0.00000000xxx=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 96be416a..30086739 100644 --- a/include/functions.php +++ b/include/functions.php @@ -6039,7 +6039,7 @@ function calculate_seed_bonus($uid, $torrentIdArr = null): array $officialAdditionalFactor = \App\Models\Setting::get('bonus.official_addition'); $zeroBonusTag = \App\Models\Setting::get('bonus.zero_bonus_tag'); $zeroBonusFactor = \App\Models\Setting::get('bonus.zero_bonus_factor'); - $userMedalResult = \Nexus\Database\NexusDB::select("select sum(bonus_addition_factor) as factor from medals where id in (select medal_id from user_medals where uid = $uid and (expire_at is null or expire_at > '$nowStr') and (bonus_addition_expire_at is null or bonus_addition_expire_at > '$nowStr'))"); + $userMedalResult = \Nexus\Database\NexusDB::select("select round(sum(bonus_addition_factor), 5) as factor from medals where id in (select medal_id from user_medals where uid = $uid and (expire_at is null or expire_at > '$nowStr') and (bonus_addition_expire_at is null or bonus_addition_expire_at > '$nowStr'))"); $medalAdditionalFactor = floatval($userMedalResult[0]['factor'] ?? 0); do_log("$logPrefix, sql: $sql, count: " . count($torrentResult) . ", officialTag: $officialTag, officialAdditionalFactor: $officialAdditionalFactor, zeroBonusTag: $zeroBonusTag, zeroBonusFactor: $zeroBonusFactor, medalAdditionalFactor: $medalAdditionalFactor"); $last_action = ""; From f7640321b3494e2d3fe6d4815a5eec6210f44f9e Mon Sep 17 00:00:00 2001 From: dynofifa Date: Fri, 5 Sep 2025 00:19:50 +0800 Subject: [PATCH 3/3] Update lang_linksmanage.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加友情鏈接管理缺失的繁體翻譯字段 --- lang/cht/lang_linksmanage.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lang/cht/lang_linksmanage.php b/lang/cht/lang_linksmanage.php index 05b78245..27d11bb6 100644 --- a/lang/cht/lang_linksmanage.php +++ b/lang/cht/lang_linksmanage.php @@ -35,6 +35,16 @@ $lang_linksmanage = array 'text_sitename_note' => "申請網站的名字,如NexusPHP", 'text_url_note' => "如https://nexusphp.org", 'text_email_note' => "請填寫申請網站的管理員的郵箱地址,便于我們聯系", + 'std_missing_form_data' => "請填寫必填項目。", + 'std_unable_creating_new_link' => "無法創建新的鏈接。", + 'std_links_manage' => "管理鏈接", + 'text_add_link' => "添加鏈接", + 'text_manage_links' => "管理鏈接", + 'text_modify' => "修改", + 'text_edit' => "編輯", + 'text_delete' => "刪除", + 'text_no_links_found' => "對不起,當前沒有任何鏈接!", + 'text_edit_link' => "編輯鏈接", 'js_sure_to_delete_link' => "你確定要刪除此鏈接?", );