Skip to content

Commit c1f7a7a

Browse files
committed
1 parent 0c16e59 commit c1f7a7a

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed

__encode/classes/GateKeeper.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,9 @@ public static function isUser($userName, $userPass)
5757
{
5858
foreach(EncodeExplorer::getConfig("users") as $user)
5959
{
60-
if($user[1] == $userPass)
60+
if($user[0] == $userName && $user[1] == $userPass)
6161
{
62-
if(strlen($userName) == 0 || $userName == $user[0])
63-
{
64-
return true;
65-
}
62+
return true;
6663
}
6764
}
6865
return false;

__encode/translations.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,4 +809,37 @@
809809
"del" => "删除"
810810
);
811811

812+
813+
// 正體中文(Traditional Chinese)
814+
$_TRANSLATIONS["zh_TW"] = array(
815+
"file_name" => "檔案名稱",
816+
"size" => "檔案大小",
817+
"last_changed" => "最後更改",
818+
"total_used_space" => "總共大小",
819+
"free_space" => "剩餘空間",
820+
"password" => "密碼",
821+
"upload" => "上傳檔案",
822+
"failed_upload" => "上傳失敗",
823+
"failed_move" => "移動失敗",
824+
"wrong_password" => "密碼錯誤",
825+
"make_directory" => "建立新資料夾",
826+
"new_dir_failed" => "資料夾新增失敗",
827+
"chmod_dir_failed" => "無法更改資料夾權限",
828+
"unable_to_read_dir" => "無法讀取資料夾",
829+
"location" => "位置",
830+
"root" => "根目錄",
831+
"log_file_permission_error" => "本程式沒有權限寫入記錄檔",
832+
"upload_not_allowed" => "不允許在這個資料夾上傳檔案",
833+
"upload_dir_not_writable" => "這個資料夾沒有寫入權限",
834+
"mobile_version" => "手機模式",
835+
"standard_version" => "標準模式",
836+
"page_load_time" => "執行使用%.2f毫秒",
837+
"wrong_pass" => "帳號或密碼錯誤",
838+
"username" => "帳號",
839+
"log_in" => "登入",
840+
"upload_type_not_allowed" => "不允許上傳這種類型的檔案",
841+
"del" => "刪除",
842+
"log_out" => "登出",
843+
);
844+
812845
?>

0 commit comments

Comments
 (0)