Skip to content

Commit

Permalink
Validate email port before updating config in StaffCP
Browse files Browse the repository at this point in the history
  • Loading branch information
samerton committed Aug 24, 2021
1 parent 640bfbb commit a07f9d3
Show file tree
Hide file tree
Showing 24 changed files with 80 additions and 51 deletions.
1 change: 1 addition & 0 deletions custom/languages/Chinese(Simplified)/admin.php
Expand Up @@ -117,6 +117,7 @@
'mailer_settings_info' => '如果启用了 PHPMailer,则必须填写以下字段。 更多的填写信息请点击 <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">NamelessMC Wiki相关页面</a>.',
'host' => '主机 IP',
'email_port' => '端口',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => '出于安全原因,未显示密码。',
'send_test_email' => '发送测试邮件',
'send_test_email_info' => '以下按钮将尝试向您的电子邮件地址 <strong>{x}</strong> 发送电子邮件. 发送电子邮件时抛出的任何错误都将显示。', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Chinese/admin.php
Expand Up @@ -119,6 +119,7 @@
'mailer_settings_info' => '如果您啟用的PHPMailer,則以下字段都必須要,不知道是什麼請造訪 <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">維基</a>.',
'host' => '伺服器',
'email_port' => '端口',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => '安全原因,密碼不顯示.',
'send_test_email' => '傳送測試電子郵件',
'send_test_email_info' => '下面按鈕將會傳送測試電子郵件至 <strong>{x}</strong>. 任何錯誤都會被顯示.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Czech/admin.php
Expand Up @@ -105,6 +105,7 @@
'mailer_settings_info' => 'Pro povolení PHPMaileru jsou vyžadována následující pole. Pro více informací, jak vyplnit tato pole, se podívejte na <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">wiki</a>.',
'host' => 'Hostitel',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'Heslo není z bezpečnostních důvodů zobrazeno.',
'edit_email_messages' => 'E-mailové zprávy',
'email_language_info' => 'Nevidíte váš jazyk? Zkontrolujte, zda je v adresáři vašeho jazyka soubor \'emails.php\' a že je zapisovatelný vaším webovým serverem.',
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Danish/admin.php
Expand Up @@ -103,6 +103,7 @@
'mailer_settings_info' => 'The following fields are required if you have enabled PHPMailer. For more information on how to fill out these fields, check out <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">the wiki</a>.',
'host' => 'Host',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'The password is not shown for security reasons.',
'edit_email_messages' => 'Email Messages',
'email_language_info' => 'Not seeing your language? Make sure \'emails.php\' is in your language directory and it is writable by your webserver.',
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Dutch/admin.php
Expand Up @@ -117,6 +117,7 @@
'mailer_settings_info' => 'De volgende velden zijn nodig als je PHPMailer aan hebt gezet. Voor meer informatie hoe je deze velden moet invullen, bekijk dan <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">de wiki</a>.',
'host' => 'Host',
'email_port' => 'Poort',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'Het wachtwoord wordt om veiligheidsredenen niet getoond.',
'send_test_email' => 'Verzend test email',
'send_test_email_info' => 'Deze knop zorgt ervoor dat er een email naar het email addres, <strong>{x}</strong> wordt verzonden. Eventuele fouten tijdens het versturen van die e-mail, worden weergegeven.', // Verander {x} niet
Expand Down
1 change: 1 addition & 0 deletions custom/languages/EnglishUK/admin.php
Expand Up @@ -104,6 +104,7 @@
'mailer_settings_info' => 'The following fields are required if you have enabled PHPMailer. For more information on how to fill out these fields, check out <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">the wiki</a>.',
'host' => 'Host',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'The password is not shown for security reasons.',
'edit_email_messages' => 'Email Messages',
'email_language_info' => 'Not seeing your language? Make sure \'emails.php\' is in your language directory and it is writable by your webserver.',
Expand Down
1 change: 1 addition & 0 deletions custom/languages/EnglishUS/admin.php
Expand Up @@ -115,6 +115,7 @@
'mailer_settings_info' => 'The following fields are required if you have enabled PHPMailer. For more information on how to fill out these fields, check out <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">the wiki</a>.',
'host' => 'Host',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'The password is not shown for security reasons.',
'send_test_email' => 'Send Test Email',
'send_test_email_info' => 'The following button will attempt to send an email to your email address, <strong>{x}</strong>. Any errors thrown whilst sending the email will be displayed.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/French/admin.php
Expand Up @@ -112,6 +112,7 @@
'mailer_settings_info' => 'Les champs suivants sont requis si vous avez activé PHPMailer. Pour plus d’informations sur la façon de remplir ces champs, consultez <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">le wiki</a>.',
'host' => 'Hôte',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'Le mot de passe n’est pas affiché pour des raisons de sécurité.',
'send_test_email' => 'Envoyer un email de test',
'send_test_email_info' => 'Le bouton suivant tentera d\'envoyer un courriel à votre adresse électronique, <strong>{x}</strong>. Toute erreur commise lors de l\'envoi du courriel sera affichée.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/German/admin.php
Expand Up @@ -115,6 +115,7 @@
'mailer_settings_info' => 'Die folgenden Felder sind erforderlich, wenn Sie PHPMailer aktiviert haben. Weitere Informationen zum Ausfüllen dieser Felder finden Sie unter <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">NamelessMC Wiki</a>.',
'host' => 'Host',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'Das Password wird aus Sicherheitsgründen nicht angezeigt.',
'send_test_email' => 'Sende Test Email',
'send_test_email_info' => 'Die folgende Schaltfläche versucht, eine E-Mail an Ihre E-Mail-Adresse zu senden, <strong> {x} </strong>. Falls Irgendwelche Fehler, die beim Senden der E-Mail enstehen, werden angezeigt.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Greek/admin.php
Expand Up @@ -117,6 +117,7 @@
'mailer_settings_info' => 'The following fields are required if you have enabled PHPMailer. For more information on how to fill out these fields, check out <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">the wiki</a>.',
'host' => 'Host',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'The password is not shown for security reasons.',
'send_test_email' => 'Send Test Email',
'send_test_email_info' => 'The following button will attempt to send an email to your email address, <strong>{x}</strong>. Any errors thrown whilst sending the email will be displayed.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Italian/admin.php
Expand Up @@ -115,6 +115,7 @@
'mailer_settings_info' => 'I seguenti campi sono obbligatori se hai attivato PHPMailer. Per maggiori informazioni su come riempire questi campi controlla <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">la wiki</a>.',
'host' => 'Host',
'email_port' => 'Porta',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'La password non è mostrata per motivi di sicurezza.',
'send_test_email' => 'Invia email di test',
'send_test_email_info' => "Il seguente bottone tenterà di inviare un'email al tuo indirizzo email, <strong>{x}</strong>. Verranno visualizzati eventuali errori generati durante l'invio dell'email.", // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Japanese/admin.php
Expand Up @@ -120,6 +120,7 @@
'mailer_settings_info' => 'PHPMailerを有効にした場合、以下のフィールドに必要事項を記入する必要があります。以下のフィールドに記入する方法については <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">Wiki</a>を確認して下さい。',
'host' => 'ホスト',
'email_port' => 'ポート',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'セキュリティ保護のためパスワードは非表示です。',
'send_test_email' => 'テストメール 送信',
'send_test_email_info' => '<strong>{x}</strong>にNamelessMCからテストメールを送信します。テストを実行することで、メール設定が正しくされているかを確認できます。テスト終了後確認されたエラーは表示されます。送信するには「送信」を押してください。', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Lithuanian/admin.php
Expand Up @@ -113,6 +113,7 @@
'mailer_settings_info' => 'Šie laukai reikalingi, jei įjungėte PHPMailer. Norėdami gauti daugiau informacijos, kaip užpildyti šiuos laukus, patikrinkite <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-Gmail-or-SMTP-with-Nameless" target="_blank">wiki</a>.',
'host' => 'Host',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'Saugos sumetimais slaptažodis nerodomas.',
'send_test_email' => 'Siųsti bandomajį el. laišką',
'send_test_email_info' => 'Sekantis mygtukas bandys išsiųsti el. Laišką į jūsų el. Pašto adresą, <strong>{x}</strong>. Bus rodomos klaidos siunčiant el. Laišką.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Norwegian/admin.php
Expand Up @@ -115,6 +115,7 @@
'mailer_settings_info' => 'De markerte feltene må være utfylt hvis du har PHPMailer aktivert. For mer informasjon om hvordan du fyller ut disse feltene, sjekk ut <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">wiki</a>.',
'host' => 'Vert',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'Passordet vises ikke på grunn av sikkerhetsmessige årsaker.',
'send_test_email' => 'Send test e-post',
'send_test_email_info' => 'Denne knappen vil prøve å sende en test e-post til din e-postadressse, <strong>{x}</strong>. Alle feilmeldinger som blir oppdaget vil bli listet her.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Polish/admin.php
Expand Up @@ -115,6 +115,7 @@
'mailer_settings_info' => 'Następujące pola są wymagane, jeśli masz włączony PHPMailer. Aby uzyskać więcej informacji na temat wypełniania tych pól, przeczytaj <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-Gmail-or-SMTP-with-Nameless" target="_blank">ten</a> artykuł w NamelessMC wiki.',
'host' => 'Host',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'Hasło nie jest pokazane ze względów bezpieczeństwa.',
'send_test_email' => 'Wyślij testowy email',
'send_test_email_info' => 'Poniższy przycisk wyśle wiadomość e-mail na twój adres e-mail <strong> {x} </strong>. Zostaną wyświetlone wszystkie błędy wygenerowane podczas wysyłania wiadomości.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Portuguese/admin.php
Expand Up @@ -117,6 +117,7 @@
'mailer_settings_info' => 'Os campos a seguir são necessários se você tiver habilitado o PHPMailer. Para obter mais informações sobre como preencher esses campos, confira <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">a wiki</a>.',
'host' => 'Host',
'email_port' => 'Porta',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'A senha não é mostrada por razões de segurança.',
'send_test_email' => 'Enviar email de teste',
'send_test_email_info' => 'O seguinte botão irá tentar enviar um email para o seu endereço de email, <strong>{x}</strong>. Qualquer erro que occora enquanto envia o email será exibido.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Romanian/admin.php
Expand Up @@ -120,6 +120,7 @@
'mailer_settings_info' => 'Următoarele câmpuri sunt necesare dacă ați activat PHPMailer. Pentru mai multe informații despre completarea acestor câmpuri, consultați <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">wiki-ul</a>.',
'host' => 'Gazdă',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'Parola nu este afișată din motive de securitate.',
'send_test_email' => 'Trimiteți e-mail de încercare (test)',
'send_test_email_info' => 'Următorul buton va încerca să trimită un e-mail la adresa dvs. de e-mail, <strong>{x}</strong>. Orice erori întâmpinate în timp ce trimiteți e-mailul vor fi afișate.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Russian/admin.php
Expand Up @@ -116,6 +116,7 @@
'mailer_settings_info' => 'Следующие поля обязательны для заполнения, если вы включили PHPMailer. Для получения дополнительной информации о том, как заполнить эти поля, ознакомьтесь с <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">Wiki</a>.',
'host' => 'Хост',
'email_port' => 'Порт',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'Пароль не отображается по соображениям безопасности.',
'send_test_email' => 'Отправить тестовое письмо',
'send_test_email_info' => 'Следующая кнопка попытается отправить электронное письмо на ваш адрес электронной почты, <strong>{x}</strong>. Любые ошибки, возникшие при отправке письма, будут отображены.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Slovak/admin.php
Expand Up @@ -104,6 +104,7 @@
'mailer_settings_info' => 'Nasledujúce polia sú povinné, ak ste povolili PHPMailer. Ďalšie informácie o tom, ako vyplniť tieto polia, nájdete na <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">wiki</a>.',
'host' => 'Host',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'Heslo sa z bezpečnostných dôvodov nezobrazuje.',
'edit_email_messages' => 'Emailové správy',
'email_language_info' => 'Nevidíte svoj jazyk? Uistite sa, že súbor \'emails.php\' je vo vašom jazykovom adresári a je zapisovateľný vašim webovým serverom.',
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Spanish/admin.php
Expand Up @@ -115,6 +115,7 @@
'mailer_settings_info' => 'Los campos siguientes son obligatorios si ha habilitado PHPMailer. Para obtener más información sobre como rellenar estos campos, consulta en <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">the wiki</a>.',
'host' => 'Dirección IP',
'email_port' => 'Puerto',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'La contraseña no se muestra por razones de seguridad.',
'send_test_email' => 'Enviar prueba de correo electrónico',
'send_test_email_info' => 'El siguiente botón intentará enviar un correo electrónico a su dirección de correo electrónico, <strong>{x}</strong>. Se mostrarán todos los errores lanzados mientras se envía el correo.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/SpanishES/admin.php
Expand Up @@ -104,6 +104,7 @@
'mailer_settings_info' => 'Los siguientes campos son obligatorios si ha activado PHPMailer. Para más información sobre cómo rellenar estos campos, consulte <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-o-Outlook)" target="_blank">la wiki</a>.',
'host' => 'Servidor',
'email_port' => 'Puerto',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'La contraseña no se muestra por razones de seguridad.',
'edit_email_messages' => 'Mensajes de correo electrónico',
'email_language_info' => '¿No ve su idioma? Asegúrese de que \'emails.php\' está en su directorio de idiomas y es escribible por su servidor web.',
Expand Down
1 change: 1 addition & 0 deletions custom/languages/SwedishSE/admin.php
Expand Up @@ -116,6 +116,7 @@
'mailer_settings_info' => 'The following fields are required if you have enabled PHPMailer. For more information on how to fill out these fields, check out <a href="https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(e.g.-Gmail-or-Outlook)" target="_blank">the wiki</a>.',
'host' => 'Host',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'Lösenordet visas inte av säkerhetsskäl.',
'send_test_email' => 'Skicka Test E-post',
'send_test_email_info' => 'Följande knapp kommer att försöka skicka ett mail till din e-postadress, <strong> {x} </strong>. Eventuella fel när du skickar e-postmeddelandet visas.', // Don't replace {x}
Expand Down
1 change: 1 addition & 0 deletions custom/languages/Turkish/admin.php
Expand Up @@ -115,6 +115,7 @@
'mailer_settings_info' => 'PHPMailer\'ı etkinleştirdiyseniz aşağıdaki alanlar gereklidir. Bu alanları doldurma hakkında daha fazla bilgi için <a href "https://github.com/NamelessMC/Nameless/wiki/Setting-up-SMTP-with-Nameless-(eg-Gmail-or-Outlook )" target =" _ blank "> iki</a>.',
'host' => 'Host',
'email_port' => 'Port',
'email_port_invalid' => 'Please insert a valid email port.',
'email_password_hidden' => 'Güvenlik nedeniyle şifre gösterilmez.',
'send_test_email' => 'Test E-Postası Gönder',
'send_test_email_info' => 'Aşağıdaki düğme, e-posta adresinize <strong>{x}</strong> bir e-posta göndermeye çalışacaktır. E-posta gönderilirken atılan hatalar görüntülenir.', // Don't replace {x}
Expand Down

0 comments on commit a07f9d3

Please sign in to comment.