X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=app%2Findex.php;h=90be17fe99ce2579a08d6c96e049cab82fb85075;hp=5f091a26ae14b152d49f79e44f3f0ca145b1ea83;hb=9cab985cf8d73f719cd7efc2838ce2e107b45b21;hpb=8b69f29ccce4f236a8954a80c837bcd20987ca53 diff --git a/app/index.php b/app/index.php index 5f091a2..90be17f 100644 --- a/app/index.php +++ b/app/index.php @@ -34,7 +34,7 @@ if (!count($errors)) { $user = array('id' => 0, 'email' => ''); $pagetype = 'default'; if (is_null($session)) { - $errors[] = _('The session system is not working. Please contact KaiRo.at and tell the team about this.'); + $errors[] = _('The session system is not working.').' '._('Please contact KaiRo.at and tell the team about this.'); } elseif (array_key_exists('logout', $_GET)) { $result = $db->prepare('UPDATE `auth_sessions` SET `logged_in` = FALSE WHERE `id` = :sessid;'); @@ -104,7 +104,7 @@ if (!count($errors)) { $result = $db->prepare('INSERT INTO `auth_users` (`email`, `pwdhash`, `status`, `verify_hash`) VALUES (:email, :pwdhash, \'unverified\', :vcode);'); if (!$result->execute(array(':email' => $_POST['email'], ':pwdhash' => $newHash, ':vcode' => $vcode))) { $utils->log('user_insert_failure', 'email: '.$_POST['email'].' - '.$result->errorInfo()[2]); - $errors[] = _('Could not add user. Please contact KaiRo.at and tell the team about this.'); + $errors[] = _('Could not add user.').' '._('Please contact KaiRo.at and tell the team about this.'); } $user = array('id' => $db->lastInsertId(), 'email' => $_POST['email'], @@ -138,7 +138,7 @@ if (!count($errors)) { } else { $utils->log('verify_mail_failure', 'user: '.$user['id'].', email: '.$user['email']); - $errors[] = _('The confirmation email could not be sent to you. Please contact KaiRo.at and tell the team about this.'); + $errors[] = _('The confirmation email could not be sent to you.').' '._('Please contact KaiRo.at and tell the team about this.'); } } else { @@ -147,7 +147,7 @@ if (!count($errors)) { $result = $db->prepare('UPDATE `auth_users` SET `verify_hash` = :vcode WHERE `id` = :userid;'); if (!$result->execute(array(':vcode' => $vcode, ':userid' => $user['id']))) { $utils->log('vhash_set_failure', 'user: '.$user['id']); - $errors[] = _('Could not initiate reset request. Please contact KaiRo.at and tell the team about this.'); + $errors[] = _('Could not initiate reset request.').' '._('Please contact KaiRo.at and tell the team about this.'); } else { $utils->log('pwd_reset_request', 'user: '.$user['id'].', email: '.$user['email']); @@ -174,7 +174,7 @@ if (!count($errors)) { } else { $utils->log('pwd_reset_mail_failure', 'user: '.$user['id'].', email: '.$user['email']); - $errors[] = _('The email with password reset instructions could not be sent to you. Please contact KaiRo.at and tell the team about this.'); + $errors[] = _('The email with password reset instructions could not be sent to you.').' '._('Please contact KaiRo.at and tell the team about this.'); } } } @@ -233,7 +233,7 @@ if (!count($errors)) { $result = $db->prepare('UPDATE `auth_users` SET `verify_hash` = \'\', `status` = \'ok\' WHERE `id` = :userid;'); if (!$result->execute(array(':userid' => $user['id']))) { $utils->log('verification_save_failure', 'user: '.$user['id']); - $errors[] = _('Could not save confirmation. Please contact KaiRo.at and tell the team about this.'); + $errors[] = _('Could not save confirmation.').' '._('Please contact KaiRo.at and tell the team about this.'); } $pagetype = 'verification_done'; } @@ -294,7 +294,7 @@ if (!count($errors)) { ':scope' => $scope, ':userid' => $user['id']))) { $utils->log('client_save_failure', 'client: '.$clientid); - $errors[] = 'Unexpectedly failed to save new client information. Please contact KaiRo.at and tell the team about this.'; + $errors[] = _('Unexpectedly failed to save new client information.').' '._('Please contact KaiRo.at and tell the team about this.'); } } if (!count($errors)) { @@ -337,7 +337,7 @@ if (!count($errors)) { $result = $db->prepare('UPDATE `auth_users` SET `pwdhash` = :pwdhash, `verify_hash` = \'\' WHERE `id` = :userid;'); if (!$result->execute(array(':pwdhash' => $newHash, ':userid' => $session['user']))) { $utils->log('pwd_reset_failure', 'user: '.$session['user']); - $errors[] = _('Password reset failed. Please contact KaiRo.at and tell the team about this.'); + $errors[] = _('Password reset failed.').' '._('Please contact KaiRo.at and tell the team about this.'); } else { $pagetype = 'reset_done';