-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
index.php
239 lines (236 loc) · 16.3 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<?php
use Kirby\Cms\App as Kirby;
@include_once __DIR__ . '/vendor/autoload.php';
Kirby::plugin('mzur/uniform', [
'templates' => [
'uniform/log-json' => __DIR__.'/templates/log-json.php',
'emails/uniform-default' => __DIR__.'/templates/emails/default.php',
'emails/uniform-table' => __DIR__.'/templates/emails/table.php',
],
'snippets' => [
'uniform/errors' => __DIR__.'/snippets/errors.php',
],
'translations' => [
'cs' => [
'uniform-filled-potty' => 'Pole, které má zůstat prázdné, bylo vyplněno. Pole prosím nevyplňujte a zkuste formulář odeslat znovu.',
'uniform-calc-incorrect' => 'Doplňte prosím výsledek příkladu.',
'uniform-email-subject' => 'Zpráva z webového formuláře',
'uniform-email-error' => 'Při odesílání formuláře se vyskytla chyba',
'uniform-email-copy' => 'Kopie:',
'uniform-calc-plus' => 'plus',
'uniform-log-error' => 'Při zapisování do logu se vyskytla chyba.',
'uniform-login-error' => 'Špatné uživatelské jméno nebo heslo.',
'uniform-webhook-error' => 'Při volání webhooku se vyskytla chyba: ',
'uniform-email-select-error' => 'Adresa příjemce je neplatná.',
'uniform-upload-mkdir-fail' => 'Nepodařilo se vytvořit cílovou složku.',
'uniform-upload-exists' => 'Soubor již existuje.',
'uniform-upload-failed' => 'Soubor se nepodařilo nahrát.',
// 'uniform-honeytime-reject' => '',
// 'uniform-honeytime-invalid' => '',
],
'de' => [
'uniform-filled-potty' => 'Es wurde das Feld ausgefüllt, das leer bleiben sollte. Falls Sie kein Spam-Bot sind, versuchen Sie es bitte erneut ohne das Feld auszufüllen.',
'uniform-calc-incorrect' => 'Bitte lösen Sie die Rechenaufgabe.',
'uniform-email-subject' => 'Nachricht über das Formular',
'uniform-email-error' => 'Es ist ein Fehler beim Senden aufgetreten',
'uniform-email-copy' => 'Kopie:',
'uniform-calc-plus' => 'plus',
'uniform-log-error' => 'Beim Schreiben in die Log-Datei ist ein Fehler aufgetreten.',
'uniform-login-error' => 'Benutzername oder Passwort falsch.',
'uniform-webhook-error' => 'Beim Aufruf des Webhook ist ein Fehler aufgetreten: ',
'uniform-email-select-error' => 'Ungültiger Empfänger.',
'uniform-upload-mkdir-fail' => 'Zielverzeichnis konnte nicht erstellt werden.',
'uniform-upload-exists' => 'Die Datei existiert bereits.',
'uniform-upload-failed' => 'Die Datei konnte nicht hochgeladen werden.',
'uniform-honeytime-reject' => 'Das Formular wurde zu schnell abgeschickt und hat den Spamschutz ausgelöst.',
'uniform-honeytime-invalid' => 'Die Formulardaten waren ungültig und haben den Spamschutz ausgelöst.',
],
'en' => [
'uniform-filled-potty' => 'The form field that is supposed to be empty was filled. In case you are not a spam-bot, please try again leaving the field blank.',
'uniform-calc-incorrect' => 'Please solve the arithmetic problem.',
'uniform-email-subject' => 'Message from the web form',
'uniform-email-error' => 'There was an error sending the form',
'uniform-email-copy' => 'Copy:',
'uniform-calc-plus' => 'plus',
'uniform-log-error' => 'There was an error while writing to the logfile.',
'uniform-login-error' => 'Wrong username or password.',
'uniform-webhook-error' => 'There was an error calling the webhook: ',
'uniform-email-select-error' => 'Invalid recipient.',
'uniform-upload-mkdir-fail' => 'Could not create target directory.',
'uniform-upload-exists' => 'The file already exists.',
'uniform-upload-failed' => 'The file could not be uploaded.',
'uniform-honeytime-reject' => 'The form was submitted too quickly and triggered spam protection.',
'uniform-honeytime-invalid' => 'The form data was invalid and triggered the spam protection.',
],
'es' => [
'uniform-filled-potty' => 'Se ha rellenado un campo del formulario que debería estar vacío. Si usted no es un spam bot, vuelva a intentarlo dejando el campo en blanco.',
'uniform-calc-incorrect' => 'Por favor, resuelva el problema aritmético.',
'uniform-email-subject' => 'Mensaje del formulario web',
'uniform-email-error' => 'Se ha producido un error al enviar el formulario',
'uniform-email-copy' => 'Copia:',
'uniform-calc-plus' => 'plus',
'uniform-log-error' => 'Se ha producido un error al escribir en el archivo de registro.',
'uniform-login-error' => 'El usuario o la contraseña no son correctos.',
'uniform-webhook-error' => 'Se ha producido un error al llamar el webhook: ',
'uniform-email-select-error' => 'Destinatario incorrecto.',
// 'uniform-upload-mkdir-fail' => '',
// 'uniform-upload-exists' => '',
// 'uniform-upload-failed' => '',
// 'uniform-honeytime-reject' => '',
// 'uniform-honeytime-invalid' => '',
],
'fr' => [
'uniform-filled-potty' => 'Le champ du formulaire supposé être vide a été renseigné. Dans le cas où vous ne seriez pas un robot spammeur, merci de réessayer en laissant ce champ vide.',
'uniform-calc-incorrect' => 'Veuillez résoudre le problème arithmétique.',
'uniform-email-subject' => 'Message du formulaire',
'uniform-email-error' => 'Une erreur s’est produite lors de l’envoi du formulaire',
'uniform-email-copy' => 'Copie :',
'uniform-calc-plus' => 'plus',
'uniform-log-error' => 'Une erreur s’est produite lors de l’écriture dans le fichier du journal.',
'uniform-login-error' => 'Identifiant ou mot de passe incorrect.',
'uniform-webhook-error' => 'Une erreur s’est produite lors de l’appel du webhook : ',
'uniform-email-select-error' => 'Destinataire invalide.',
'uniform-upload-mkdir-fail' => 'Le répertoire de destination n’a pu être créé.',
'uniform-upload-exists' => 'Le fichier existe déjà.',
'uniform-upload-failed' => 'Le fichier n’a pu être transféré.',
'uniform-honeytime-reject' => 'Le formulaire a été soumis trop rapidement et a déclenché la protection anti-spam.',
'uniform-honeytime-invalid' => 'La donnée du formulaire était invalide et a déclenché la protection anti-spam.',
],
'it' => [
'uniform-filled-potty' => 'Il campo che doveva restare vuoto è stato compilato. Se non sei uno spam-bot, per favore riprova ad inviare il form senza compilarlo.',
'uniform-calc-incorrect' => 'Per favore, risolvi il problema aritmetico.',
'uniform-email-subject' => 'Messaggio dal form',
'uniform-email-error' => 'Errore durante l\'invio del form',
'uniform-email-copy' => 'Copia:',
'uniform-calc-plus' => 'più',
'uniform-log-error' => 'Errore nella scrittura del file di log.',
'uniform-login-error' => 'Nome utente o password errati.',
'uniform-webhook-error' => 'Errore durante la chiamata del webhook: ',
'uniform-email-select-error' => 'Destinatario non valido.',
'uniform-upload-mkdir-fail' => 'Impossibile creare la cartella di destinazione.',
'uniform-upload-exists' => 'File già esistente.',
'uniform-upload-failed' => 'Impossibile effettuare l\'upload del file.',
'uniform-honeytime-reject' => 'Il form è stato inviato troppo velocemente e ha attivato la protezione antispam.',
'uniform-honeytime-invalid' => 'I dati del form non erano validi e hanno attivato la protezione antispam.',
],
'ja' => [
'uniform-filled-potty' => '空のはずのフォームフィールドが入力されました。スパムボットではない場合は、フィールドを空欄にして再度お試しください。',
'uniform-calc-incorrect' => '算数の問題を解いてください。',
'uniform-email-subject' => 'ウェブフォームからのメッセージ',
'uniform-email-error' => 'フォームを送信する際にエラーが発生しました。',
'uniform-email-copy' => '了解しました:',
'uniform-calc-plus' => 'プラス',
'uniform-log-error' => 'ログファイルへの書き込み中にエラーが発生しました。',
'uniform-login-error' => 'ユーザー名またはパスワードが間違っています。',
'uniform-webhook-error' => 'webhookを呼び出すエラーがありました:',
'uniform-email-select-error' => '無効な受信者です。',
'uniform-upload-mkdir-fail' => 'ターゲットディレクトリを作成できませんでした。',
'uniform-upload-exists' => 'ファイルはすでに存在しています。',
'uniform-upload-failed' => 'ファイルをアップロードできませんでした。',
// 'uniform-honeytime-reject' => '',
// 'uniform-honeytime-invalid' => '',
],
'nl' => [
'uniform-filled-potty' => 'Er is een veld ingevuld dat leeg moet blijven. Mocht u geen Spam-Bot zijn, probeer het opnieuw zonder dat veld in te vullen.',
'uniform-calc-incorrect' => 'Los a.u.b. de rekenkundige opgave op.',
'uniform-email-subject' => 'Bericht van het webformulier',
'uniform-email-error' => 'Er is een fout opgetreden bij het verzenden van het formulier',
'uniform-email-copy' => 'Kopie:',
'uniform-calc-plus' => 'plus',
'uniform-log-error' => 'Er is een fout opgetreden bij het wegschrijven in het logbestand.',
'uniform-login-error' => 'Ongeldige gebruikersnaam of wachtwoord.',
'uniform-webhook-error' => 'Er is een fout opgetreden bij het aanroepen van de webhook: ',
'uniform-email-select-error' => 'Ongeldige ontvanger.',
'uniform-upload-mkdir-fail' => 'De map kon niet worden aangemaakt.',
'uniform-upload-exists' => 'Het bestand bestaat al.',
'uniform-upload-failed' => 'Het bestand kon niet worden geupload.',
// 'uniform-honeytime-reject' => '',
// 'uniform-honeytime-invalid' => '',
],
'pt_BR' => [
'uniform-filled-potty' => 'O campo de formulário que deveria estar vazio foi preenchido. Caso você não seja um robô de SPAM, por favor tente novamente deixando o campo em branco.',
'uniform-calc-incorrect' => 'Por favor resolva o problema aritmético.',
'uniform-email-subject' => 'Mensagem do formulário online',
'uniform-email-error' => 'Houve um erro ao enviar o formulário',
'uniform-email-copy' => 'Cópia:',
'uniform-calc-plus' => 'mais',
'uniform-log-error' => 'Houve um erro ao escrever o arquivo de registro.',
'uniform-login-error' => 'Usuário ou senha inválido.',
'uniform-webhook-error' => 'Houve um erro ao chamar o webhook: ',
'uniform-email-select-error' => 'Destinatário inválido.',
'uniform-upload-mkdir-fail' => 'Não foi possível criar a pasta de destino.',
'uniform-upload-exists' => 'O arquivo já existe.',
'uniform-upload-failed' => 'O arquivo não pode ser enviado.',
// 'uniform-honeytime-reject' => '',
// 'uniform-honeytime-invalid' => '',
],
'pt_PT' => [
'uniform-filled-potty' => 'O campo de formulário que deveria estar vazio foi preenchido. Caso você não seja um robô de SPAM, por favor tente novamente deixando o campo em branco.',
'uniform-calc-incorrect' => 'Por favor resolva o problema aritmético.',
'uniform-email-subject' => 'Mensagem do formulário online',
'uniform-email-error' => 'Houve um erro ao enviar o formulário',
'uniform-email-copy' => 'Cópia:',
'uniform-calc-plus' => 'mais',
'uniform-log-error' => 'Houve um erro ao escrever o ficheiro de registro.',
'uniform-login-error' => 'Usuário ou senha inválido.',
'uniform-webhook-error' => 'Houve um erro ao chamar o webhook: ',
'uniform-email-select-error' => 'Destinatário inválido.',
'uniform-upload-mkdir-fail' => 'Não foi possível criar a pasta de destino.',
'uniform-upload-exists' => 'O ficheiro já existe.',
'uniform-upload-failed' => 'O ficheiro não pode ser enviado.',
// 'uniform-honeytime-reject' => '',
// 'uniform-honeytime-invalid' => '',
],
'ro' => [
'uniform-filled-potty' => 'Câmpul care trebuia să fie necompletat este completat. Dacă nu ești un robot de tip spam, încearcă din nou și lasă câmpul necompletat.',
'uniform-calc-incorrect' => 'Te rog rezolvă problema de aritmetică.',
'uniform-email-subject' => 'Mesaj din formularul web.',
'uniform-email-error' => 'A apărut o eroare în momentul trimiterii formularului',
'uniform-email-copy' => 'Copiează:',
'uniform-calc-plus' => 'plus',
'uniform-log-error' => 'A apărut o eroare în momentul completării fișierului de log-uri.',
'uniform-login-error' => 'Numele de utilizator sau parola este greșită.',
'uniform-webhook-error' => 'A apărut o eroare la apelarea webhook-ului: ',
'uniform-email-select-error' => 'Destinatar nevalid.',
'uniform-upload-mkdir-fail' => 'Nu s-a putut crea directorul țintă.',
'uniform-upload-exists' => 'Acest fișier este deja încărcat.',
'uniform-upload-failed' => 'Acest fișier nu s-a putut încărca.',
// 'uniform-honeytime-reject' => '',
// 'uniform-honeytime-invalid' => '',
],
'tr' => [
'uniform-filled-potty' => 'Boş olması gereken form alanı dolduruldu. Spam bot değilseniz, lütfen alanı boş bırakarak tekrar deneyin.',
'uniform-calc-incorrect' => 'Lütfen aritmetik problemini çözün.',
'uniform-email-subject' => 'Web formundan gelen mesaj',
'uniform-email-error' => 'Form gönderilirken bir hata oluştu',
'uniform-email-copy' => 'Kopya:',
'uniform-calc-plus' => 'artı',
'uniform-log-error' => 'Günlük dosyasına yazarken bir hata oluştu.',
'uniform-login-error' => 'Yanlış kullanıcı adı veya parola.',
'uniform-webhook-error' => 'Webhook çağırılırken bir hata oluştu:',
'uniform-email-select-error' => 'Geçersiz alıcı.',
'uniform-upload-mkdir-fail' => 'Hedef dizin oluşturulamadı.',
'uniform-upload-exists' => 'Dosya zaten var.',
'uniform-upload-failed' => 'Dosya yüklenemedi.',
// 'uniform-honeytime-reject' => '',
// 'uniform-honeytime-invalid' => '',
],
'tr_TR' => [
'uniform-filled-potty' => 'Boş olması gereken form alanı dolduruldu. Spam bot değilseniz, lütfen alanı boş bırakarak tekrar deneyin.',
'uniform-calc-incorrect' => 'Lütfen aritmetik problemini çözün.',
'uniform-email-subject' => 'Web formundan gelen mesaj',
'uniform-email-error' => 'Form gönderilirken bir hata oluştu',
'uniform-email-copy' => 'Kopya:',
'uniform-calc-plus' => 'artı',
'uniform-log-error' => 'Günlük dosyasına yazarken bir hata oluştu.',
'uniform-login-error' => 'Yanlış kullanıcı adı veya parola.',
'uniform-webhook-error' => 'Webhook çağırılırken bir hata oluştu:',
'uniform-email-select-error' => 'Geçersiz alıcı.',
'uniform-upload-mkdir-fail' => 'Hedef dizin oluşturulamadı.',
'uniform-upload-exists' => 'Dosya zaten var.',
'uniform-upload-failed' => 'Dosya yüklenemedi.',
// 'uniform-honeytime-reject' => '',
// 'uniform-honeytime-invalid' => '',
],
],
]);