From 8b21759e863b08df2dcec9bd866c4ce43f01efc5 Mon Sep 17 00:00:00 2001 From: SuperSonic Date: Wed, 19 Feb 2020 08:07:15 +0000 Subject: [PATCH 1/3] Disable no username login --- index.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index a2ffe79..44d6eef 100644 --- a/index.php +++ b/index.php @@ -2017,12 +2017,9 @@ public static function isUser($userName, $userPass) { foreach(EncodeExplorer::getConfig("users") as $user) { - if($user[1] == $userPass) + if($userName == $user[0] && $user[1] == $userPass) { - if(strlen($userName) == 0 || $userName == $user[0]) - { - return true; - } + return true; } } return false; From a2327981c17d2a7d1714b1065528f23265936080 Mon Sep 17 00:00:00 2001 From: SuperSonic Date: Wed, 19 Feb 2020 13:47:20 +0000 Subject: [PATCH 2/3] Add Traditional Chinese Translation --- index.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/index.php b/index.php index 44d6eef..4834a9e 100644 --- a/index.php +++ b/index.php @@ -341,6 +341,7 @@ "del" => "Изтриване", "log_out" => "Изход" ); + //Catalan $_TRANSLATIONS["ca"] = array( "file_name" => "Nom d'arxiu", @@ -1049,6 +1050,38 @@ "del" => "删除" ); +// 正體中文(Traditional Chinese) +$_TRANSLATIONS["zh_TW"] = array( + "file_name" => "檔案名稱", + "size" => "檔案大小", + "last_changed" => "最後更改", + "total_used_space" => "總共大小", + "free_space" => "剩餘空間", + "password" => "密碼", + "upload" => "上傳檔案", + "failed_upload" => "上傳失敗", + "failed_move" => "移動失敗", + "wrong_password" => "密碼錯誤", + "make_directory" => "建立新資料夾", + "new_dir_failed" => "資料夾新增失敗", + "chmod_dir_failed" => "無法更改資料夾權限", + "unable_to_read_dir" => "無法讀取資料夾", + "location" => "位置", + "root" => "根目錄", + "log_file_permission_error" => "本程式沒有權限寫入記錄檔", + "upload_not_allowed" => "不允許在這個資料夾上傳檔案", + "upload_dir_not_writable" => "這個資料夾沒有寫入權限", + "mobile_version" => "手機模式", + "standard_version" => "標準模式", + "page_load_time" => "執行使用%.2f毫秒", + "wrong_pass" => "帳號或密碼錯誤", + "username" => "帳號", + "log_in" => "登入", + "upload_type_not_allowed" => "不允許上傳這種類型的檔案", + "del" => "刪除", + "log_out" => "登出", +); + /***************************************************************************/ /* CSS FOR TWEAKING THE DESIGN */ /***************************************************************************/ From f483e6f8450bca3e0453e52b68bcb68ad7147ca1 Mon Sep 17 00:00:00 2001 From: SuperSonic Date: Thu, 3 Nov 2022 18:08:35 +0800 Subject: [PATCH 3/3] get_magic_quotes_gpc has been removed from PHP 8.0 --- index.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/index.php b/index.php index 4834a9e..94b0864 100644 --- a/index.php +++ b/index.php @@ -2193,8 +2193,6 @@ function uploadFile($location, $userfile) { global $encodeExplorer; $name = basename($userfile['name']); - if(get_magic_quotes_gpc()) - $name = stripslashes($name); $upload_dir = $location->getFullPath(); $upload_file = $upload_dir . $name;