aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/index.php b/index.php
index 5de8f7f0..fdaeabc3 100644
--- a/index.php
+++ b/index.php
@@ -15,7 +15,7 @@ myTool::initPhp();
15# XSRF protection with token 15# XSRF protection with token
16if (!empty($_POST)) { 16if (!empty($_POST)) {
17 if (!Session::isToken($_POST['token'])) { 17 if (!Session::isToken($_POST['token'])) {
18 die('Wrong token.'); 18 die(_('Wrong token.'));
19 } 19 }
20 unset($_SESSION['tokens']); 20 unset($_SESSION['tokens']);
21} 21}
@@ -40,7 +40,7 @@ if (isset($_GET['login'])) {
40 MyTool::redirect($ref); 40 MyTool::redirect($ref);
41 } 41 }
42 logm('login failed'); 42 logm('login failed');
43 die("Login failed !"); 43 die(_("Login failed !"));
44 } else { 44 } else {
45 logm('login failed'); 45 logm('login failed');
46 } 46 }
@@ -56,14 +56,14 @@ elseif (isset($_GET['config'])) {
56 logm('password updated'); 56 logm('password updated');
57 if (!MODE_DEMO) { 57 if (!MODE_DEMO) {
58 $store->updatePassword(encode_string($_POST['password'] . $_SESSION['login'])); 58 $store->updatePassword(encode_string($_POST['password'] . $_SESSION['login']));
59 $msg->add('s', 'your password has been updated'); 59 $msg->add('s', _('your password has been updated'));
60 } 60 }
61 else { 61 else {
62 $msg->add('i', 'in demo mode, you can\'t update password'); 62 $msg->add('i', _('in demo mode, you can\'t update password'));
63 } 63 }
64 } 64 }
65 else 65 else
66 $msg->add('e', 'your password can\'t be empty and you have to repeat it in the second field'); 66 $msg->add('e', _('your password can\'t be empty and you have to repeat it in the second field'));
67 } 67 }
68} 68}
69 69
@@ -80,7 +80,7 @@ $tpl->assign('referer', $ref);
80$tpl->assign('view', $view); 80$tpl->assign('view', $view);
81$tpl->assign('poche_url', myTool::getUrl()); 81$tpl->assign('poche_url', myTool::getUrl());
82$tpl->assign('demo', MODE_DEMO); 82$tpl->assign('demo', MODE_DEMO);
83$tpl->assign('title', 'poche, a read it later open source system'); 83$tpl->assign('title', _('poche, a read it later open source system'));
84 84
85if (Session::isLogged()) { 85if (Session::isLogged()) {
86 action_to_do($action, $url, $id); 86 action_to_do($action, $url, $id);