Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ukrainian language added. #44

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 49 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@
//
$_CONFIG['require_login'] = false;

//
// Whether use md5 to store passwords both in session and this script.
// If set to false, the password will be stored as is.
// If set to true, script will use md5 to store and check passwords.
// Default: $_CONFIG['md5_passwords'] = false;
//
$_CONFIG['md5_passwords'] = false;

//
// Usernames and passwords for restricting access to the page.
// The format is: array(username, password, status)
Expand All @@ -157,6 +165,8 @@
// You can also keep require_login=false and specify an admin.
// That way everyone can see the page but username and password are needed for uploading.
// For example: $_CONFIG['users'] = array(array("username", "password", "admin"));
// IF md5_passwords config is set, than password should be md5 encrypted
// For example: $_CONFIG['users'] = array(array("username", "5f4dcc3b5aa765d61d8327deb882cf99", "admin"));
// Default: $_CONFIG['users'] = array();
//
$_CONFIG['users'] = array();
Expand Down Expand Up @@ -900,6 +910,38 @@
"log_out" => "выйти"
);

// Ukrainian
$_TRANSLATIONS["ua"] = 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" => "вийти"
);

// Slovensky
$_TRANSLATIONS["sk"] = array(
"file_name" => "Meno súboru",
Expand Down Expand Up @@ -1955,10 +1997,15 @@ public static function init()

if(isset($_POST['user_pass']) && strlen($_POST['user_pass']) > 0)
{
if(GateKeeper::isUser((isset($_POST['user_name'])?$_POST['user_name']:""), $_POST['user_pass']))
if (EncodeExplorer::getConfig("md5_passwords") == false)
{
$password = $_POST['user_pass'];
} else $password = md5($_POST['user_pass']);

if(GateKeeper::isUser((isset($_POST['user_name'])?$_POST['user_name']:""), $password))
{
$_SESSION['ee_user_name'] = isset($_POST['user_name'])?$_POST['user_name']:"";
$_SESSION['ee_user_pass'] = $_POST['user_pass'];
$_SESSION['ee_user_pass'] = $password;

$addr = $_SERVER['PHP_SELF'];
$param = '';
Expand Down