Changed language display on client to Indonesia/Indonesian
This commit is contained in:
@@ -29,7 +29,7 @@ class Home
|
||||
public function login()
|
||||
{
|
||||
if (Session::exists('userid')) {
|
||||
Session::flash('info', 'You already logged in');
|
||||
Session::flash('info', 'Anda telah masuk.');
|
||||
Redirect::to('/');
|
||||
} else {
|
||||
View::render('Access/login.html', [
|
||||
@@ -40,14 +40,14 @@ class Home
|
||||
|
||||
public function logout() {
|
||||
if ($this->delete() != true) {
|
||||
$info = "There's an error. Please try again.";
|
||||
$info = "Terjadi kesalahan. Silahkan coba lagi dalam beberapa saat.";
|
||||
} else {
|
||||
Session::delete('userid');
|
||||
Session::delete('username');
|
||||
Session::delete('full_name');
|
||||
Session::delete('privilage');
|
||||
|
||||
$info = "Logged out success";
|
||||
$info = "Berhasil keluar.";
|
||||
}
|
||||
Session::flash('info', $info);
|
||||
Redirect::to('/');
|
||||
@@ -69,7 +69,7 @@ class Home
|
||||
{
|
||||
foreach ($args as $value) {
|
||||
if ($value == '') {
|
||||
Session::flash('info', 'All data must not be empty');
|
||||
Session::flash('info', 'Semua data harus diisi.');
|
||||
Redirect::to('/');
|
||||
die();
|
||||
}
|
||||
@@ -92,7 +92,7 @@ class Home
|
||||
$data = $this->access->showAll($table);
|
||||
foreach ($data as $users) {
|
||||
if ($args['username'] == $users['username']) {
|
||||
Session::flash('info', 'Username already exists');
|
||||
Session::flash('info', 'Username telah digunakan. Silahkan gunakan username lain.');
|
||||
Redirect::to('./register');
|
||||
die();
|
||||
}
|
||||
@@ -113,16 +113,16 @@ class Home
|
||||
['username', '=', $username]
|
||||
]);
|
||||
if ($user == false) {
|
||||
$info = "Invalid username/password";
|
||||
$info = "Username/password salah.";
|
||||
} else {
|
||||
$hash = Hash::compare($password, $user['salt'], $user['password']);
|
||||
|
||||
if ($hash == true) {
|
||||
if ($user['max_user'] <= 0) {
|
||||
$info = "Max user reached!";
|
||||
$info = "Telah mencapai maksimal user yang diizinkan. Silahkan logout pada perangkat lain terlebih dahulu.";
|
||||
} else {
|
||||
if ($this->access->update($table, ['status' => 1], $user['id']) != true) {
|
||||
$info = "There's an error. Please try again.";
|
||||
$info = "Terjadi kesalahan. Silahkan coba lagi dalam beberapa saat.";
|
||||
} else {
|
||||
$max_user = $user['max_user'] - 1;
|
||||
if ($this->access->update($table, ['max_user' => $max_user], $user['id']) == true) {
|
||||
@@ -131,7 +131,7 @@ class Home
|
||||
Session::put('full_name', $user['full_name']);
|
||||
Session::put('privilage', $user['privilage']);
|
||||
|
||||
$info = "Logged in success";
|
||||
$info = "Berhasil masuk";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user