Util/Mails

* make sendMail a member of Util
 * move mail templates from strings to template files
 * enabled debug output to page
This commit is contained in:
Sarjuuk
2025-07-27 18:05:48 +02:00
parent 40b5c992e2
commit ceec228718
27 changed files with 236 additions and 63 deletions

View File

@@ -898,6 +898,7 @@ $lang = array(
'recoverUser' => "Benutzernamenanfrage",
'recoverPass' => "Kennwort zurücksetzen: Schritt %s von 2",
'newPass' => "Neues Kennwort",
'tokenExpires' => "Das Token wird in %s verfallen.",
// creation
'register' => "Registrierung: Schritt %s von 2",
@@ -954,12 +955,7 @@ $lang = array(
'comments' => "Kommentare",
'screenshots' => "Screenshots",
'videos' => "Videos",
'posts' => "Forenbeiträge",
// user mail
'tokenExpires' => "Das Token wird in %s verfallen.",
'accConfirm' => ["Kontobestätigung", "Willkommen bei CFG_NAME_SHORT!\r\n\r\nKlicke auf den Link um euren Account zu aktivieren.\r\n\r\nHOST_URL?account=signup&token=%s\r\n\r\nFalls Ihr diese Mail nicht angefordert habt kann sie einfach ignoriert werden."],
'recoverUser' => ["Benutzernamenanfrage", "Folgt diesem Link um euch anzumelden.\r\n\r\nHOST_URL?account=signin&token=%s\r\n\r\nFalls Ihr diese Mail nicht angefordert habt kann sie einfach ignoriert werden."],
'resetPass' => ["Kennwortreset", "Folgt diesem Link um euer Kennwort zurückzusetzen.\r\n\r\nHOST_URL?account=forgotpassword&token=%s\r\n\r\nFalls Ihr diese Mail nicht angefordert habt kann sie einfach ignoriert werden."]
'posts' => "Forenbeiträge"
),
'emote' => array(
'notFound' => "Dieses Emote existiert nicht.",

View File

@@ -898,6 +898,7 @@ $lang = array(
'recoverUser' => "Username Request",
'recoverPass' => "Password Reset: Step %s of 2",
'newPass' => "New Password",
'tokenExpires' => "This token expires in %s.",
// creation
'register' => "Registration - Step %s of 2",
@@ -954,12 +955,7 @@ $lang = array(
'comments' => "Comments",
'screenshots' => "Screenshots",
'videos' => "Videos",
'posts' => "Forum posts",
// user mail
'tokenExpires' => "This token expires in %s.",
'accConfirm' => ["Account Confirmation", "Welcome to CFG_NAME_SHORT!\r\n\r\nClick the Link below to activate your account.\r\n\r\nHOST_URL?account=signup&token=%s\r\n\r\nIf you did not request this mail simply ignore it."],
'recoverUser' => ["User Recovery", "Follow this link to log in.\r\n\r\nHOST_URL?account=signin&token=%s\r\n\r\nIf you did not request this mail simply ignore it."],
'resetPass' => ["Password Reset", "Follow this link to reset your password.\r\n\r\nHOST_URL?account=forgotpassword&token=%s\r\n\r\nIf you did not request this mail simply ignore it."]
'posts' => "Forum posts"
),
'emote' => array(
'notFound' => "This Emote doesn't exist.",

View File

@@ -898,6 +898,7 @@ $lang = array(
'recoverUser' => "Pedir nombre de usuario",
'recoverPass' => "Reiniciar contraseña: Paso %s de 2",
'newPass' => "Nueva Contraseña",
'tokenExpires' => "Este token expira en %s",
// creation
'register' => "Inscripción: Paso %s de 2",
@@ -954,12 +955,7 @@ $lang = array(
'comments' => "Comentarios",
'screenshots' => "Capturas de pantalla",
'videos' => "Vídeos",
'posts' => "Mensajes en los foros",
// user mail
'tokenExpires' => "Este token expira en %s",
'accConfirm' => ["Confirmación de Cuenta", "Bienvenido a CFG_NAME_SHORT!\r\n\r\nHaga click en el enlace siguiente para activar su cuenta.\r\n\r\nHOST_URL?account=signup&token=%s\r\n\r\nSi usted no solicitó este correo, por favor ignorelo."],
'recoverUser' => ["Recuperacion de Usuario", "Siga a este enlace para ingresar.\r\n\r\nHOST_URL?account=signin&token=%s\r\n\r\nSi usted no solicitó este correo, por favor ignorelo."],
'resetPass' => ["Reinicio de Contraseña", "Siga este enlace para reiniciar su contraseña.\r\n\r\nHOST_URL?account=forgotpassword&token=%s\r\n\r\nSi usted no solicitó este correo, por favor ignorelo."]
'posts' => "Mensajes en los foros"
),
'emote' => array(
'notFound' => "Este emoticón no existe.",

View File

@@ -898,6 +898,7 @@ $lang = array(
'recoverUser' => "Demande de nom d'utilisateur",
'recoverPass' => "Changement de mot de passe : Étape %s de 2",
'newPass' => "Nouveau mot de passe",
'tokenExpires' => "This token expires in %s.",
// creation
'register' => "Enregistrement : Étape %s de 2",
@@ -954,12 +955,7 @@ $lang = array(
'comments' => "Commentaires",
'screenshots' => "Captures d'écran",
'videos' => "Vidéos",
'posts' => "Messages sur le forum",
// user mail
'tokenExpires' => "This token expires in %s.",
'accConfirm' => ["Activation de compte", "Bienvenue sur CFG_NAME_SHORT!\r\n\r\nCliquez sur le lien ci-dessous pour activer votre compte.\r\n\r\nHOST_URL?account=signup&token=%s\r\n\r\nSi vous n'avez pas demandé cet email, ignorez le."],
'recoverUser' => ["Récupération d'utilisateur", "Suivez ce lien pour vous connecter.\r\n\r\nHOST_URL?account=signin&token=%s\r\n\r\nSi vous n'avez pas demandé cet email, ignorez le."],
'resetPass' => ["Réinitialisation du mot de passe", "Suivez ce lien pour réinitialiser votre mot de passe.\r\n\r\nHOST_URL?account=forgotpassword&token=%s\r\n\r\nSi vous n'avez pas fait de demande de réinitialisation, ignorez cet email."]
'posts' => "Messages sur le forum"
),
'emote' => array(
'notFound' => "[This Emote doesn't exist.]",

View File

@@ -898,6 +898,7 @@ $lang = array(
'recoverUser' => "Запрос имени пользователя",
'recoverPass' => "Сброс пароля: Шаг %s из 2",
'newPass' => "New Password",
'tokenExpires' => "This token expires in %s.",
// creation
'register' => "Регистрация: Шаг %s из 2",
@@ -954,12 +955,7 @@ $lang = array(
'comments' => "Комментарии",
'screenshots' => "Скриншоты",
'videos' => "Видео",
'posts' => "Сообщений на форумах",
// user mail
'tokenExpires' => "This token expires in %s.",
'accConfirm' => ["Account Confirmation", "Welcome to CFG_NAME_SHORT!\r\n\r\nClick the Link below to activate your account.\r\n\r\nHOST_URL?account=signup&token=%s\r\n\r\nIf you did not request this mail simply ignore it."],
'recoverUser' => ["User Recovery", "Follow this link to log in.\r\n\r\nHOST_URL?account=signin&token=%s\r\n\r\nIf you did not request this mail simply ignore it."],
'resetPass' => ["Password Reset", "Follow this link to reset your password.\r\n\r\nHOST_URL?account=forgotpassword&token=%s\r\n\r\nIf you did not request this mail simply ignore it."]
'posts' => "Сообщений на форумах"
),
'emote' => array(
'notFound' => "[This Emote doesn't exist.]",

View File

@@ -898,6 +898,7 @@ $lang = array(
'recoverUser' => "用户名需求",
'recoverPass' => "密码重置:步骤 %s / 2",
'newPass' => "新密码",
'tokenExpires' => "此令牌将在%s过期。",
// creation
'register' => "注册 - 步骤 %s / 2",
@@ -954,12 +955,7 @@ $lang = array(
'comments' => "评论",
'screenshots' => "截图",
'videos' => "视频",
'posts' => "论坛帖子",
// user mail
'tokenExpires' => "此令牌将在%s过期。",
'accConfirm' => ["账户确认", "欢迎来到CFG_NAME_SHORT!\r\n\r\n点击下方链接以激活您的账户。\r\n\r\nHOST_URL?account=signup&token=%s\r\n\r\n如果您没有请求此邮件,请忽略它。"],
'recoverUser' => ["用户恢复", "点击此链接登录\r\n\r\nHOST_URL?account=signin&token=%s\r\n\r\n如果您没有请求此邮件,请忽略它。"],
'resetPass' => ["重置密码", "点击此链接以重置您的密码。\r\n\r\nHOST_URL?account=forgotpassword&token=%s\r\n\r\n如果您没有请求此邮件,请忽略它。"]
'posts' => "论坛帖子"
),
'emote' => array(
'notFound' => "这个表情不存在。",