├── .gitignore ├── feedback ├── vendor │ └── phpmailer │ │ └── phpmailer │ │ ├── VERSION │ │ ├── src │ │ ├── Exception.php │ │ ├── OAuthTokenProvider.php │ │ ├── OAuth.php │ │ └── POP3.php │ │ ├── language │ │ ├── phpmailer.lang-zh_cn.php │ │ ├── phpmailer.lang-ch.php │ │ ├── phpmailer.lang-zh.php │ │ ├── phpmailer.lang-ko.php │ │ ├── phpmailer.lang-ja.php │ │ ├── phpmailer.lang-he.php │ │ ├── phpmailer.lang-nb.php │ │ ├── phpmailer.lang-af.php │ │ ├── phpmailer.lang-lv.php │ │ ├── phpmailer.lang-sv.php │ │ ├── phpmailer.lang-vi.php │ │ ├── phpmailer.lang-lt.php │ │ ├── phpmailer.lang-ar.php │ │ ├── phpmailer.lang-fo.php │ │ ├── phpmailer.lang-eo.php │ │ ├── phpmailer.lang-hu.php │ │ ├── phpmailer.lang-az.php │ │ ├── phpmailer.lang-hi.php │ │ ├── phpmailer.lang-fa.php │ │ ├── phpmailer.lang-be.php │ │ ├── phpmailer.lang-hy.php │ │ ├── phpmailer.lang-bg.php │ │ ├── phpmailer.lang-ca.php │ │ ├── phpmailer.lang-da.php │ │ ├── phpmailer.lang-es.php │ │ ├── phpmailer.lang-fi.php │ │ ├── phpmailer.lang-et.php │ │ ├── phpmailer.lang-tl.php │ │ ├── phpmailer.lang-ba.php │ │ ├── phpmailer.lang-gl.php │ │ ├── phpmailer.lang-tr.php │ │ ├── phpmailer.lang-hr.php │ │ ├── phpmailer.lang-ms.php │ │ ├── phpmailer.lang-cs.php │ │ ├── phpmailer.lang-ru.php │ │ ├── phpmailer.lang-pl.php │ │ ├── phpmailer.lang-el.php │ │ ├── phpmailer.lang-ka.php │ │ ├── phpmailer.lang-sr.php │ │ ├── phpmailer.lang-uk.php │ │ ├── phpmailer.lang-mg.php │ │ ├── phpmailer.lang-sr_latn.php │ │ ├── phpmailer.lang-it.php │ │ ├── phpmailer.lang-pt.php │ │ ├── phpmailer.lang-sk.php │ │ ├── phpmailer.lang-de.php │ │ ├── phpmailer.lang-id.php │ │ ├── phpmailer.lang-nl.php │ │ ├── phpmailer.lang-ro.php │ │ ├── phpmailer.lang-sl.php │ │ ├── phpmailer.lang-pt_br.php │ │ └── phpmailer.lang-fr.php │ │ ├── COMMITMENT │ │ ├── composer.json │ │ ├── get_oauth_token.php │ │ └── SECURITY.md ├── captcha │ ├── oswald.ttf │ ├── background.png │ └── captcha.php ├── logs │ └── .htaccess ├── uploads │ └── .htaccess ├── template │ ├── email_client.tpl │ └── email.tpl ├── index.html ├── examples │ ├── form-processing-1.php │ ├── form-processing-2.php │ └── two-forms.html ├── form-processing.php └── js │ └── form-processing.js ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .idea -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/VERSION: -------------------------------------------------------------------------------- 1 | 6.6.0 -------------------------------------------------------------------------------- /feedback/captcha/oswald.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itchief/feedback-form/HEAD/feedback/captcha/oswald.ttf -------------------------------------------------------------------------------- /feedback/captcha/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itchief/feedback-form/HEAD/feedback/captcha/background.png -------------------------------------------------------------------------------- /feedback/logs/.htaccess: -------------------------------------------------------------------------------- 1 | # line below if for Apache 2.4 2 | 3 | Require all denied 4 | 5 | 6 | # line below if for Apache 2.2 7 | 8 | deny from all 9 | Satisfy All 10 | 11 | 12 | # section for Apache 2.2 and 2.4 13 | IndexIgnore * -------------------------------------------------------------------------------- /feedback/uploads/.htaccess: -------------------------------------------------------------------------------- 1 | # line below if for Apache 2.4 2 | 3 | Require all denied 4 | 5 | 6 | # line below if for Apache 2.2 7 | 8 | deny from all 9 | Satisfy All 10 | 11 | 12 | # section for Apache 2.2 and 2.4 13 | IndexIgnore * -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Alexander Maltsev 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /feedback/template/email_client.tpl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 36 | 37 | 38 |
5 | 6 | 7 | 8 | 11 | 12 | 13 | 14 | 15 | 16 | 24 | 25 | 26 | 27 | 28 | 29 | 32 | 33 | 34 |
9 | %subject% 10 |
17 | 18 |

Здравствуйте %name%, ваше сообщение доставлено.

19 |

На данное письмо отвечать не надо.

20 |
21 | Дата отправки: %date% 22 | 23 |
30 |

© 2022 Мой сайт.

31 |
35 |
39 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/src/Exception.php: -------------------------------------------------------------------------------- 1 | 10 | * @author Jim Jagielski (jimjag) 11 | * @author Andy Prevost (codeworxtech) 12 | * @author Brent R. Matzelle (original founder) 13 | * @copyright 2012 - 2020 Marcus Bointon 14 | * @copyright 2010 - 2012 Jim Jagielski 15 | * @copyright 2004 - 2009 Andy Prevost 16 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 17 | * @note This program is distributed in the hope that it will be useful - WITHOUT 18 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 | * FITNESS FOR A PARTICULAR PURPOSE. 20 | */ 21 | 22 | namespace PHPMailer\PHPMailer; 23 | 24 | /** 25 | * PHPMailer exception handler. 26 | * 27 | * @author Marcus Bointon 28 | */ 29 | class Exception extends \Exception 30 | { 31 | /** 32 | * Prettify error message output. 33 | * 34 | * @return string 35 | */ 36 | public function errorMessage() 37 | { 38 | return '' . htmlspecialchars($this->getMessage(), ENT_COMPAT | ENT_HTML401) . "
\n"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php: -------------------------------------------------------------------------------- 1 | 7 | * @author young 8 | * @author Teddysun 9 | */ 10 | 11 | $PHPMAILER_LANG['authenticate'] = 'SMTP 错误:登录失败。'; 12 | $PHPMAILER_LANG['connect_host'] = 'SMTP 错误:无法连接到 SMTP 主机。'; 13 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误:数据不被接受。'; 14 | $PHPMAILER_LANG['empty_message'] = '邮件正文为空。'; 15 | $PHPMAILER_LANG['encoding'] = '未知编码:'; 16 | $PHPMAILER_LANG['execute'] = '无法执行:'; 17 | $PHPMAILER_LANG['file_access'] = '无法访问文件:'; 18 | $PHPMAILER_LANG['file_open'] = '文件错误:无法打开文件:'; 19 | $PHPMAILER_LANG['from_failed'] = '发送地址错误:'; 20 | $PHPMAILER_LANG['instantiate'] = '未知函数调用。'; 21 | $PHPMAILER_LANG['invalid_address'] = '发送失败,电子邮箱地址是无效的:'; 22 | $PHPMAILER_LANG['mailer_not_supported'] = '发信客户端不被支持。'; 23 | $PHPMAILER_LANG['provide_address'] = '必须提供至少一个收件人地址。'; 24 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误:收件人地址错误:'; 25 | $PHPMAILER_LANG['signing'] = '登录失败:'; 26 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP服务器连接失败。'; 27 | $PHPMAILER_LANG['smtp_error'] = 'SMTP服务器出错:'; 28 | $PHPMAILER_LANG['variable_set'] = '无法设置或重置变量:'; 29 | $PHPMAILER_LANG['extension_missing'] = '丢失模块 Extension:'; 30 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-ch.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP 错误:身份验证失败。'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP 错误: 不能连接SMTP主机。'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误: 数据不可接受。'; 12 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 13 | $PHPMAILER_LANG['encoding'] = '未知编码:'; 14 | $PHPMAILER_LANG['execute'] = '不能执行: '; 15 | $PHPMAILER_LANG['file_access'] = '不能访问文件:'; 16 | $PHPMAILER_LANG['file_open'] = '文件错误:不能打开文件:'; 17 | $PHPMAILER_LANG['from_failed'] = '下面的发送地址邮件发送失败了: '; 18 | $PHPMAILER_LANG['instantiate'] = '不能实现mail方法。'; 19 | //$PHPMAILER_LANG['invalid_address'] = 'Invalid address: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' 您所选择的发送邮件的方法并不支持。'; 21 | $PHPMAILER_LANG['provide_address'] = '您必须提供至少一个 收信人的email地址。'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误: 下面的 收件人失败了: '; 23 | //$PHPMAILER_LANG['signing'] = 'Signing Error: '; 24 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 25 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 26 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php: -------------------------------------------------------------------------------- 1 | 7 | * @author Peter Dave Hello <@PeterDaveHello/> 8 | * @author Jason Chiang 9 | */ 10 | 11 | $PHPMAILER_LANG['authenticate'] = 'SMTP 錯誤:登入失敗。'; 12 | $PHPMAILER_LANG['connect_host'] = 'SMTP 錯誤:無法連線到 SMTP 主機。'; 13 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 錯誤:無法接受的資料。'; 14 | $PHPMAILER_LANG['empty_message'] = '郵件內容為空'; 15 | $PHPMAILER_LANG['encoding'] = '未知編碼: '; 16 | $PHPMAILER_LANG['execute'] = '無法執行:'; 17 | $PHPMAILER_LANG['file_access'] = '無法存取檔案:'; 18 | $PHPMAILER_LANG['file_open'] = '檔案錯誤:無法開啟檔案:'; 19 | $PHPMAILER_LANG['from_failed'] = '發送地址錯誤:'; 20 | $PHPMAILER_LANG['instantiate'] = '未知函數呼叫。'; 21 | $PHPMAILER_LANG['invalid_address'] = '因為電子郵件地址無效,無法傳送: '; 22 | $PHPMAILER_LANG['mailer_not_supported'] = '不支援的發信客戶端。'; 23 | $PHPMAILER_LANG['provide_address'] = '必須提供至少一個收件人地址。'; 24 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 錯誤:以下收件人地址錯誤:'; 25 | $PHPMAILER_LANG['signing'] = '電子簽章錯誤: '; 26 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 連線失敗'; 27 | $PHPMAILER_LANG['smtp_error'] = 'SMTP 伺服器錯誤: '; 28 | $PHPMAILER_LANG['variable_set'] = '無法設定或重設變數: '; 29 | $PHPMAILER_LANG['extension_missing'] = '遺失模組 Extension: '; 30 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP 오류: 인증할 수 없습니다.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP 오류: SMTP 호스트에 접속할 수 없습니다.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 오류: 데이터가 받아들여지지 않았습니다.'; 12 | $PHPMAILER_LANG['empty_message'] = '메세지 내용이 없습니다'; 13 | $PHPMAILER_LANG['encoding'] = '알 수 없는 인코딩: '; 14 | $PHPMAILER_LANG['execute'] = '실행 불가: '; 15 | $PHPMAILER_LANG['file_access'] = '파일 접근 불가: '; 16 | $PHPMAILER_LANG['file_open'] = '파일 오류: 파일을 열 수 없습니다: '; 17 | $PHPMAILER_LANG['from_failed'] = '다음 From 주소에서 오류가 발생했습니다: '; 18 | $PHPMAILER_LANG['instantiate'] = 'mail 함수를 인스턴스화할 수 없습니다'; 19 | $PHPMAILER_LANG['invalid_address'] = '잘못된 주소: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' 메일러는 지원되지 않습니다.'; 21 | $PHPMAILER_LANG['provide_address'] = '적어도 한 개 이상의 수신자 메일 주소를 제공해야 합니다.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 오류: 다음 수신자에서 오류가 발생했습니다: '; 23 | $PHPMAILER_LANG['signing'] = '서명 오류: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 연결을 실패하였습니다.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'SMTP 서버 오류: '; 26 | $PHPMAILER_LANG['variable_set'] = '변수 설정 및 초기화 불가: '; 27 | $PHPMAILER_LANG['extension_missing'] = '확장자 없음: '; 28 | -------------------------------------------------------------------------------- /feedback/template/email.tpl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 39 | 40 | 41 |
5 | 6 | 7 | 8 | 11 | 12 | 13 | 14 | 15 | 16 | 27 | 28 | 29 | 30 | 31 | 32 | 35 | 36 | 37 |
9 | %subject% 10 |
17 | Пользователь %name% оставил следующее сообщение: 18 |
19 | %message% 20 |
21 | Email пользователя: %email% 22 |
23 | Дата отправки: %date% 24 |
25 | %attachs% 26 |
33 |

© 2022 Мой сайт.

34 |
38 |
42 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php: -------------------------------------------------------------------------------- 1 | 7 | * @author Yoshi Sakai 8 | * @author Arisophy 9 | */ 10 | 11 | $PHPMAILER_LANG['authenticate'] = 'SMTPエラー: 認証できませんでした。'; 12 | $PHPMAILER_LANG['connect_host'] = 'SMTPエラー: SMTPホストに接続できませんでした。'; 13 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTPエラー: データが受け付けられませんでした。'; 14 | $PHPMAILER_LANG['empty_message'] = 'メール本文が空です。'; 15 | $PHPMAILER_LANG['encoding'] = '不明なエンコーディング: '; 16 | $PHPMAILER_LANG['execute'] = '実行できませんでした: '; 17 | $PHPMAILER_LANG['file_access'] = 'ファイルにアクセスできません: '; 18 | $PHPMAILER_LANG['file_open'] = 'ファイルエラー: ファイルを開けません: '; 19 | $PHPMAILER_LANG['from_failed'] = 'Fromアドレスを登録する際にエラーが発生しました: '; 20 | $PHPMAILER_LANG['instantiate'] = 'メール関数が正常に動作しませんでした。'; 21 | $PHPMAILER_LANG['invalid_address'] = '不正なメールアドレス: '; 22 | $PHPMAILER_LANG['provide_address'] = '少なくとも1つメールアドレスを 指定する必要があります。'; 23 | $PHPMAILER_LANG['mailer_not_supported'] = ' メーラーがサポートされていません。'; 24 | $PHPMAILER_LANG['recipients_failed'] = 'SMTPエラー: 次の受信者アドレスに 間違いがあります: '; 25 | $PHPMAILER_LANG['signing'] = '署名エラー: '; 26 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP接続に失敗しました。'; 27 | $PHPMAILER_LANG['smtp_error'] = 'SMTPサーバーエラー: '; 28 | $PHPMAILER_LANG['variable_set'] = '変数が存在しません: '; 29 | $PHPMAILER_LANG['extension_missing'] = '拡張機能が見つかりません: '; 30 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'שגיאת SMTP: פעולת האימות נכשלה.'; 10 | $PHPMAILER_LANG['connect_host'] = 'שגיאת SMTP: לא הצלחתי להתחבר לשרת SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'שגיאת SMTP: מידע לא התקבל.'; 12 | $PHPMAILER_LANG['empty_message'] = 'גוף ההודעה ריק'; 13 | $PHPMAILER_LANG['invalid_address'] = 'כתובת שגויה: '; 14 | $PHPMAILER_LANG['encoding'] = 'קידוד לא מוכר: '; 15 | $PHPMAILER_LANG['execute'] = 'לא הצלחתי להפעיל את: '; 16 | $PHPMAILER_LANG['file_access'] = 'לא ניתן לגשת לקובץ: '; 17 | $PHPMAILER_LANG['file_open'] = 'שגיאת קובץ: לא ניתן לגשת לקובץ: '; 18 | $PHPMAILER_LANG['from_failed'] = 'כתובות הנמענים הבאות נכשלו: '; 19 | $PHPMAILER_LANG['instantiate'] = 'לא הצלחתי להפעיל את פונקציית המייל.'; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' אינה נתמכת.'; 21 | $PHPMAILER_LANG['provide_address'] = 'חובה לספק לפחות כתובת אחת של מקבל המייל.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'שגיאת SMTP: הנמענים הבאים נכשלו: '; 23 | $PHPMAILER_LANG['signing'] = 'שגיאת חתימה: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'שגיאת שרת SMTP: '; 26 | $PHPMAILER_LANG['variable_set'] = 'לא ניתן לקבוע או לשנות את המשתנה: '; 27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP kļūda: Autorizācija neizdevās.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP Kļūda: Nevar izveidot savienojumu ar SMTP serveri.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Kļūda: Nepieņem informāciju.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Ziņojuma teksts ir tukšs'; 13 | $PHPMAILER_LANG['encoding'] = 'Neatpazīts kodējums: '; 14 | $PHPMAILER_LANG['execute'] = 'Neizdevās izpildīt komandu: '; 15 | $PHPMAILER_LANG['file_access'] = 'Fails nav pieejams: '; 16 | $PHPMAILER_LANG['file_open'] = 'Faila kļūda: Nevar atvērt failu: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Nepareiza sūtītāja adrese: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Nevar palaist sūtīšanas funkciju.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Nepareiza adrese: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' sūtītājs netiek atbalstīts.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Lūdzu, norādiet vismaz vienu adresātu.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP kļūda: neizdevās nosūtīt šādiem saņēmējiem: '; 23 | $PHPMAILER_LANG['signing'] = 'Autorizācijas kļūda: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP savienojuma kļūda'; 25 | $PHPMAILER_LANG['smtp_error'] = 'SMTP servera kļūda: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Nevar piešķirt mainīgā vērtību: '; 27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP fel: Kunde inte autentisera.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP fel: Kunde inte ansluta till SMTP-server.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP fel: Data accepterades inte.'; 12 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 13 | $PHPMAILER_LANG['encoding'] = 'Okänt encode-format: '; 14 | $PHPMAILER_LANG['execute'] = 'Kunde inte köra: '; 15 | $PHPMAILER_LANG['file_access'] = 'Ingen åtkomst till fil: '; 16 | $PHPMAILER_LANG['file_open'] = 'Fil fel: Kunde inte öppna fil: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Följande avsändaradress är felaktig: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Kunde inte initiera e-postfunktion.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Felaktig adress: '; 20 | $PHPMAILER_LANG['provide_address'] = 'Du måste ange minst en mottagares e-postadress.'; 21 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer stöds inte.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP fel: Följande mottagare är felaktig: '; 23 | $PHPMAILER_LANG['signing'] = 'Signeringsfel: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() misslyckades.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'SMTP serverfel: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Kunde inte definiera eller återställa variabel: '; 27 | $PHPMAILER_LANG['extension_missing'] = 'Tillägg ej tillgängligt: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'Lỗi SMTP: Không thể xác thực.'; 10 | $PHPMAILER_LANG['connect_host'] = 'Lỗi SMTP: Không thể kết nối máy chủ SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'Lỗi SMTP: Dữ liệu không được chấp nhận.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Không có nội dung'; 13 | $PHPMAILER_LANG['encoding'] = 'Mã hóa không xác định: '; 14 | $PHPMAILER_LANG['execute'] = 'Không thực hiện được: '; 15 | $PHPMAILER_LANG['file_access'] = 'Không thể truy cập tệp tin '; 16 | $PHPMAILER_LANG['file_open'] = 'Lỗi Tập tin: Không thể mở tệp tin: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Lỗi địa chỉ gửi đi: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Không dùng được các hàm gửi thư.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Đại chỉ emai không đúng: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' trình gửi thư không được hỗ trợ.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Bạn phải cung cấp ít nhất một địa chỉ người nhận.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'Lỗi SMTP: lỗi địa chỉ người nhận: '; 23 | $PHPMAILER_LANG['signing'] = 'Lỗi đăng nhập: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Lỗi kết nối với SMTP'; 25 | $PHPMAILER_LANG['smtp_error'] = 'Lỗi máy chủ smtp '; 26 | $PHPMAILER_LANG['variable_set'] = 'Không thể thiết lập hoặc thiết lập lại biến: '; 27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/src/OAuthTokenProvider.php: -------------------------------------------------------------------------------- 1 | 10 | * @author Jim Jagielski (jimjag) 11 | * @author Andy Prevost (codeworxtech) 12 | * @author Brent R. Matzelle (original founder) 13 | * @copyright 2012 - 2020 Marcus Bointon 14 | * @copyright 2010 - 2012 Jim Jagielski 15 | * @copyright 2004 - 2009 Andy Prevost 16 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 17 | * @note This program is distributed in the hope that it will be useful - WITHOUT 18 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 | * FITNESS FOR A PARTICULAR PURPOSE. 20 | */ 21 | 22 | namespace PHPMailer\PHPMailer; 23 | 24 | /** 25 | * OAuthTokenProvider - OAuth2 token provider interface. 26 | * Provides base64 encoded OAuth2 auth strings for SMTP authentication. 27 | * 28 | * @see OAuth 29 | * @see SMTP::authenticate() 30 | * 31 | * @author Peter Scopes (pdscopes) 32 | * @author Marcus Bointon (Synchro/coolbru) 33 | */ 34 | interface OAuthTokenProvider 35 | { 36 | /** 37 | * Generate a base64-encoded OAuth token ensuring that the access token has not expired. 38 | * The string to be base 64 encoded should be in the form: 39 | * "user=\001auth=Bearer \001\001" 40 | * 41 | * @return string 42 | */ 43 | public function getOauth64(); 44 | } 45 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP klaida: autentifikacija nepavyko.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP klaida: nepavyksta prisijungti prie SMTP stoties.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP klaida: duomenys nepriimti.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Laiško turinys tuščias'; 13 | $PHPMAILER_LANG['encoding'] = 'Neatpažinta koduotė: '; 14 | $PHPMAILER_LANG['execute'] = 'Nepavyko įvykdyti komandos: '; 15 | $PHPMAILER_LANG['file_access'] = 'Byla nepasiekiama: '; 16 | $PHPMAILER_LANG['file_open'] = 'Bylos klaida: Nepavyksta atidaryti: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Neteisingas siuntėjo adresas: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Nepavyko paleisti mail funkcijos.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Neteisingas adresas: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' pašto stotis nepalaikoma.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Nurodykite bent vieną gavėjo adresą.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP klaida: nepavyko išsiųsti šiems gavėjams: '; 23 | $PHPMAILER_LANG['signing'] = 'Prisijungimo klaida: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP susijungimo klaida'; 25 | $PHPMAILER_LANG['smtp_error'] = 'SMTP stoties klaida: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Nepavyko priskirti reikšmės kintamajam: '; 27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'خطأ SMTP : لا يمكن تأكيد الهوية.'; 10 | $PHPMAILER_LANG['connect_host'] = 'خطأ SMTP: لا يمكن الاتصال بالخادم SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'خطأ SMTP: لم يتم قبول المعلومات .'; 12 | $PHPMAILER_LANG['empty_message'] = 'نص الرسالة فارغ'; 13 | $PHPMAILER_LANG['encoding'] = 'ترميز غير معروف: '; 14 | $PHPMAILER_LANG['execute'] = 'لا يمكن تنفيذ : '; 15 | $PHPMAILER_LANG['file_access'] = 'لا يمكن الوصول للملف: '; 16 | $PHPMAILER_LANG['file_open'] = 'خطأ في الملف: لا يمكن فتحه: '; 17 | $PHPMAILER_LANG['from_failed'] = 'خطأ على مستوى عنوان المرسل : '; 18 | $PHPMAILER_LANG['instantiate'] = 'لا يمكن توفير خدمة البريد.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'الإرسال غير ممكن لأن عنوان البريد الإلكتروني غير صالح: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' برنامج الإرسال غير مدعوم.'; 21 | $PHPMAILER_LANG['provide_address'] = 'يجب توفير عنوان البريد الإلكتروني لمستلم واحد على الأقل.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'خطأ SMTP: الأخطاء التالية فشل في الارسال لكل من : '; 23 | $PHPMAILER_LANG['signing'] = 'خطأ في التوقيع: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() غير ممكن.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'خطأ على مستوى الخادم SMTP: '; 26 | $PHPMAILER_LANG['variable_set'] = 'لا يمكن تعيين أو إعادة تعيين متغير: '; 27 | $PHPMAILER_LANG['extension_missing'] = 'الإضافة غير موجودة: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP feilur: Kundi ikki góðkenna.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP feilur: Kundi ikki knýta samband við SMTP vert.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP feilur: Data ikki góðkent.'; 12 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty'; 13 | $PHPMAILER_LANG['encoding'] = 'Ókend encoding: '; 14 | $PHPMAILER_LANG['execute'] = 'Kundi ikki útføra: '; 15 | $PHPMAILER_LANG['file_access'] = 'Kundi ikki tilganga fílu: '; 16 | $PHPMAILER_LANG['file_open'] = 'Fílu feilur: Kundi ikki opna fílu: '; 17 | $PHPMAILER_LANG['from_failed'] = 'fylgjandi Frá/From adressa miseydnaðist: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Kuni ikki instantiera mail funktión.'; 19 | //$PHPMAILER_LANG['invalid_address'] = 'Invalid address: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' er ikki supporterað.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Tú skal uppgeva minst móttakara-emailadressu(r).'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Feilur: Fylgjandi móttakarar miseydnaðust: '; 23 | //$PHPMAILER_LANG['signing'] = 'Signing Error: '; 24 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; 25 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; 26 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; 27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-eo.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP त्रुटि: प्रामाणिकता की जांच नहीं हो सका। '; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP त्रुटि: SMTP सर्वर से कनेक्ट नहीं हो सका। '; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP त्रुटि: डेटा स्वीकार नहीं किया जाता है। '; 12 | $PHPMAILER_LANG['empty_message'] = 'संदेश खाली है। '; 13 | $PHPMAILER_LANG['encoding'] = 'अज्ञात एन्कोडिंग प्रकार। '; 14 | $PHPMAILER_LANG['execute'] = 'आदेश को निष्पादित करने में विफल। '; 15 | $PHPMAILER_LANG['file_access'] = 'फ़ाइल उपलब्ध नहीं है। '; 16 | $PHPMAILER_LANG['file_open'] = 'फ़ाइल त्रुटि: फाइल को खोला नहीं जा सका। '; 17 | $PHPMAILER_LANG['from_failed'] = 'प्रेषक का पता गलत है। '; 18 | $PHPMAILER_LANG['instantiate'] = 'मेल फ़ंक्शन कॉल नहीं कर सकता है।'; 19 | $PHPMAILER_LANG['invalid_address'] = 'पता गलत है। '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = 'मेल सर्वर के साथ काम नहीं करता है। '; 21 | $PHPMAILER_LANG['provide_address'] = 'आपको कम से कम एक प्राप्तकर्ता का ई-मेल पता प्रदान करना होगा।'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP त्रुटि: निम्न प्राप्तकर्ताओं को पते भेजने में विफल। '; 23 | $PHPMAILER_LANG['signing'] = 'साइनअप त्रुटि:। '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP का connect () फ़ंक्शन विफल हुआ। '; 25 | $PHPMAILER_LANG['smtp_error'] = 'SMTP सर्वर त्रुटि। '; 26 | $PHPMAILER_LANG['variable_set'] = 'चर को बना या संशोधित नहीं किया जा सकता। '; 27 | $PHPMAILER_LANG['extension_missing'] = 'एक्सटेन्षन गायब है: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php: -------------------------------------------------------------------------------- 1 | 7 | * @author Mohammad Hossein Mojtahedi 8 | */ 9 | 10 | $PHPMAILER_LANG['authenticate'] = 'خطای SMTP: احراز هویت با شکست مواجه شد.'; 11 | $PHPMAILER_LANG['connect_host'] = 'خطای SMTP: اتصال به سرور SMTP برقرار نشد.'; 12 | $PHPMAILER_LANG['data_not_accepted'] = 'خطای SMTP: داده‌ها نا‌درست هستند.'; 13 | $PHPMAILER_LANG['empty_message'] = 'بخش متن پیام خالی است.'; 14 | $PHPMAILER_LANG['encoding'] = 'کد‌گذاری نا‌شناخته: '; 15 | $PHPMAILER_LANG['execute'] = 'امکان اجرا وجود ندارد: '; 16 | $PHPMAILER_LANG['file_access'] = 'امکان دسترسی به فایل وجود ندارد: '; 17 | $PHPMAILER_LANG['file_open'] = 'خطای File: امکان بازکردن فایل وجود ندارد: '; 18 | $PHPMAILER_LANG['from_failed'] = 'آدرس فرستنده اشتباه است: '; 19 | $PHPMAILER_LANG['instantiate'] = 'امکان معرفی تابع ایمیل وجود ندارد.'; 20 | $PHPMAILER_LANG['invalid_address'] = 'آدرس ایمیل معتبر نیست: '; 21 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer پشتیبانی نمی‌شود.'; 22 | $PHPMAILER_LANG['provide_address'] = 'باید حداقل یک آدرس گیرنده وارد کنید.'; 23 | $PHPMAILER_LANG['recipients_failed'] = 'خطای SMTP: ارسال به آدرس گیرنده با خطا مواجه شد: '; 24 | $PHPMAILER_LANG['signing'] = 'خطا در امضا: '; 25 | $PHPMAILER_LANG['smtp_connect_failed'] = 'خطا در اتصال به SMTP.'; 26 | $PHPMAILER_LANG['smtp_error'] = 'خطا در SMTP Server: '; 27 | $PHPMAILER_LANG['variable_set'] = 'امکان ارسال یا ارسال مجدد متغیر‌ها وجود ندارد: '; 28 | $PHPMAILER_LANG['extension_missing'] = 'افزونه موجود نیست: '; 29 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'Памылка SMTP: памылка ідэнтыфікацыі.'; 10 | $PHPMAILER_LANG['connect_host'] = 'Памылка SMTP: нельга ўстанавіць сувязь з SMTP-серверам.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'Памылка SMTP: звесткі непрынятыя.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Пустое паведамленне.'; 13 | $PHPMAILER_LANG['encoding'] = 'Невядомая кадыроўка тэксту: '; 14 | $PHPMAILER_LANG['execute'] = 'Нельга выканаць каманду: '; 15 | $PHPMAILER_LANG['file_access'] = 'Няма доступу да файла: '; 16 | $PHPMAILER_LANG['file_open'] = 'Нельга адкрыць файл: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Няправільны адрас адпраўніка: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Нельга прымяніць функцыю mail().'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Нельга даслаць паведамленне, няправільны email атрымальніка: '; 20 | $PHPMAILER_LANG['provide_address'] = 'Запоўніце, калі ласка, правільны email атрымальніка.'; 21 | $PHPMAILER_LANG['mailer_not_supported'] = ' - паштовы сервер не падтрымліваецца.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'Памылка SMTP: няправільныя атрымальнікі: '; 23 | $PHPMAILER_LANG['signing'] = 'Памылка подпісу паведамлення: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Памылка сувязі з SMTP-серверам.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'Памылка SMTP: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Нельга ўстанавіць або перамяніць значэнне пераменнай: '; 27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-hy.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP -ի սխալ: չհաջողվեց ստուգել իսկությունը.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP -ի սխալ: չհաջողվեց կապ հաստատել SMTP սերվերի հետ.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP -ի սխալ: տվյալները ընդունված չեն.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Հաղորդագրությունը դատարկ է'; 13 | $PHPMAILER_LANG['encoding'] = 'Կոդավորման անհայտ տեսակ: '; 14 | $PHPMAILER_LANG['execute'] = 'Չհաջողվեց իրականացնել հրամանը: '; 15 | $PHPMAILER_LANG['file_access'] = 'Ֆայլը հասանելի չէ: '; 16 | $PHPMAILER_LANG['file_open'] = 'Ֆայլի սխալ: ֆայլը չհաջողվեց բացել: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Ուղարկողի հետևյալ հասցեն սխալ է: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Հնարավոր չէ կանչել mail ֆունկցիան.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Հասցեն սխալ է: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' փոստային սերվերի հետ չի աշխատում.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Անհրաժեշտ է տրամադրել գոնե մեկ ստացողի e-mail հասցե.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP -ի սխալ: չի հաջողվել ուղարկել հետևյալ ստացողների հասցեներին: '; 23 | $PHPMAILER_LANG['signing'] = 'Ստորագրման սխալ: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP -ի connect() ֆունկցիան չի հաջողվել'; 25 | $PHPMAILER_LANG['smtp_error'] = 'SMTP սերվերի սխալ: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Չի հաջողվում ստեղծել կամ վերափոխել փոփոխականը: '; 27 | $PHPMAILER_LANG['extension_missing'] = 'Հավելվածը բացակայում է: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP грешка: Не може да се удостовери пред сървъра.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP грешка: Не може да се свърже с SMTP хоста.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: данните не са приети.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Съдържанието на съобщението е празно'; 13 | $PHPMAILER_LANG['encoding'] = 'Неизвестно кодиране: '; 14 | $PHPMAILER_LANG['execute'] = 'Не може да се изпълни: '; 15 | $PHPMAILER_LANG['file_access'] = 'Няма достъп до файл: '; 16 | $PHPMAILER_LANG['file_open'] = 'Файлова грешка: Не може да се отвори файл: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Следните адреси за подател са невалидни: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Не може да се инстанцира функцията mail.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Невалиден адрес: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' - пощенски сървър не се поддържа.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Трябва да предоставите поне един email адрес за получател.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: Следните адреси за Получател са невалидни: '; 23 | $PHPMAILER_LANG['signing'] = 'Грешка при подписване: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP провален connect().'; 25 | $PHPMAILER_LANG['smtp_error'] = 'SMTP сървърна грешка: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Не може да се установи или възстанови променлива: '; 27 | $PHPMAILER_LANG['extension_missing'] = 'Липсва разширение: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'Error SMTP: No s’ha pogut autenticar.'; 10 | $PHPMAILER_LANG['connect_host'] = 'Error SMTP: No es pot connectar al servidor SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Dades no acceptades.'; 12 | $PHPMAILER_LANG['empty_message'] = 'El cos del missatge està buit.'; 13 | $PHPMAILER_LANG['encoding'] = 'Codificació desconeguda: '; 14 | $PHPMAILER_LANG['execute'] = 'No es pot executar: '; 15 | $PHPMAILER_LANG['file_access'] = 'No es pot accedir a l’arxiu: '; 16 | $PHPMAILER_LANG['file_open'] = 'Error d’Arxiu: No es pot obrir l’arxiu: '; 17 | $PHPMAILER_LANG['from_failed'] = 'La(s) següent(s) adreces de remitent han fallat: '; 18 | $PHPMAILER_LANG['instantiate'] = 'No s’ha pogut crear una instància de la funció Mail.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Adreça d’email invalida: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer no està suportat'; 21 | $PHPMAILER_LANG['provide_address'] = 'S’ha de proveir almenys una adreça d’email com a destinatari.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Els següents destinataris han fallat: '; 23 | $PHPMAILER_LANG['signing'] = 'Error al signar: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Ha fallat el SMTP Connect().'; 25 | $PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: '; 26 | $PHPMAILER_LANG['variable_set'] = 'No s’ha pogut establir o restablir la variable: '; 27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-da.php: -------------------------------------------------------------------------------- 1 | 7 | * Rewrite and extension of the work by Mikael Stokkebro 8 | * 9 | */ 10 | 11 | $PHPMAILER_LANG['authenticate'] = 'SMTP fejl: Login mislykkedes.'; 12 | $PHPMAILER_LANG['connect_host'] = 'SMTP fejl: Forbindelse til SMTP serveren kunne ikke oprettes.'; 13 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP fejl: Data blev ikke accepteret.'; 14 | $PHPMAILER_LANG['empty_message'] = 'Meddelelsen er uden indhold'; 15 | $PHPMAILER_LANG['encoding'] = 'Ukendt encode-format: '; 16 | $PHPMAILER_LANG['execute'] = 'Kunne ikke afvikle: '; 17 | $PHPMAILER_LANG['file_access'] = 'Kunne ikke tilgå filen: '; 18 | $PHPMAILER_LANG['file_open'] = 'Fil fejl: Kunne ikke åbne filen: '; 19 | $PHPMAILER_LANG['from_failed'] = 'Følgende afsenderadresse er forkert: '; 20 | $PHPMAILER_LANG['instantiate'] = 'Email funktionen kunne ikke initialiseres.'; 21 | $PHPMAILER_LANG['invalid_address'] = 'Udgyldig adresse: '; 22 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer understøttes ikke.'; 23 | $PHPMAILER_LANG['provide_address'] = 'Indtast mindst en modtagers email adresse.'; 24 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP fejl: Følgende modtagere er forkerte: '; 25 | $PHPMAILER_LANG['signing'] = 'Signeringsfejl: '; 26 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fejlede.'; 27 | $PHPMAILER_LANG['smtp_error'] = 'SMTP server fejl: '; 28 | $PHPMAILER_LANG['variable_set'] = 'Kunne ikke definere eller nulstille variablen: '; 29 | $PHPMAILER_LANG['extension_missing'] = 'Udvidelse mangler: '; 30 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'Error SMTP: Imposible autentificar.'; 10 | $PHPMAILER_LANG['connect_host'] = 'Error SMTP: Imposible conectar al servidor SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Datos no aceptados.'; 12 | $PHPMAILER_LANG['empty_message'] = 'El cuerpo del mensaje está vacío.'; 13 | $PHPMAILER_LANG['encoding'] = 'Codificación desconocida: '; 14 | $PHPMAILER_LANG['execute'] = 'Imposible ejecutar: '; 15 | $PHPMAILER_LANG['file_access'] = 'Imposible acceder al archivo: '; 16 | $PHPMAILER_LANG['file_open'] = 'Error de Archivo: Imposible abrir el archivo: '; 17 | $PHPMAILER_LANG['from_failed'] = 'La(s) siguiente(s) direcciones de remitente fallaron: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Imposible crear una instancia de la función Mail.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Imposible enviar: dirección de email inválido: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer no está soportado.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Debe proporcionar al menos una dirección de email de destino.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Los siguientes destinos fallaron: '; 23 | $PHPMAILER_LANG['signing'] = 'Error al firmar: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falló.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: '; 26 | $PHPMAILER_LANG['variable_set'] = 'No se pudo configurar la variable: '; 27 | $PHPMAILER_LANG['extension_missing'] = 'Extensión faltante: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $PHPMAILER_LANG['authenticate'] = 'SMTP Viga: Autoriseerimise viga.'; 11 | $PHPMAILER_LANG['connect_host'] = 'SMTP Viga: Ei õnnestunud luua ühendust SMTP serveriga.'; 12 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Viga: Vigased andmed.'; 13 | $PHPMAILER_LANG['empty_message'] = 'Tühi kirja sisu'; 14 | $PHPMAILER_LANG["encoding"] = 'Tundmatu kodeering: '; 15 | $PHPMAILER_LANG['execute'] = 'Tegevus ebaõnnestus: '; 16 | $PHPMAILER_LANG['file_access'] = 'Pole piisavalt õiguseid järgneva faili avamiseks: '; 17 | $PHPMAILER_LANG['file_open'] = 'Faili Viga: Faili avamine ebaõnnestus: '; 18 | $PHPMAILER_LANG['from_failed'] = 'Järgnev saatja e-posti aadress on vigane: '; 19 | $PHPMAILER_LANG['instantiate'] = 'mail funktiooni käivitamine ebaõnnestus.'; 20 | $PHPMAILER_LANG['invalid_address'] = 'Saatmine peatatud, e-posti address vigane: '; 21 | $PHPMAILER_LANG['provide_address'] = 'Te peate määrama vähemalt ühe saaja e-posti aadressi.'; 22 | $PHPMAILER_LANG['mailer_not_supported'] = ' maileri tugi puudub.'; 23 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Viga: Järgnevate saajate e-posti aadressid on vigased: '; 24 | $PHPMAILER_LANG["signing"] = 'Viga allkirjastamisel: '; 25 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() ebaõnnestus.'; 26 | $PHPMAILER_LANG['smtp_error'] = 'SMTP serveri viga: '; 27 | $PHPMAILER_LANG['variable_set'] = 'Ei õnnestunud määrata või lähtestada muutujat: '; 28 | $PHPMAILER_LANG['extension_missing'] = 'Nõutud laiendus on puudu: '; 29 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $PHPMAILER_LANG['authenticate'] = 'SMTP Error: Hindi mapatotohanan.'; 11 | $PHPMAILER_LANG['connect_host'] = 'SMTP Error: Hindi makakonekta sa SMTP host.'; 12 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Ang datos ay hindi naitanggap.'; 13 | $PHPMAILER_LANG['empty_message'] = 'Walang laman ang mensahe'; 14 | $PHPMAILER_LANG['encoding'] = 'Hindi alam ang encoding: '; 15 | $PHPMAILER_LANG['execute'] = 'Hindi maisasagawa: '; 16 | $PHPMAILER_LANG['file_access'] = 'Hindi ma-access ang file: '; 17 | $PHPMAILER_LANG['file_open'] = 'File Error: Hindi mabuksan ang file: '; 18 | $PHPMAILER_LANG['from_failed'] = 'Ang sumusunod na address ay nabigo: '; 19 | $PHPMAILER_LANG['instantiate'] = 'Hindi maisimulan ang instance ng mail function.'; 20 | $PHPMAILER_LANG['invalid_address'] = 'Hindi wasto ang address na naibigay: '; 21 | $PHPMAILER_LANG['mailer_not_supported'] = 'Ang mailer ay hindi suportado.'; 22 | $PHPMAILER_LANG['provide_address'] = 'Kailangan mong magbigay ng kahit isang email address na tatanggap.'; 23 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Ang mga sumusunod na tatanggap ay nabigo: '; 24 | $PHPMAILER_LANG['signing'] = 'Hindi ma-sign: '; 25 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Ang SMTP connect() ay nabigo.'; 26 | $PHPMAILER_LANG['smtp_error'] = 'Ang server ng SMTP ay nabigo: '; 27 | $PHPMAILER_LANG['variable_set'] = 'Hindi matatakda o ma-reset ang mga variables: '; 28 | $PHPMAILER_LANG['extension_missing'] = 'Nawawala ang extension: '; 29 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-ba.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela prijava.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Nije moguće spojiti se sa SMTP serverom.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; 13 | $PHPMAILER_LANG['encoding'] = 'Nepoznata kriptografija: '; 14 | $PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; 15 | $PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; 16 | $PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; 17 | $PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje sa navedenih e-mail adresa nije uspjelo: '; 18 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedene e-mail adrese nije uspjelo: '; 19 | $PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.'; 20 | $PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa: '; 21 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.'; 22 | $PHPMAILER_LANG['provide_address'] = 'Definišite barem jednu adresu primaoca.'; 23 | $PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP server nije uspjelo.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'SMTP greška: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Nije moguće postaviti varijablu ili je vratiti nazad: '; 27 | $PHPMAILER_LANG['extension_missing'] = 'Nedostaje ekstenzija: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-gl.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'Erro SMTP: Non puido ser autentificado.'; 10 | $PHPMAILER_LANG['connect_host'] = 'Erro SMTP: Non puido conectar co servidor SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'Erro SMTP: Datos non aceptados.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Corpo da mensaxe vacía'; 13 | $PHPMAILER_LANG['encoding'] = 'Codificación descoñecida: '; 14 | $PHPMAILER_LANG['execute'] = 'Non puido ser executado: '; 15 | $PHPMAILER_LANG['file_access'] = 'Nob puido acceder ó arquivo: '; 16 | $PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: No puido abrir o arquivo: '; 17 | $PHPMAILER_LANG['from_failed'] = 'A(s) seguinte(s) dirección(s) de remitente(s) deron erro: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Non puido crear unha instancia da función Mail.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Non puido envia-lo correo: dirección de email inválida: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer non está soportado.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Debe engadir polo menos unha dirección de email coma destino.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'Erro SMTP: Os seguintes destinos fallaron: '; 23 | $PHPMAILER_LANG['signing'] = 'Erro ó firmar: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallou.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'Erro do servidor SMTP: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Non puidemos axustar ou reaxustar a variábel: '; 27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela autentikacija.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Ne mogu se spojiti na SMTP poslužitelj.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; 13 | $PHPMAILER_LANG['encoding'] = 'Nepoznati encoding: '; 14 | $PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; 15 | $PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; 16 | $PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; 17 | $PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje s navedenih e-mail adresa nije uspjelo: '; 18 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedenih e-mail adresa nije uspjelo: '; 19 | $PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.'; 20 | $PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa: '; 21 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.'; 22 | $PHPMAILER_LANG['provide_address'] = 'Definirajte barem jednu adresu primatelja.'; 23 | $PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP poslužitelj nije uspjelo.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'Greška SMTP poslužitelja: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Ne mogu postaviti varijablu niti ju vratiti nazad: '; 27 | $PHPMAILER_LANG['extension_missing'] = 'Nedostaje proširenje: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'Ralat SMTP: Tidak dapat pengesahan.'; 10 | $PHPMAILER_LANG['connect_host'] = 'Ralat SMTP: Tidak dapat menghubungi hos pelayan SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'Ralat SMTP: Data tidak diterima oleh pelayan.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Tiada isi untuk mesej'; 13 | $PHPMAILER_LANG['encoding'] = 'Pengekodan tidak diketahui: '; 14 | $PHPMAILER_LANG['execute'] = 'Tidak dapat melaksanakan: '; 15 | $PHPMAILER_LANG['file_access'] = 'Tidak dapat mengakses fail: '; 16 | $PHPMAILER_LANG['file_open'] = 'Ralat Fail: Tidak dapat membuka fail: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Berikut merupakan ralat dari alamat e-mel: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Tidak dapat memberi contoh fungsi e-mel.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Alamat emel tidak sah: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' jenis penghantar emel tidak disokong.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Anda perlu menyediakan sekurang-kurangnya satu alamat e-mel penerima.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'Ralat SMTP: Penerima e-mel berikut telah gagal: '; 23 | $PHPMAILER_LANG['signing'] = 'Ralat pada tanda tangan: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() telah gagal.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'Ralat pada pelayan SMTP: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Tidak boleh menetapkan atau menetapkan semula pembolehubah: '; 27 | $PHPMAILER_LANG['extension_missing'] = 'Sambungan hilang: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php: -------------------------------------------------------------------------------- 1 | 7 | * @author Foster Snowhill 8 | */ 9 | 10 | $PHPMAILER_LANG['authenticate'] = 'Ошибка SMTP: ошибка авторизации.'; 11 | $PHPMAILER_LANG['connect_host'] = 'Ошибка SMTP: не удается подключиться к SMTP-серверу.'; 12 | $PHPMAILER_LANG['data_not_accepted'] = 'Ошибка SMTP: данные не приняты.'; 13 | $PHPMAILER_LANG['encoding'] = 'Неизвестная кодировка: '; 14 | $PHPMAILER_LANG['execute'] = 'Невозможно выполнить команду: '; 15 | $PHPMAILER_LANG['file_access'] = 'Нет доступа к файлу: '; 16 | $PHPMAILER_LANG['file_open'] = 'Файловая ошибка: не удаётся открыть файл: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Неверный адрес отправителя: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Невозможно запустить функцию mail().'; 19 | $PHPMAILER_LANG['provide_address'] = 'Пожалуйста, введите хотя бы один email-адрес получателя.'; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' — почтовый сервер не поддерживается.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'Ошибка SMTP: не удалась отправка таким адресатам: '; 22 | $PHPMAILER_LANG['empty_message'] = 'Пустое сообщение'; 23 | $PHPMAILER_LANG['invalid_address'] = 'Не отправлено из-за неправильного формата email-адреса: '; 24 | $PHPMAILER_LANG['signing'] = 'Ошибка подписи: '; 25 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Ошибка соединения с SMTP-сервером'; 26 | $PHPMAILER_LANG['smtp_error'] = 'Ошибка SMTP-сервера: '; 27 | $PHPMAILER_LANG['variable_set'] = 'Невозможно установить или сбросить переменную: '; 28 | $PHPMAILER_LANG['extension_missing'] = 'Расширение отсутствует: '; 29 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP შეცდომა: ავტორიზაცია შეუძლებელია.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP შეცდომა: SMTP სერვერთან დაკავშირება შეუძლებელია.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP შეცდომა: მონაცემები არ იქნა მიღებული.'; 12 | $PHPMAILER_LANG['encoding'] = 'კოდირების უცნობი ტიპი: '; 13 | $PHPMAILER_LANG['execute'] = 'შეუძლებელია შემდეგი ბრძანების შესრულება: '; 14 | $PHPMAILER_LANG['file_access'] = 'შეუძლებელია წვდომა ფაილთან: '; 15 | $PHPMAILER_LANG['file_open'] = 'ფაილური სისტემის შეცდომა: არ იხსნება ფაილი: '; 16 | $PHPMAILER_LANG['from_failed'] = 'გამგზავნის არასწორი მისამართი: '; 17 | $PHPMAILER_LANG['instantiate'] = 'mail ფუნქციის გაშვება ვერ ხერხდება.'; 18 | $PHPMAILER_LANG['provide_address'] = 'გთხოვთ მიუთითოთ ერთი ადრესატის e-mail მისამართი მაინც.'; 19 | $PHPMAILER_LANG['mailer_not_supported'] = ' - საფოსტო სერვერის მხარდაჭერა არ არის.'; 20 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP შეცდომა: შემდეგ მისამართებზე გაგზავნა ვერ მოხერხდა: '; 21 | $PHPMAILER_LANG['empty_message'] = 'შეტყობინება ცარიელია'; 22 | $PHPMAILER_LANG['invalid_address'] = 'არ გაიგზავნა, e-mail მისამართის არასწორი ფორმატი: '; 23 | $PHPMAILER_LANG['signing'] = 'ხელმოწერის შეცდომა: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'შეცდომა SMTP სერვერთან დაკავშირებისას'; 25 | $PHPMAILER_LANG['smtp_error'] = 'SMTP სერვერის შეცდომა: '; 26 | $PHPMAILER_LANG['variable_set'] = 'შეუძლებელია შემდეგი ცვლადის შექმნა ან შეცვლა: '; 27 | $PHPMAILER_LANG['extension_missing'] = 'ბიბლიოთეკა არ არსებობს: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php: -------------------------------------------------------------------------------- 1 | 7 | * @author Miloš Milanović 8 | */ 9 | 10 | $PHPMAILER_LANG['authenticate'] = 'SMTP грешка: аутентификација није успела.'; 11 | $PHPMAILER_LANG['connect_host'] = 'SMTP грешка: повезивање са SMTP сервером није успело.'; 12 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: подаци нису прихваћени.'; 13 | $PHPMAILER_LANG['empty_message'] = 'Садржај поруке је празан.'; 14 | $PHPMAILER_LANG['encoding'] = 'Непознато кодирање: '; 15 | $PHPMAILER_LANG['execute'] = 'Није могуће извршити наредбу: '; 16 | $PHPMAILER_LANG['file_access'] = 'Није могуће приступити датотеци: '; 17 | $PHPMAILER_LANG['file_open'] = 'Није могуће отворити датотеку: '; 18 | $PHPMAILER_LANG['from_failed'] = 'SMTP грешка: слање са следећих адреса није успело: '; 19 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: слање на следеће адресе није успело: '; 20 | $PHPMAILER_LANG['instantiate'] = 'Није могуће покренути mail функцију.'; 21 | $PHPMAILER_LANG['invalid_address'] = 'Порука није послата. Неисправна адреса: '; 22 | $PHPMAILER_LANG['mailer_not_supported'] = ' мејлер није подржан.'; 23 | $PHPMAILER_LANG['provide_address'] = 'Дефинишите бар једну адресу примаоца.'; 24 | $PHPMAILER_LANG['signing'] = 'Грешка приликом пријаве: '; 25 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Повезивање са SMTP сервером није успело.'; 26 | $PHPMAILER_LANG['smtp_error'] = 'Грешка SMTP сервера: '; 27 | $PHPMAILER_LANG['variable_set'] = 'Није могуће задати нити ресетовати променљиву: '; 28 | $PHPMAILER_LANG['extension_missing'] = 'Недостаје проширење: '; 29 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-uk.php: -------------------------------------------------------------------------------- 1 | 7 | * @fixed by Boris Yurchenko 8 | */ 9 | 10 | $PHPMAILER_LANG['authenticate'] = 'Помилка SMTP: помилка авторизації.'; 11 | $PHPMAILER_LANG['connect_host'] = 'Помилка SMTP: не вдається під\'єднатися до SMTP-серверу.'; 12 | $PHPMAILER_LANG['data_not_accepted'] = 'Помилка SMTP: дані не прийнято.'; 13 | $PHPMAILER_LANG['encoding'] = 'Невідоме кодування: '; 14 | $PHPMAILER_LANG['execute'] = 'Неможливо виконати команду: '; 15 | $PHPMAILER_LANG['file_access'] = 'Немає доступу до файлу: '; 16 | $PHPMAILER_LANG['file_open'] = 'Помилка файлової системи: не вдається відкрити файл: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Невірна адреса відправника: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Неможливо запустити функцію mail().'; 19 | $PHPMAILER_LANG['provide_address'] = 'Будь ласка, введіть хоча б одну email-адресу отримувача.'; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' - поштовий сервер не підтримується.'; 21 | $PHPMAILER_LANG['recipients_failed'] = 'Помилка SMTP: не вдалося відправлення для таких отримувачів: '; 22 | $PHPMAILER_LANG['empty_message'] = 'Пусте повідомлення'; 23 | $PHPMAILER_LANG['invalid_address'] = 'Не відправлено через неправильний формат email-адреси: '; 24 | $PHPMAILER_LANG['signing'] = 'Помилка підпису: '; 25 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Помилка з\'єднання з SMTP-сервером'; 26 | $PHPMAILER_LANG['smtp_error'] = 'Помилка SMTP-сервера: '; 27 | $PHPMAILER_LANG['variable_set'] = 'Неможливо встановити або скинути змінну: '; 28 | $PHPMAILER_LANG['extension_missing'] = 'Розширення відсутнє: '; 29 | -------------------------------------------------------------------------------- /feedback/captcha/captcha.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'Hadisoana SMTP: Tsy nahomby ny fanamarinana.'; 10 | $PHPMAILER_LANG['connect_host'] = 'SMTP Error: Tsy afaka mampifandray amin\'ny mpampiantrano SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP diso: tsy voarakitra ny angona.'; 12 | $PHPMAILER_LANG['empty_message'] = 'Tsy misy ny votoaty mailaka.'; 13 | $PHPMAILER_LANG['encoding'] = 'Tsy fantatra encoding: '; 14 | $PHPMAILER_LANG['execute'] = 'Tsy afaka manatanteraka ity baiko manaraka ity: '; 15 | $PHPMAILER_LANG['file_access'] = 'Tsy nahomby ny fidirana amin\'ity rakitra ity: '; 16 | $PHPMAILER_LANG['file_open'] = 'Hadisoana diso: Tsy afaka nanokatra ity file manaraka ity: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Ny adiresy iraka manaraka dia diso: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Tsy afaka nanomboka ny hetsika mail.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Tsy mety ny adiresy: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer tsy manohana.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Alefaso azafady iray adiresy iray farafahakeliny.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Tsy mety ireo mpanaraka ireto: '; 23 | $PHPMAILER_LANG['signing'] = 'Error nandritra ny sonia:'; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Tsy nahomby ny fifandraisana tamin\'ny server SMTP.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'Fahadisoana tamin\'ny server SMTP: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Tsy azo atao ny mametraka na mamerina ny variable: '; 27 | $PHPMAILER_LANG['extension_missing'] = 'Tsy hita ny ampahany: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php: -------------------------------------------------------------------------------- 1 | 7 | * @author Miloš Milanović 8 | */ 9 | 10 | $PHPMAILER_LANG['authenticate'] = 'SMTP greška: autentifikacija nije uspela.'; 11 | $PHPMAILER_LANG['connect_host'] = 'SMTP greška: povezivanje sa SMTP serverom nije uspelo.'; 12 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP greška: podaci nisu prihvaćeni.'; 13 | $PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; 14 | $PHPMAILER_LANG['encoding'] = 'Nepoznato kodiranje: '; 15 | $PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; 16 | $PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; 17 | $PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; 18 | $PHPMAILER_LANG['from_failed'] = 'SMTP greška: slanje sa sledećih adresa nije uspelo: '; 19 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP greška: slanje na sledeće adrese nije uspelo: '; 20 | $PHPMAILER_LANG['instantiate'] = 'Nije moguće pokrenuti mail funkciju.'; 21 | $PHPMAILER_LANG['invalid_address'] = 'Poruka nije poslata. Neispravna adresa: '; 22 | $PHPMAILER_LANG['mailer_not_supported'] = ' majler nije podržan.'; 23 | $PHPMAILER_LANG['provide_address'] = 'Definišite bar jednu adresu primaoca.'; 24 | $PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; 25 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Povezivanje sa SMTP serverom nije uspelo.'; 26 | $PHPMAILER_LANG['smtp_error'] = 'Greška SMTP servera: '; 27 | $PHPMAILER_LANG['variable_set'] = 'Nije moguće zadati niti resetovati promenljivu: '; 28 | $PHPMAILER_LANG['extension_missing'] = 'Nedostaje proširenje: '; 29 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php: -------------------------------------------------------------------------------- 1 | 7 | * @author Stefano Sabatini 8 | */ 9 | 10 | $PHPMAILER_LANG['authenticate'] = 'SMTP Error: Impossibile autenticarsi.'; 11 | $PHPMAILER_LANG['connect_host'] = 'SMTP Error: Impossibile connettersi all\'host SMTP.'; 12 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dati non accettati dal server.'; 13 | $PHPMAILER_LANG['empty_message'] = 'Il corpo del messaggio è vuoto'; 14 | $PHPMAILER_LANG['encoding'] = 'Codifica dei caratteri sconosciuta: '; 15 | $PHPMAILER_LANG['execute'] = 'Impossibile eseguire l\'operazione: '; 16 | $PHPMAILER_LANG['file_access'] = 'Impossibile accedere al file: '; 17 | $PHPMAILER_LANG['file_open'] = 'File Error: Impossibile aprire il file: '; 18 | $PHPMAILER_LANG['from_failed'] = 'I seguenti indirizzi mittenti hanno generato errore: '; 19 | $PHPMAILER_LANG['instantiate'] = 'Impossibile istanziare la funzione mail'; 20 | $PHPMAILER_LANG['invalid_address'] = 'Impossibile inviare, l\'indirizzo email non è valido: '; 21 | $PHPMAILER_LANG['provide_address'] = 'Deve essere fornito almeno un indirizzo ricevente'; 22 | $PHPMAILER_LANG['mailer_not_supported'] = 'Mailer non supportato'; 23 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: I seguenti indirizzi destinatari hanno generato un errore: '; 24 | $PHPMAILER_LANG['signing'] = 'Errore nella firma: '; 25 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallita.'; 26 | $PHPMAILER_LANG['smtp_error'] = 'Errore del server SMTP: '; 27 | $PHPMAILER_LANG['variable_set'] = 'Impossibile impostare o resettare la variabile: '; 28 | $PHPMAILER_LANG['extension_missing'] = 'Estensione mancante: '; 29 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'Erro do SMTP: Não foi possível realizar a autenticação.'; 10 | $PHPMAILER_LANG['connect_host'] = 'Erro do SMTP: Não foi possível realizar ligação com o servidor SMTP.'; 11 | $PHPMAILER_LANG['data_not_accepted'] = 'Erro do SMTP: Os dados foram rejeitados.'; 12 | $PHPMAILER_LANG['empty_message'] = 'A mensagem no e-mail está vazia.'; 13 | $PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: '; 14 | $PHPMAILER_LANG['execute'] = 'Não foi possível executar: '; 15 | $PHPMAILER_LANG['file_access'] = 'Não foi possível aceder o ficheiro: '; 16 | $PHPMAILER_LANG['file_open'] = 'Abertura do ficheiro: Não foi possível abrir o ficheiro: '; 17 | $PHPMAILER_LANG['from_failed'] = 'Ocorreram falhas nos endereços dos seguintes remententes: '; 18 | $PHPMAILER_LANG['instantiate'] = 'Não foi possível iniciar uma instância da função mail.'; 19 | $PHPMAILER_LANG['invalid_address'] = 'Não foi enviado nenhum e-mail para o endereço de e-mail inválido: '; 20 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.'; 21 | $PHPMAILER_LANG['provide_address'] = 'Tem de fornecer pelo menos um endereço como destinatário do e-mail.'; 22 | $PHPMAILER_LANG['recipients_failed'] = 'Erro do SMTP: O endereço do seguinte destinatário falhou: '; 23 | $PHPMAILER_LANG['signing'] = 'Erro ao assinar: '; 24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.'; 25 | $PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: '; 26 | $PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: '; 27 | $PHPMAILER_LANG['extension_missing'] = 'Extensão em falta: '; 28 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php: -------------------------------------------------------------------------------- 1 | 7 | * @author Peter Orlický 8 | */ 9 | 10 | $PHPMAILER_LANG['authenticate'] = 'SMTP Error: Chyba autentifikácie.'; 11 | $PHPMAILER_LANG['connect_host'] = 'SMTP Error: Nebolo možné nadviazať spojenie so SMTP serverom.'; 12 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dáta neboli prijaté'; 13 | $PHPMAILER_LANG['empty_message'] = 'Prázdne telo správy.'; 14 | $PHPMAILER_LANG['encoding'] = 'Neznáme kódovanie: '; 15 | $PHPMAILER_LANG['execute'] = 'Nedá sa vykonať: '; 16 | $PHPMAILER_LANG['file_access'] = 'Súbor nebol nájdený: '; 17 | $PHPMAILER_LANG['file_open'] = 'File Error: Súbor sa otvoriť pre čítanie: '; 18 | $PHPMAILER_LANG['from_failed'] = 'Následujúca adresa From je nesprávna: '; 19 | $PHPMAILER_LANG['instantiate'] = 'Nedá sa vytvoriť inštancia emailovej funkcie.'; 20 | $PHPMAILER_LANG['invalid_address'] = 'Neodoslané, emailová adresa je nesprávna: '; 21 | $PHPMAILER_LANG['invalid_hostentry'] = 'Záznam hostiteľa je nesprávny: '; 22 | $PHPMAILER_LANG['invalid_host'] = 'Hostiteľ je nesprávny: '; 23 | $PHPMAILER_LANG['mailer_not_supported'] = ' emailový klient nieje podporovaný.'; 24 | $PHPMAILER_LANG['provide_address'] = 'Musíte zadať aspoň jednu emailovú adresu príjemcu.'; 25 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Adresy príjemcov niesu správne '; 26 | $PHPMAILER_LANG['signing'] = 'Chyba prihlasovania: '; 27 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() zlyhalo.'; 28 | $PHPMAILER_LANG['smtp_error'] = 'SMTP chyba serveru: '; 29 | $PHPMAILER_LANG['variable_set'] = 'Nemožno nastaviť alebo resetovať premennú: '; 30 | $PHPMAILER_LANG['extension_missing'] = 'Chýba rozšírenie: '; 31 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php: -------------------------------------------------------------------------------- 1 | 7 | * @author @januridp 8 | * @author Ian Mustafa 9 | */ 10 | 11 | $PHPMAILER_LANG['authenticate'] = 'Kesalahan SMTP: Tidak dapat mengotentikasi.'; 12 | $PHPMAILER_LANG['connect_host'] = 'Kesalahan SMTP: Tidak dapat terhubung ke host SMTP.'; 13 | $PHPMAILER_LANG['data_not_accepted'] = 'Kesalahan SMTP: Data tidak diterima.'; 14 | $PHPMAILER_LANG['empty_message'] = 'Isi pesan kosong'; 15 | $PHPMAILER_LANG['encoding'] = 'Pengkodean karakter tidak dikenali: '; 16 | $PHPMAILER_LANG['execute'] = 'Tidak dapat menjalankan proses: '; 17 | $PHPMAILER_LANG['file_access'] = 'Tidak dapat mengakses berkas: '; 18 | $PHPMAILER_LANG['file_open'] = 'Kesalahan Berkas: Berkas tidak dapat dibuka: '; 19 | $PHPMAILER_LANG['from_failed'] = 'Alamat pengirim berikut mengakibatkan kesalahan: '; 20 | $PHPMAILER_LANG['instantiate'] = 'Tidak dapat menginisialisasi fungsi surel.'; 21 | $PHPMAILER_LANG['invalid_address'] = 'Gagal terkirim, alamat surel tidak sesuai: '; 22 | $PHPMAILER_LANG['invalid_hostentry'] = 'Gagal terkirim, entri host tidak sesuai: '; 23 | $PHPMAILER_LANG['invalid_host'] = 'Gagal terkirim, host tidak sesuai: '; 24 | $PHPMAILER_LANG['provide_address'] = 'Harus tersedia minimal satu alamat tujuan'; 25 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer tidak didukung'; 26 | $PHPMAILER_LANG['recipients_failed'] = 'Kesalahan SMTP: Alamat tujuan berikut menyebabkan kesalahan: '; 27 | $PHPMAILER_LANG['signing'] = 'Kesalahan dalam penandatangan SSL: '; 28 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() gagal.'; 29 | $PHPMAILER_LANG['smtp_error'] = 'Kesalahan pada pelayan SMTP: '; 30 | $PHPMAILER_LANG['variable_set'] = 'Tidak dapat mengatur atau mengatur ulang variabel: '; 31 | $PHPMAILER_LANG['extension_missing'] = 'Ekstensi PHP tidak tersedia: '; 32 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/COMMITMENT: -------------------------------------------------------------------------------- 1 | GPL Cooperation Commitment 2 | Version 1.0 3 | 4 | Before filing or continuing to prosecute any legal proceeding or claim 5 | (other than a Defensive Action) arising from termination of a Covered 6 | License, we commit to extend to the person or entity ('you') accused 7 | of violating the Covered License the following provisions regarding 8 | cure and reinstatement, taken from GPL version 3. As used here, the 9 | term 'this License' refers to the specific Covered License being 10 | enforced. 11 | 12 | However, if you cease all violation of this License, then your 13 | license from a particular copyright holder is reinstated (a) 14 | provisionally, unless and until the copyright holder explicitly 15 | and finally terminates your license, and (b) permanently, if the 16 | copyright holder fails to notify you of the violation by some 17 | reasonable means prior to 60 days after the cessation. 18 | 19 | Moreover, your license from a particular copyright holder is 20 | reinstated permanently if the copyright holder notifies you of the 21 | violation by some reasonable means, this is the first time you 22 | have received notice of violation of this License (for any work) 23 | from that copyright holder, and you cure the violation prior to 30 24 | days after your receipt of the notice. 25 | 26 | We intend this Commitment to be irrevocable, and binding and 27 | enforceable against us and assignees of or successors to our 28 | copyrights. 29 | 30 | Definitions 31 | 32 | 'Covered License' means the GNU General Public License, version 2 33 | (GPLv2), the GNU Lesser General Public License, version 2.1 34 | (LGPLv2.1), or the GNU Library General Public License, version 2 35 | (LGPLv2), all as published by the Free Software Foundation. 36 | 37 | 'Defensive Action' means a legal proceeding or claim that We bring 38 | against you in response to a prior proceeding or claim initiated by 39 | you or your affiliate. 40 | 41 | 'We' means each contributor to this repository as of the date of 42 | inclusion of this file, including subsidiaries of a corporate 43 | contributor. 44 | 45 | This work is available under a Creative Commons Attribution-ShareAlike 46 | 4.0 International license (https://creativecommons.org/licenses/by-sa/4.0/). 47 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | $PHPMAILER_LANG['authenticate'] = 'SMTP-fout: authenticatie mislukt.'; 10 | $PHPMAILER_LANG['buggy_php'] = 'PHP versie gededecteerd die onderhavig is aan een bug die kan resulteren in gecorrumpeerde berichten. Om dit te voorkomen, gebruik SMTP voor het verzenden van berichten, zet de mail.add_x_header optie in uw php.ini file uit, gebruik MacOS of Linux, of pas de gebruikte PHP versie aan naar versie 7.0.17+ or 7.1.3+.'; 11 | $PHPMAILER_LANG['connect_host'] = 'SMTP-fout: kon niet verbinden met SMTP-host.'; 12 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP-fout: data niet geaccepteerd.'; 13 | $PHPMAILER_LANG['empty_message'] = 'Berichttekst is leeg'; 14 | $PHPMAILER_LANG['encoding'] = 'Onbekende codering: '; 15 | $PHPMAILER_LANG['execute'] = 'Kon niet uitvoeren: '; 16 | $PHPMAILER_LANG['extension_missing'] = 'Extensie afwezig: '; 17 | $PHPMAILER_LANG['file_access'] = 'Kreeg geen toegang tot bestand: '; 18 | $PHPMAILER_LANG['file_open'] = 'Bestandsfout: kon bestand niet openen: '; 19 | $PHPMAILER_LANG['from_failed'] = 'Het volgende afzendersadres is mislukt: '; 20 | $PHPMAILER_LANG['instantiate'] = 'Kon mailfunctie niet initialiseren.'; 21 | $PHPMAILER_LANG['invalid_address'] = 'Ongeldig adres: '; 22 | $PHPMAILER_LANG['invalid_header'] = 'Ongeldige header naam of waarde'; 23 | $PHPMAILER_LANG['invalid_hostentry'] = 'Ongeldige hostentry: '; 24 | $PHPMAILER_LANG['invalid_host'] = 'Ongeldige host: '; 25 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer wordt niet ondersteund.'; 26 | $PHPMAILER_LANG['provide_address'] = 'Er moet minstens één ontvanger worden opgegeven.'; 27 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP-fout: de volgende ontvangers zijn mislukt: '; 28 | $PHPMAILER_LANG['signing'] = 'Signeerfout: '; 29 | $PHPMAILER_LANG['smtp_code'] = 'SMTP code: '; 30 | $PHPMAILER_LANG['smtp_code_ex'] = 'Aanvullende SMTP informatie: '; 31 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Verbinding mislukt.'; 32 | $PHPMAILER_LANG['smtp_detail'] = 'Detail: '; 33 | $PHPMAILER_LANG['smtp_error'] = 'SMTP-serverfout: '; 34 | $PHPMAILER_LANG['variable_set'] = 'Kan de volgende variabele niet instellen of resetten: '; 35 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php: -------------------------------------------------------------------------------- 1 | 7 | * @author Filip Š 8 | * @author Blaž Oražem 9 | */ 10 | 11 | $PHPMAILER_LANG['authenticate'] = 'SMTP napaka: Avtentikacija ni uspela.'; 12 | $PHPMAILER_LANG['buggy_php'] = 'Na vašo PHP različico vpliva napaka, ki lahko povzroči poškodovana sporočila. Če želite težavo odpraviti, preklopite na pošiljanje prek SMTP, onemogočite možnost mail.add_x_header v vaši php.ini datoteki, preklopite na MacOS ali Linux, ali nadgradite vašo PHP zaličico na 7.0.17+ ali 7.1.3+.'; 13 | $PHPMAILER_LANG['connect_host'] = 'SMTP napaka: Vzpostavljanje povezave s SMTP gostiteljem ni uspelo.'; 14 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP napaka: Strežnik zavrača podatke.'; 15 | $PHPMAILER_LANG['empty_message'] = 'E-poštno sporočilo nima vsebine.'; 16 | $PHPMAILER_LANG['encoding'] = 'Nepoznan tip kodiranja: '; 17 | $PHPMAILER_LANG['execute'] = 'Operacija ni uspela: '; 18 | $PHPMAILER_LANG['extension_missing'] = 'Manjkajoča razširitev: '; 19 | $PHPMAILER_LANG['file_access'] = 'Nimam dostopa do datoteke: '; 20 | $PHPMAILER_LANG['file_open'] = 'Ne morem odpreti datoteke: '; 21 | $PHPMAILER_LANG['from_failed'] = 'Neveljaven e-naslov pošiljatelja: '; 22 | $PHPMAILER_LANG['instantiate'] = 'Ne morem inicializirati mail funkcije.'; 23 | $PHPMAILER_LANG['invalid_address'] = 'E-poštno sporočilo ni bilo poslano. E-naslov je neveljaven: '; 24 | $PHPMAILER_LANG['invalid_header'] = 'Neveljavno ime ali vrednost glave'; 25 | $PHPMAILER_LANG['invalid_hostentry'] = 'Neveljaven vnos gostitelja: '; 26 | $PHPMAILER_LANG['invalid_host'] = 'Neveljaven gostitelj: '; 27 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer ni podprt.'; 28 | $PHPMAILER_LANG['provide_address'] = 'Prosimo, vnesite vsaj enega naslovnika.'; 29 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP napaka: Sledeči naslovniki so neveljavni: '; 30 | $PHPMAILER_LANG['signing'] = 'Napaka pri podpisovanju: '; 31 | $PHPMAILER_LANG['smtp_code'] = 'SMTP koda: '; 32 | $PHPMAILER_LANG['smtp_code_ex'] = 'Dodatne informacije o SMTP: '; 33 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Ne morem vzpostaviti povezave s SMTP strežnikom.'; 34 | $PHPMAILER_LANG['smtp_detail'] = 'Podrobnosti: '; 35 | $PHPMAILER_LANG['smtp_error'] = 'Napaka SMTP strežnika: '; 36 | $PHPMAILER_LANG['variable_set'] = 'Ne morem nastaviti oz. ponastaviti spremenljivke: '; 37 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "phpmailer/phpmailer", 3 | "type": "library", 4 | "description": "PHPMailer is a full-featured email creation and transfer class for PHP", 5 | "authors": [ 6 | { 7 | "name": "Marcus Bointon", 8 | "email": "phpmailer@synchromedia.co.uk" 9 | }, 10 | { 11 | "name": "Jim Jagielski", 12 | "email": "jimjag@gmail.com" 13 | }, 14 | { 15 | "name": "Andy Prevost", 16 | "email": "codeworxtech@users.sourceforge.net" 17 | }, 18 | { 19 | "name": "Brent R. Matzelle" 20 | } 21 | ], 22 | "funding": [ 23 | { 24 | "url": "https://github.com/Synchro", 25 | "type": "github" 26 | } 27 | ], 28 | "config": { 29 | "allow-plugins": { 30 | "dealerdirect/phpcodesniffer-composer-installer": true 31 | } 32 | }, 33 | "require": { 34 | "php": ">=5.5.0", 35 | "ext-ctype": "*", 36 | "ext-filter": "*", 37 | "ext-hash": "*" 38 | }, 39 | "require-dev": { 40 | "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", 41 | "doctrine/annotations": "^1.2", 42 | "php-parallel-lint/php-console-highlighter": "^0.5.0", 43 | "php-parallel-lint/php-parallel-lint": "^1.3.1", 44 | "phpcompatibility/php-compatibility": "^9.3.5", 45 | "roave/security-advisories": "dev-latest", 46 | "squizlabs/php_codesniffer": "^3.6.2", 47 | "yoast/phpunit-polyfills": "^1.0.0" 48 | }, 49 | "suggest": { 50 | "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", 51 | "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", 52 | "league/oauth2-google": "Needed for Google XOAUTH2 authentication", 53 | "psr/log": "For optional PSR-3 debug logging", 54 | "stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2 authentication", 55 | "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)" 56 | }, 57 | "autoload": { 58 | "psr-4": { 59 | "PHPMailer\\PHPMailer\\": "src/" 60 | } 61 | }, 62 | "autoload-dev": { 63 | "psr-4": { 64 | "PHPMailer\\Test\\": "test/" 65 | } 66 | }, 67 | "license": "LGPL-2.1-only", 68 | "scripts": { 69 | "check": "./vendor/bin/phpcs", 70 | "test": "./vendor/bin/phpunit --no-coverage", 71 | "coverage": "./vendor/bin/phpunit", 72 | "lint": [ 73 | "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php,phps --exclude vendor --exclude .git --exclude build" 74 | ] 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php: -------------------------------------------------------------------------------- 1 | 7 | * @author Lucas Guimarães 8 | * @author Phelipe Alves 9 | * @author Fabio Beneditto 10 | * @author Geidson Benício Coelho 11 | */ 12 | 13 | $PHPMAILER_LANG['authenticate'] = 'Erro de SMTP: Não foi possível autenticar.'; 14 | $PHPMAILER_LANG['buggy_php'] = 'Sua versão do PHP é afetada por um bug que por resultar em messagens corrompidas. Para corrigir, mude para enviar usando SMTP, desative a opção mail.add_x_header em seu php.ini, mude para MacOS ou Linux, ou atualize seu PHP para versão 7.0.17+ ou 7.1.3+ '; 15 | $PHPMAILER_LANG['connect_host'] = 'Erro de SMTP: Não foi possível conectar ao servidor SMTP.'; 16 | $PHPMAILER_LANG['data_not_accepted'] = 'Erro de SMTP: Dados rejeitados.'; 17 | $PHPMAILER_LANG['empty_message'] = 'Mensagem vazia'; 18 | $PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: '; 19 | $PHPMAILER_LANG['execute'] = 'Não foi possível executar: '; 20 | $PHPMAILER_LANG['extension_missing'] = 'Extensão não existe: '; 21 | $PHPMAILER_LANG['file_access'] = 'Não foi possível acessar o arquivo: '; 22 | $PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: Não foi possível abrir o arquivo: '; 23 | $PHPMAILER_LANG['from_failed'] = 'Os seguintes remetentes falharam: '; 24 | $PHPMAILER_LANG['instantiate'] = 'Não foi possível instanciar a função mail.'; 25 | $PHPMAILER_LANG['invalid_address'] = 'Endereço de e-mail inválido: '; 26 | $PHPMAILER_LANG['invalid_header'] = 'Nome ou valor de cabeçalho inválido'; 27 | $PHPMAILER_LANG['invalid_hostentry'] = 'hostentry inválido: '; 28 | $PHPMAILER_LANG['invalid_host'] = 'host inválido: '; 29 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.'; 30 | $PHPMAILER_LANG['provide_address'] = 'Você deve informar pelo menos um destinatário.'; 31 | $PHPMAILER_LANG['recipients_failed'] = 'Erro de SMTP: Os seguintes destinatários falharam: '; 32 | $PHPMAILER_LANG['signing'] = 'Erro de Assinatura: '; 33 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.'; 34 | $PHPMAILER_LANG['smtp_code'] = 'Código do servidor SMTP: '; 35 | $PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: '; 36 | $PHPMAILER_LANG['smtp_code_ex'] = 'Informações adicionais do servidor SMTP: '; 37 | $PHPMAILER_LANG['smtp_detail'] = 'Detalhes do servidor SMTP: '; 38 | $PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: '; 39 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php: -------------------------------------------------------------------------------- 1 | 10 | * @author Jim Jagielski (jimjag) 11 | * @author Andy Prevost (codeworxtech) 12 | * @author Brent R. Matzelle (original founder) 13 | * @copyright 2012 - 2020 Marcus Bointon 14 | * @copyright 2010 - 2012 Jim Jagielski 15 | * @copyright 2004 - 2009 Andy Prevost 16 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 17 | * @note This program is distributed in the hope that it will be useful - WITHOUT 18 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 | * FITNESS FOR A PARTICULAR PURPOSE. 20 | */ 21 | 22 | namespace PHPMailer\PHPMailer; 23 | 24 | use League\OAuth2\Client\Grant\RefreshToken; 25 | use League\OAuth2\Client\Provider\AbstractProvider; 26 | use League\OAuth2\Client\Token\AccessToken; 27 | 28 | /** 29 | * OAuth - OAuth2 authentication wrapper class. 30 | * Uses the oauth2-client package from the League of Extraordinary Packages. 31 | * 32 | * @see http://oauth2-client.thephpleague.com 33 | * 34 | * @author Marcus Bointon (Synchro/coolbru) 35 | */ 36 | class OAuth implements OAuthTokenProvider 37 | { 38 | /** 39 | * An instance of the League OAuth Client Provider. 40 | * 41 | * @var AbstractProvider 42 | */ 43 | protected $provider; 44 | 45 | /** 46 | * The current OAuth access token. 47 | * 48 | * @var AccessToken 49 | */ 50 | protected $oauthToken; 51 | 52 | /** 53 | * The user's email address, usually used as the login ID 54 | * and also the from address when sending email. 55 | * 56 | * @var string 57 | */ 58 | protected $oauthUserEmail = ''; 59 | 60 | /** 61 | * The client secret, generated in the app definition of the service you're connecting to. 62 | * 63 | * @var string 64 | */ 65 | protected $oauthClientSecret = ''; 66 | 67 | /** 68 | * The client ID, generated in the app definition of the service you're connecting to. 69 | * 70 | * @var string 71 | */ 72 | protected $oauthClientId = ''; 73 | 74 | /** 75 | * The refresh token, used to obtain new AccessTokens. 76 | * 77 | * @var string 78 | */ 79 | protected $oauthRefreshToken = ''; 80 | 81 | /** 82 | * OAuth constructor. 83 | * 84 | * @param array $options Associative array containing 85 | * `provider`, `userName`, `clientSecret`, `clientId` and `refreshToken` elements 86 | */ 87 | public function __construct($options) 88 | { 89 | $this->provider = $options['provider']; 90 | $this->oauthUserEmail = $options['userName']; 91 | $this->oauthClientSecret = $options['clientSecret']; 92 | $this->oauthClientId = $options['clientId']; 93 | $this->oauthRefreshToken = $options['refreshToken']; 94 | } 95 | 96 | /** 97 | * Get a new RefreshToken. 98 | * 99 | * @return RefreshToken 100 | */ 101 | protected function getGrant() 102 | { 103 | return new RefreshToken(); 104 | } 105 | 106 | /** 107 | * Get a new AccessToken. 108 | * 109 | * @return AccessToken 110 | */ 111 | protected function getToken() 112 | { 113 | return $this->provider->getAccessToken( 114 | $this->getGrant(), 115 | ['refresh_token' => $this->oauthRefreshToken] 116 | ); 117 | } 118 | 119 | /** 120 | * Generate a base64-encoded OAuth token. 121 | * 122 | * @return string 123 | */ 124 | public function getOauth64() 125 | { 126 | //Get a new token if it's not available or has expired 127 | if (null === $this->oauthToken || $this->oauthToken->hasExpired()) { 128 | $this->oauthToken = $this->getToken(); 129 | } 130 | 131 | return base64_encode( 132 | 'user=' . 133 | $this->oauthUserEmail . 134 | "\001auth=Bearer " . 135 | $this->oauthToken . 136 | "\001\001" 137 | ); 138 | } 139 | } 140 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Feedback form on JavaScript, AJAX and PHP 2 | A small project containing an example of a page with a feedback/contact form built on pure JavaScript and PHP. 3 | 4 | Check the on here Demo: https://itchief.ru/examples/lab.php?topic=php&file=feedback-form 5 | 6 | Screenshots: 7 | 8 | ![](https://itchief.ru/assets/images/350/1.png) 9 | 10 | ![](https://itchief.ru/assets/images/350/2.png) 11 | 12 | ![](https://itchief.ru/assets/images/350/3.png) 13 | 14 | ## Step-by-step instructions 15 | 16 | ### 1. Add form in HTML 17 | ```html 18 |
19 | ... 20 |
21 | ``` 22 | An example of the form is given in "index.html". 23 | 24 | ### 2. Include files in HTML 25 | ```html 26 | 27 | 28 | ``` 29 | The logic of the success message output is written in the success event handler. In "index.html" this is done through the following code: 30 | ```js 31 | document.querySelector('form').addEventListener('success', (e) => { 32 | const el = e.target.closest('.form-container').querySelector('.form-success'); 33 | el.classList.remove('form-success_hide'); 34 | }); 35 | ``` 36 | The success event occurs when we receive a response from the server and result="success". 37 | The fragment that will be displayed is located in "index.html " after the form. It has the following structure: 38 | ```html 39 |
40 |
Форма успешно отправлена. Нажмите , если нужно отправить ещё одну форму.
41 |
42 | ``` 43 | When you click on the button `.form-success__btn:` 44 | ```js 45 | document.querySelector('.form-success__btn').addEventListener('click', (e) => { 46 | form.reset(); 47 | e.target.closest('.form-container').querySelector('.form-success').classList.add('form-success_hide'); 48 | }); 49 | ``` 50 | The `reset()` method resets the form. 51 | 52 | ### 3. Initialize form as `ItcSubmitForm` 53 | ```js 54 | // 'form' - selector 55 | const form = new ItcSubmitForm('form'); 56 | ``` 57 | Additional parameters are passed in the 2nd argument: 58 | ```js 59 | const form = new ItcSubmitForm('form', { 60 | isCheckValidationOnClient: true, // проверять форму перед отправкой на сервер 61 | attachMaxItems: 5, // максимальное количество файлов, которые можно добавить к форме 62 | attachMaxFileSize: 512, // 512 Кбайт - максимальный размер файла 63 | attachExt: ['jpg', 'jpeg', 'bmp', 'gif', 'png'] // допустимые расширения файлов 64 | }); 65 | ``` 66 | Here are the values of the keys that they have by default. 67 | 68 | ### 4. Set values to constants in php script 69 | 70 | 4.1. Checking the captcha: 71 | ```php 72 | define('HAS_CHECK_CAPTCHA', true); 73 | ``` 74 | 4.2. Attached files: 75 | ```php 76 | // не пропускать форму, если к ней не прикреплён хотя бы один файл 77 | define('HAS_ATTACH_REQUIRED', true); 78 | // разрешённые mime типы файлов 79 | define('ALLOWED_MIME_TYPES', ['image/jpeg', 'image/gif', 'image/png']); 80 | // максимальный размер файла 81 | define('MAX_FILE_SIZE', 512 * 1024); 82 | ``` 83 | 84 | 4.3. Mail settings: 85 | ```php 86 | // отправлять письмо на указанный адрес email 87 | define('HAS_SEND_EMAIL', true); 88 | // добавить файлы в тело письма в виде ссылок (В противном случае прикрепить) 89 | define('HAS_ATTACH_IN_BODY', false); 90 | // базовый URL-адрес (используется, если составления полного URL для ссылок, добавляемых в тело письма) 91 | define('BASE_URL', 'https://domain.com'); 92 | // настройка почты (отправка осуществляется через SMTP) 93 | define('EMAIL_SETTINGS', [ 94 | 'addresses' => ['manager@domain.com'], // кому необходимо отправить письмо 95 | 'from' => ['no-reply@domain.com', 'Имя сайта'], // от какого email и имени необходимо отправить письмо 96 | 'subject' => 'Сообщение с формы обратной связи', // тема письма 97 | 'host' => 'ssl://smtp.yandex.ru', // SMTP-хост 98 | 'username' => 'name@yandex.ru', // // SMTP-пользователь 99 | 'password' => '*********', // SMTP-пароль 100 | 'port' => '465' // SMTP-порт 101 | ]); 102 | ``` 103 | 104 | 4.4. Notifications to user: 105 | ```php 106 | // необходимо ли отправлять уведомление пользователю на почту 107 | define('HAS_SEND_NOTIFICATION', false); 108 | // тема письма 109 | define('SUBJECT_FOR_CLIENT', 'Ваше сообщение доставлено'); 110 | ``` 111 | 112 | 4.5. Logs: 113 | ```php 114 | // писать предупреждения и ошибки в лог 115 | define('HAS_WRITE_LOG', true); 116 | ``` 117 | 118 | 4.6. Saving form in txt: 119 | ```php 120 | // записывать успешные формы в файл forms.log 121 | define('HAS_WRITE_TXT', true); 122 | ``` 123 | 124 | ### 5. Copy "feedback" folder to the root directory of site 125 | 126 | By default, the "feedback" folder contains the file "index.html". It can be used to test the form. 127 | On a website with a domain name "domain.com " this form will be available at the following URL: `http://domain.com/feedback/` (or `https://domain.com/feedback/`). 128 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/get_oauth_token.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Jim Jagielski (jimjag) 10 | * @author Andy Prevost (codeworxtech) 11 | * @author Brent R. Matzelle (original founder) 12 | * @copyright 2012 - 2020 Marcus Bointon 13 | * @copyright 2010 - 2012 Jim Jagielski 14 | * @copyright 2004 - 2009 Andy Prevost 15 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 16 | * @note This program is distributed in the hope that it will be useful - WITHOUT 17 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | * FITNESS FOR A PARTICULAR PURPOSE. 19 | */ 20 | 21 | /** 22 | * Get an OAuth2 token from an OAuth2 provider. 23 | * * Install this script on your server so that it's accessible 24 | * as [https/http]:////get_oauth_token.php 25 | * e.g.: http://localhost/phpmailer/get_oauth_token.php 26 | * * Ensure dependencies are installed with 'composer install' 27 | * * Set up an app in your Google/Yahoo/Microsoft account 28 | * * Set the script address as the app's redirect URL 29 | * If no refresh token is obtained when running this file, 30 | * revoke access to your app and run the script again. 31 | */ 32 | 33 | namespace PHPMailer\PHPMailer; 34 | 35 | /** 36 | * Aliases for League Provider Classes 37 | * Make sure you have added these to your composer.json and run `composer install` 38 | * Plenty to choose from here: 39 | * @see http://oauth2-client.thephpleague.com/providers/thirdparty/ 40 | */ 41 | //@see https://github.com/thephpleague/oauth2-google 42 | use League\OAuth2\Client\Provider\Google; 43 | //@see https://packagist.org/packages/hayageek/oauth2-yahoo 44 | use Hayageek\OAuth2\Client\Provider\Yahoo; 45 | //@see https://github.com/stevenmaguire/oauth2-microsoft 46 | use Stevenmaguire\OAuth2\Client\Provider\Microsoft; 47 | 48 | if (!isset($_GET['code']) && !isset($_GET['provider'])) { 49 | ?> 50 | 51 | Select Provider:
52 | Google
53 | Yahoo
54 | Microsoft/Outlook/Hotmail/Live/Office365
55 | 56 | 57 | $clientId, 88 | 'clientSecret' => $clientSecret, 89 | 'redirectUri' => $redirectUri, 90 | 'accessType' => 'offline' 91 | ]; 92 | 93 | $options = []; 94 | $provider = null; 95 | 96 | switch ($providerName) { 97 | case 'Google': 98 | $provider = new Google($params); 99 | $options = [ 100 | 'scope' => [ 101 | 'https://mail.google.com/' 102 | ] 103 | ]; 104 | break; 105 | case 'Yahoo': 106 | $provider = new Yahoo($params); 107 | break; 108 | case 'Microsoft': 109 | $provider = new Microsoft($params); 110 | $options = [ 111 | 'scope' => [ 112 | 'wl.imap', 113 | 'wl.offline_access' 114 | ] 115 | ]; 116 | break; 117 | } 118 | 119 | if (null === $provider) { 120 | exit('Provider missing'); 121 | } 122 | 123 | if (!isset($_GET['code'])) { 124 | //If we don't have an authorization code then get one 125 | $authUrl = $provider->getAuthorizationUrl($options); 126 | $_SESSION['oauth2state'] = $provider->getState(); 127 | header('Location: ' . $authUrl); 128 | exit; 129 | //Check given state against previously stored one to mitigate CSRF attack 130 | } elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) { 131 | unset($_SESSION['oauth2state']); 132 | unset($_SESSION['provider']); 133 | exit('Invalid state'); 134 | } else { 135 | unset($_SESSION['provider']); 136 | //Try to get an access token (using the authorization code grant) 137 | $token = $provider->getAccessToken( 138 | 'authorization_code', 139 | [ 140 | 'code' => $_GET['code'] 141 | ] 142 | ); 143 | //Use this to interact with an API on the users behalf 144 | //Use this to get a new access token if the old one expires 145 | echo 'Refresh Token: ', $token->getRefreshToken(); 146 | } 147 | -------------------------------------------------------------------------------- /feedback/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Форма обратной связи 7 | 8 | 9 | 10 | 11 | 12 |
13 |

Форма обратной связи

14 | 15 |
16 | 17 |
18 |
19 | 20 |
21 | 22 | 24 |
25 |
26 | 27 |
28 | 29 | 31 |
32 |
33 |
34 | 35 |
36 | 37 | 40 |
41 |
42 | 43 | 44 |
45 |
Файлы (не более 5)
46 |
47 | 48 |
49 |
Нажмите для загрузки файлов или перетащите их
50 |
PNG, JPG, GIF (до 512 Кбайт)
51 |
52 |
53 |
54 |
55 |
56 | 57 | 58 |
59 | Капча 61 |
62 | 63 | 65 | 66 | 67 |
68 |
69 | 70 | 72 |
73 |
74 |
75 | 76 | 77 |
78 | 79 | 81 |
82 |
83 | 84 | 85 |
Исправьте данные и отправьте форму ещё раз.
86 | 87 | 88 |
89 | 90 |
91 | 92 |
93 | 94 | 95 |
96 |
Форма успешно отправлена. Нажмите , если нужно отправить ещё одну форму.
98 |
99 | 100 |
101 | 102 |
103 | 104 | 105 | 128 | 129 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security notices relating to PHPMailer 2 | 3 | Please disclose any security issues or vulnerabilities found through [Tidelift's coordinated disclosure system](https://tidelift.com/security) or to the maintainers privately. 4 | 5 | PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is injected into the host project's scope by other means). If the `$patternselect` parameter to `validateAddress()` is set to `'php'` (the default, defined by `PHPMailer::$validator`), and the global namespace contains a function called `php`, it will be called in preference to the built-in validator of the same name. Mitigated in PHPMailer 6.5.0 by denying the use of simple strings as validator function names. Recorded as [CVE-2021-3603](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3603). Reported by [Vikrant Singh Chauhan](mailto:vi@hackberry.xyz) via [huntr.dev](https://www.huntr.dev/). 6 | 7 | PHPMailer versions 6.4.1 and earlier contain a possible remote code execution vulnerability through the `$lang_path` parameter of the `setLanguage()` method. If the `$lang_path` parameter is passed unfiltered from user input, it can be set to [a UNC path](https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths), and if an attacker is also able to persuade the server to load a file from that UNC path, a script file under their control may be executed. This vulnerability only applies to systems that resolve UNC paths, typically only Microsoft Windows. 8 | PHPMailer 6.5.0 mitigates this by no longer treating translation files as PHP code, but by parsing their text content directly. This approach avoids the possibility of executing unknown code while retaining backward compatibility. This isn't ideal, so the current translation format is deprecated and will be replaced in the next major release. Recorded as [CVE-2021-34551](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-34551). Reported by [Jilin Diting Information Technology Co., Ltd](https://listensec.com) via Tidelift. 9 | 10 | PHPMailer versions between 6.1.8 and 6.4.0 contain a regression of the earlier CVE-2018-19296 object injection vulnerability as a result of [a fix for Windows UNC paths in 6.1.8](https://github.com/PHPMailer/PHPMailer/commit/e2e07a355ee8ff36aba21d0242c5950c56e4c6f9). Recorded as [CVE-2020-36326](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-36326). Reported by Fariskhi Vidyan via Tidelift. 6.4.1 fixes this issue, and also enforces stricter checks for URL schemes in local path contexts. 11 | 12 | PHPMailer versions 6.1.5 and earlier contain an output escaping bug that occurs in `Content-Type` and `Content-Disposition` when filenames passed into `addAttachment` and other methods that accept attachment names contain double quote characters, in contravention of RFC822 3.4.1. No specific vulnerability has been found relating to this, but it could allow file attachments to bypass attachment filters that are based on matching filename extensions. Recorded as [CVE-2020-13625](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-13625). Reported by Elar Lang of Clarified Security. 13 | 14 | PHPMailer versions prior to 6.0.6 and 5.2.27 are vulnerable to an object injection attack by passing `phar://` paths into `addAttachment()` and other functions that may receive unfiltered local paths, possibly leading to RCE. Recorded as [CVE-2018-19296](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-19296). See [this article](https://knasmueller.net/5-answers-about-php-phar-exploitation) for more info on this type of vulnerability. Mitigated by blocking the use of paths containing URL-protocol style prefixes such as `phar://`. Reported by Sehun Oh of cyberone.kr. 15 | 16 | PHPMailer versions prior to 5.2.24 (released July 26th 2017) have an XSS vulnerability in one of the code examples, [CVE-2017-11503](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-11503). The `code_generator.phps` example did not filter user input prior to output. This file is distributed with a `.phps` extension, so it it not normally executable unless it is explicitly renamed, and the file is not included when PHPMailer is loaded through composer, so it is safe by default. There was also an undisclosed potential XSS vulnerability in the default exception handler (unused by default). Patches for both issues kindly provided by Patrick Monnerat of the Fedora Project. 17 | 18 | PHPMailer versions prior to 5.2.22 (released January 9th 2017) have a local file disclosure vulnerability, [CVE-2017-5223](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-5223). If content passed into `msgHTML()` is sourced from unfiltered user input, relative paths can map to absolute local file paths and added as attachments. Also note that `addAttachment` (just like `file_get_contents`, `passthru`, `unlink`, etc) should not be passed user-sourced params either! Reported by Yongxiang Li of Asiasecurity. 19 | 20 | PHPMailer versions prior to 5.2.20 (released December 28th 2016) are vulnerable to [CVE-2016-10045](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10045) a remote code execution vulnerability, responsibly reported by [Dawid Golunski](https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html), and patched by Paul Buonopane (@Zenexer). 21 | 22 | PHPMailer versions prior to 5.2.18 (released December 2016) are vulnerable to [CVE-2016-10033](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10033) a remote code execution vulnerability, responsibly reported by [Dawid Golunski](http://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html). 23 | 24 | PHPMailer versions prior to 5.2.14 (released November 2015) are vulnerable to [CVE-2015-8476](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8476) an SMTP CRLF injection bug permitting arbitrary message sending. 25 | 26 | PHPMailer versions prior to 5.2.10 (released May 2015) are vulnerable to [CVE-2008-5619](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2008-5619), a remote code execution vulnerability in the bundled html2text library. This file was removed in 5.2.10, so if you are using a version prior to that and make use of the html2text function, it's vitally important that you upgrade and remove this file. 27 | 28 | PHPMailer versions prior to 2.0.7 and 2.2.1 are vulnerable to [CVE-2012-0796](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-0796), an email header injection attack. 29 | 30 | Joomla 1.6.0 uses PHPMailer in an unsafe way, allowing it to reveal local file paths, reported in [CVE-2011-3747](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-3747). 31 | 32 | PHPMailer didn't sanitise the `$lang_path` parameter in `SetLanguage`. This wasn't a problem in itself, but some apps (PHPClassifieds, ATutor) also failed to sanitise user-provided parameters passed to it, permitting semi-arbitrary local file inclusion, reported in [CVE-2010-4914](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-4914), [CVE-2007-2021](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-2021) and [CVE-2006-5734](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-5734). 33 | 34 | PHPMailer 1.7.2 and earlier contained a possible DDoS vulnerability reported in [CVE-2005-1807](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2005-1807). 35 | 36 | PHPMailer 1.7 and earlier (June 2003) have a possible vulnerability in the `SendmailSend` method where shell commands may not be sanitised. Reported in [CVE-2007-3215](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-3215). 37 | 38 | -------------------------------------------------------------------------------- /feedback/examples/form-processing-1.php: -------------------------------------------------------------------------------- 1 | ['manager@domain.com'], // кому необходимо отправить письмо 42 | 'from' => ['no-reply@domain.com', 'Имя сайта'], // от какого email и имени необходимо отправить письмо 43 | 'subject' => 'Сообщение с формы обратной связи', // тема письма 44 | 'host' => 'ssl://smtp.yandex.ru', // SMTP-хост 45 | 'username' => 'name@yandex.ru', // // SMTP-пользователь 46 | 'password' => '*********', // SMTP-пароль 47 | 'port' => '465' // SMTP-порт 48 | ]; 49 | const HAS_SEND_NOTIFICATION = false; 50 | const BASE_URL = 'https://domain.com'; 51 | const SUBJECT_FOR_CLIENT = 'Ваше сообщение доставлено'; 52 | // 53 | const HAS_WRITE_TXT = true; 54 | 55 | function itc_log($message) 56 | { 57 | if (HAS_WRITE_LOG) { 58 | error_log('Date: ' . date('d.m.Y h:i:s') . ' | ' . $message . PHP_EOL, 3, LOG_FILE); 59 | } 60 | } 61 | 62 | $data = [ 63 | 'errors' => [], 64 | 'form' => [], 65 | 'logs' => [], 66 | 'result' => 'success' 67 | ]; 68 | 69 | $attachs = []; 70 | 71 | /* 4 ЭТАП - ВАЛИДАЦИЯ ДАННЫХ (ЗНАЧЕНИЙ ПОЛЕЙ ФОРМЫ) */ 72 | 73 | // валидация name 74 | if (!empty($_POST['name'])) { 75 | $data['form']['name'] = htmlspecialchars($_POST['name']); 76 | } else { 77 | $data['result'] = 'error'; 78 | $data['errors']['name'] = 'Заполните это поле.'; 79 | itc_log('Не заполнено поле name.'); 80 | } 81 | 82 | // валидация email 83 | if (!empty($_POST['email'])) { 84 | $data['form']['email'] = $_POST['email']; 85 | if (!filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) { 86 | $data['result'] = 'error'; 87 | $data['errors']['email'] = 'Email не корректный.'; 88 | itc_log('Email не корректный.'); 89 | } 90 | } else { 91 | $data['result'] = 'error'; 92 | $data['errors']['email'] = 'Заполните это поле.'; 93 | itc_log('Не заполнено поле email.'); 94 | } 95 | 96 | // валидация message 97 | if (!empty($_POST['message'])) { 98 | $data['form']['message'] = htmlspecialchars($_POST['message']); 99 | if (mb_strlen($data['form']['message'], 'UTF-8') < 20) { 100 | $data['result'] = 'error'; 101 | $data['errors']['message'] = 'Это поле должно быть не меньше 20 cимволов.'; 102 | itc_log('Поле message должно быть не меньше 20 cимволов.'); 103 | } 104 | } else { 105 | $data['result'] = 'error'; 106 | $data['errors']['message'] = 'Заполните это поле.'; 107 | itc_log('Не заполнено поле message.'); 108 | } 109 | 110 | // проверка капчи 111 | if (HAS_CHECK_CAPTCHA) { 112 | session_start(); 113 | if ($_POST['captcha'] === $_SESSION['captcha-1']) { 114 | $data['form']['captcha'] = $_POST['captcha']; 115 | } else { 116 | $data['result'] = 'error'; 117 | $data['errors']['captcha'] = 'Код не соответствует изображению.'; 118 | itc_log('Не пройдена капча. Указанный код ' . $_POST['captcha'] . ' не соответствует ' . $_SESSION['captcha']); 119 | } 120 | } 121 | 122 | // валидация agree 123 | if ($_POST['agree'] == 'true') { 124 | $data['form']['agree'] = true; 125 | } else { 126 | $data['result'] = 'error'; 127 | $data['errors']['agree'] = 'Необходимо установить этот флажок.'; 128 | itc_log('Не установлен флажок для поля agree.'); 129 | } 130 | 131 | // валидация прикреплённых файлов 132 | if (empty($_FILES['attach'])) { 133 | if (HAS_ATTACH_REQUIRED) { 134 | $data['result'] = 'error'; 135 | $data['errors']['attach'] = 'Заполните это поле.'; 136 | itc_log('Не прикреплены файлы к форме.'); 137 | } 138 | } else { 139 | foreach ($_FILES['attach']['error'] as $key => $error) { 140 | if ($error == UPLOAD_ERR_OK) { 141 | $name = basename($_FILES['attach']['name'][$key]); 142 | $size = $_FILES['attach']['size'][$key]; 143 | $mtype = mime_content_type($_FILES['attach']['tmp_name'][$key]); 144 | if (!in_array($mtype, ALLOWED_MIME_TYPES)) { 145 | $data['result'] = 'error'; 146 | $data['errors']['attach'][$key] = 'Файл имеет не разрешённый тип.'; 147 | itc_log('Прикреплённый файл ' . $name . ' имеет не разрешённый тип.'); 148 | } else if ($size > MAX_FILE_SIZE) { 149 | $data['result'] = 'error'; 150 | $data['errors']['attach'][$key] = 'Размер файла превышает допустимый.'; 151 | itc_log('Размер файла ' . $name . ' превышает допустимый.'); 152 | } 153 | } 154 | } 155 | if ($data['result'] === 'success') { 156 | // перемещаем файлы в папку UPLOAD_PATH 157 | foreach ($_FILES['attach']['name'] as $key => $attach) { 158 | $ext = mb_strtolower(pathinfo($_FILES['attach']['name'][$key], PATHINFO_EXTENSION)); 159 | $name = basename($_FILES['attach']['name'][$key], $ext); 160 | $tmp = $_FILES['attach']['tmp_name'][$key]; 161 | $newName = rtrim($name, '.') . '_' . uniqid() . '.' . $ext; 162 | if (!move_uploaded_file($tmp, UPLOAD_PATH . $newName)) { 163 | $data['result'] = 'error'; 164 | $data['errors']['attach'][$key] = 'Ошибка при загрузке файла.'; 165 | itc_log('Ошибка при перемещении файла ' . $name . '.'); 166 | } else { 167 | $attachs[] = UPLOAD_PATH . $newName; 168 | } 169 | } 170 | } 171 | } 172 | 173 | use PHPMailer\PHPMailer\PHPMailer; 174 | //use PHPMailer\PHPMailer\SMTP; 175 | use PHPMailer\PHPMailer\Exception; 176 | 177 | require '../vendor/phpmailer/phpmailer/src/Exception.php'; 178 | require '../vendor/phpmailer/phpmailer/src/PHPMailer.php'; 179 | require '../vendor/phpmailer/phpmailer/src/SMTP.php'; 180 | 181 | if ($data['result'] == 'success' && HAS_SEND_EMAIL) { 182 | // получаем содержимое email шаблона и заменяем в нём 183 | $template = file_get_contents('../template/email.tpl'); 184 | $search = ['%subject%', '%name%', '%email%', '%message%', '%date%']; 185 | $replace = [EMAIL_SETTINGS['subject'], $data['form']['name'], $data['form']['email'], $data['form']['message'], date('d.m.Y H:i')]; 186 | $body = str_replace($search, $replace, $template); 187 | // добавление файлов в виде ссылок 188 | if (HAS_ATTACH_IN_BODY && count($attachs)) { 189 | $ul = 'Файлы, прикреплённые к форме:
    '; 190 | foreach ($attachs as $attach) { 191 | $href = str_replace($_SERVER['DOCUMENT_ROOT'], '', $attach); 192 | $name = basename($href); 193 | $ul .= '
  • ' . $name . '
  • '; 194 | 195 | $data['href'][] = BASE_URL . $href; 196 | } 197 | $ul .= '
'; 198 | $body = str_replace('%attachs%', $ul, $body); 199 | } else { 200 | $body = str_replace('%attachs%', '', $body); 201 | } 202 | $mail = new PHPMailer(); 203 | try { 204 | //Server settings 205 | $mail->isSMTP(); 206 | $mail->Host = EMAIL_SETTINGS['host']; 207 | $mail->SMTPAuth = true; 208 | $mail->Username = EMAIL_SETTINGS['username']; 209 | $mail->Password = EMAIL_SETTINGS['password']; 210 | $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; 211 | $mail->Port = EMAIL_SETTINGS['port']; 212 | //Recipients 213 | $mail->setFrom(EMAIL_SETTINGS['from'][0], EMAIL_SETTINGS['from'][1]); 214 | foreach (EMAIL_SETTINGS['addresses'] as $address) { 215 | $mail->addAddress(trim($address)); 216 | } 217 | //Attachments 218 | if (!HAS_ATTACH_IN_BODY && count($attachs)) { 219 | foreach ($attachs as $attach) { 220 | $mail->addAttachment($attach); 221 | } 222 | } 223 | //Content 224 | $mail->CharSet = 'UTF-8'; 225 | $mail->Encoding = 'base64'; 226 | $mail->isHTML(true); 227 | $mail->Subject = EMAIL_SETTINGS['subject']; 228 | $mail->Body = $body; 229 | $mail->send(); 230 | itc_log('Форма успешно отправлена.'); 231 | } catch (Exception $e) { 232 | $data['result'] = 'error'; 233 | itc_log('Ошибка при отправке письма: ' . $mail->ErrorInfo); 234 | } 235 | } 236 | 237 | if ($data['result'] == 'success' && HAS_SEND_NOTIFICATION) { 238 | // очистка адресов и прикреплёных файлов 239 | $mail->clearAllRecipients(); 240 | $mail->clearAttachments(); 241 | // получаем содержимое email шаблона и заменяем в нём плейсхолдеры на соответствующие им значения 242 | $template = file_get_contents('../template/email_client.tpl'); 243 | $search = ['%subject%', '%name%', '%date%']; 244 | $replace = [SUBJECT_FOR_CLIENT, $data['form']['name'], date('d.m.Y H:i')]; 245 | $body = str_replace($search, $replace, $template); 246 | try { 247 | // устанавливаем параметры 248 | $mail->Subject = SUBJECT_FOR_CLIENT; 249 | $mail->Body = $body; 250 | $mail->addAddress($data['form']['email']); 251 | $mail->send(); 252 | itc_log('Успешно отправлено уведомление пользователю.'); 253 | } catch (Exception $e) { 254 | itc_log('Ошибка при отправке уведомления пользователю: ' . $mail->ErrorInfo); 255 | } 256 | } 257 | 258 | if ($data['result'] == 'success' && HAS_WRITE_TXT) { 259 | $output = '=======' . date('d.m.Y H:i') . '======='; 260 | $output .= 'Имя: ' . $data['form']['name'] . PHP_EOL; 261 | $output .= 'Email: ' . $data['form']['email'] . PHP_EOL; 262 | $output .= 'Сообщение: ' . $data['form']['message'] . PHP_EOL; 263 | if (count($attachs)) { 264 | $output .= 'Файлы:' . PHP_EOL; 265 | foreach ($attachs as $attach) { 266 | $output .= $attach . PHP_EOL; 267 | } 268 | } 269 | $output = '====================='; 270 | error_log($output, 3, '../logs/forms.log'); 271 | } 272 | 273 | echo json_encode($data); 274 | exit(); 275 | -------------------------------------------------------------------------------- /feedback/examples/form-processing-2.php: -------------------------------------------------------------------------------- 1 | ['manager@domain.com'], // кому необходимо отправить письмо 42 | 'from' => ['no-reply@domain.com', 'Имя сайта'], // от какого email и имени необходимо отправить письмо 43 | 'subject' => 'Сообщение с формы обратной связи', // тема письма 44 | 'host' => 'ssl://smtp.yandex.ru', // SMTP-хост 45 | 'username' => 'name@yandex.ru', // // SMTP-пользователь 46 | 'password' => '*********', // SMTP-пароль 47 | 'port' => '465' // SMTP-порт 48 | ]; 49 | const HAS_SEND_NOTIFICATION = false; 50 | const BASE_URL = 'https://domain.com'; 51 | const SUBJECT_FOR_CLIENT = 'Ваше сообщение доставлено'; 52 | // 53 | const HAS_WRITE_TXT = true; 54 | 55 | function itc_log($message) 56 | { 57 | if (HAS_WRITE_LOG) { 58 | error_log('Date: ' . date('d.m.Y h:i:s') . ' | ' . $message . PHP_EOL, 3, LOG_FILE); 59 | } 60 | } 61 | 62 | $data = [ 63 | 'errors' => [], 64 | 'form' => [], 65 | 'logs' => [], 66 | 'result' => 'success' 67 | ]; 68 | 69 | $attachs = []; 70 | 71 | /* 4 ЭТАП - ВАЛИДАЦИЯ ДАННЫХ (ЗНАЧЕНИЙ ПОЛЕЙ ФОРМЫ) */ 72 | 73 | // валидация name 74 | if (!empty($_POST['name'])) { 75 | $data['form']['name'] = htmlspecialchars($_POST['name']); 76 | } else { 77 | $data['result'] = 'error'; 78 | $data['errors']['name'] = 'Заполните это поле.'; 79 | itc_log('Не заполнено поле name.'); 80 | } 81 | 82 | // валидация email 83 | if (!empty($_POST['email'])) { 84 | $data['form']['email'] = $_POST['email']; 85 | if (!filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) { 86 | $data['result'] = 'error'; 87 | $data['errors']['email'] = 'Email не корректный.'; 88 | itc_log('Email не корректный.'); 89 | } 90 | } else { 91 | $data['result'] = 'error'; 92 | $data['errors']['email'] = 'Заполните это поле.'; 93 | itc_log('Не заполнено поле email.'); 94 | } 95 | 96 | // валидация message 97 | if (!empty($_POST['message'])) { 98 | $data['form']['message'] = htmlspecialchars($_POST['message']); 99 | if (mb_strlen($data['form']['message'], 'UTF-8') < 20) { 100 | $data['result'] = 'error'; 101 | $data['errors']['message'] = 'Это поле должно быть не меньше 20 cимволов.'; 102 | itc_log('Поле message должно быть не меньше 20 cимволов.'); 103 | } 104 | } else { 105 | $data['result'] = 'error'; 106 | $data['errors']['message'] = 'Заполните это поле.'; 107 | itc_log('Не заполнено поле message.'); 108 | } 109 | 110 | // проверка капчи 111 | if (HAS_CHECK_CAPTCHA) { 112 | session_start(); 113 | if ($_POST['captcha'] === $_SESSION['captcha-2']) { 114 | $data['form']['captcha'] = $_POST['captcha']; 115 | } else { 116 | $data['result'] = 'error'; 117 | $data['errors']['captcha'] = 'Код не соответствует изображению.'; 118 | itc_log('Не пройдена капча. Указанный код ' . $_POST['captcha'] . ' не соответствует ' . $_SESSION['captcha']); 119 | } 120 | } 121 | 122 | // валидация agree 123 | if ($_POST['agree'] == 'true') { 124 | $data['form']['agree'] = true; 125 | } else { 126 | $data['result'] = 'error'; 127 | $data['errors']['agree'] = 'Необходимо установить этот флажок.'; 128 | itc_log('Не установлен флажок для поля agree.'); 129 | } 130 | 131 | // валидация прикреплённых файлов 132 | if (empty($_FILES['attach'])) { 133 | if (HAS_ATTACH_REQUIRED) { 134 | $data['result'] = 'error'; 135 | $data['errors']['attach'] = 'Заполните это поле.'; 136 | itc_log('Не прикреплены файлы к форме.'); 137 | } 138 | } else { 139 | foreach ($_FILES['attach']['error'] as $key => $error) { 140 | if ($error == UPLOAD_ERR_OK) { 141 | $name = basename($_FILES['attach']['name'][$key]); 142 | $size = $_FILES['attach']['size'][$key]; 143 | $mtype = mime_content_type($_FILES['attach']['tmp_name'][$key]); 144 | if (!in_array($mtype, ALLOWED_MIME_TYPES)) { 145 | $data['result'] = 'error'; 146 | $data['errors']['attach'][$key] = 'Файл имеет не разрешённый тип.'; 147 | itc_log('Прикреплённый файл ' . $name . ' имеет не разрешённый тип.'); 148 | } else if ($size > MAX_FILE_SIZE) { 149 | $data['result'] = 'error'; 150 | $data['errors']['attach'][$key] = 'Размер файла превышает допустимый.'; 151 | itc_log('Размер файла ' . $name . ' превышает допустимый.'); 152 | } 153 | } 154 | } 155 | if ($data['result'] === 'success') { 156 | // перемещаем файлы в папку UPLOAD_PATH 157 | foreach ($_FILES['attach']['name'] as $key => $attach) { 158 | $ext = mb_strtolower(pathinfo($_FILES['attach']['name'][$key], PATHINFO_EXTENSION)); 159 | $name = basename($_FILES['attach']['name'][$key], $ext); 160 | $tmp = $_FILES['attach']['tmp_name'][$key]; 161 | $newName = rtrim($name, '.') . '_' . uniqid() . '.' . $ext; 162 | if (!move_uploaded_file($tmp, UPLOAD_PATH . $newName)) { 163 | $data['result'] = 'error'; 164 | $data['errors']['attach'][$key] = 'Ошибка при загрузке файла.'; 165 | itc_log('Ошибка при перемещении файла ' . $name . '.'); 166 | } else { 167 | $attachs[] = UPLOAD_PATH . $newName; 168 | } 169 | } 170 | } 171 | } 172 | 173 | use PHPMailer\PHPMailer\PHPMailer; 174 | //use PHPMailer\PHPMailer\SMTP; 175 | use PHPMailer\PHPMailer\Exception; 176 | 177 | require '../vendor/phpmailer/phpmailer/src/Exception.php'; 178 | require '../vendor/phpmailer/phpmailer/src/PHPMailer.php'; 179 | require '../vendor/phpmailer/phpmailer/src/SMTP.php'; 180 | 181 | if ($data['result'] == 'success' && HAS_SEND_EMAIL) { 182 | // получаем содержимое email шаблона и заменяем в нём 183 | $template = file_get_contents('../template/email.tpl'); 184 | $search = ['%subject%', '%name%', '%email%', '%message%', '%date%']; 185 | $replace = [EMAIL_SETTINGS['subject'], $data['form']['name'], $data['form']['email'], $data['form']['message'], date('d.m.Y H:i')]; 186 | $body = str_replace($search, $replace, $template); 187 | // добавление файлов в виде ссылок 188 | if (HAS_ATTACH_IN_BODY && count($attachs)) { 189 | $ul = 'Файлы, прикреплённые к форме:
    '; 190 | foreach ($attachs as $attach) { 191 | $href = str_replace($_SERVER['DOCUMENT_ROOT'], '', $attach); 192 | $name = basename($href); 193 | $ul .= '
  • ' . $name . '
  • '; 194 | 195 | $data['href'][] = BASE_URL . $href; 196 | } 197 | $ul .= '
'; 198 | $body = str_replace('%attachs%', $ul, $body); 199 | } else { 200 | $body = str_replace('%attachs%', '', $body); 201 | } 202 | $mail = new PHPMailer(); 203 | try { 204 | //Server settings 205 | $mail->isSMTP(); 206 | $mail->Host = EMAIL_SETTINGS['host']; 207 | $mail->SMTPAuth = true; 208 | $mail->Username = EMAIL_SETTINGS['username']; 209 | $mail->Password = EMAIL_SETTINGS['password']; 210 | $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; 211 | $mail->Port = EMAIL_SETTINGS['port']; 212 | //Recipients 213 | $mail->setFrom(EMAIL_SETTINGS['from'][0], EMAIL_SETTINGS['from'][1]); 214 | foreach (EMAIL_SETTINGS['addresses'] as $address) { 215 | $mail->addAddress(trim($address)); 216 | } 217 | //Attachments 218 | if (!HAS_ATTACH_IN_BODY && count($attachs)) { 219 | foreach ($attachs as $attach) { 220 | $mail->addAttachment($attach); 221 | } 222 | } 223 | //Content 224 | $mail->CharSet = 'UTF-8'; 225 | $mail->Encoding = 'base64'; 226 | $mail->isHTML(true); 227 | $mail->Subject = EMAIL_SETTINGS['subject']; 228 | $mail->Body = $body; 229 | $mail->send(); 230 | itc_log('Форма успешно отправлена.'); 231 | } catch (Exception $e) { 232 | $data['result'] = 'error'; 233 | itc_log('Ошибка при отправке письма: ' . $mail->ErrorInfo); 234 | } 235 | } 236 | 237 | if ($data['result'] == 'success' && HAS_SEND_NOTIFICATION) { 238 | // очистка адресов и прикреплёных файлов 239 | $mail->clearAllRecipients(); 240 | $mail->clearAttachments(); 241 | // получаем содержимое email шаблона и заменяем в нём плейсхолдеры на соответствующие им значения 242 | $template = file_get_contents('../template/email_client.tpl'); 243 | $search = ['%subject%', '%name%', '%date%']; 244 | $replace = [SUBJECT_FOR_CLIENT, $data['form']['name'], date('d.m.Y H:i')]; 245 | $body = str_replace($search, $replace, $template); 246 | try { 247 | // устанавливаем параметры 248 | $mail->Subject = SUBJECT_FOR_CLIENT; 249 | $mail->Body = $body; 250 | $mail->addAddress($data['form']['email']); 251 | $mail->send(); 252 | itc_log('Успешно отправлено уведомление пользователю.'); 253 | } catch (Exception $e) { 254 | itc_log('Ошибка при отправке уведомления пользователю: ' . $mail->ErrorInfo); 255 | } 256 | } 257 | 258 | if ($data['result'] == 'success' && HAS_WRITE_TXT) { 259 | $output = '=======' . date('d.m.Y H:i') . '======='; 260 | $output .= 'Имя: ' . $data['form']['name'] . PHP_EOL; 261 | $output .= 'Email: ' . $data['form']['email'] . PHP_EOL; 262 | $output .= 'Сообщение: ' . $data['form']['message'] . PHP_EOL; 263 | if (count($attachs)) { 264 | $output .= 'Файлы:' . PHP_EOL; 265 | foreach ($attachs as $attach) { 266 | $output .= $attach . PHP_EOL; 267 | } 268 | } 269 | $output = '====================='; 270 | error_log($output, 3, '../logs/forms.log'); 271 | } 272 | 273 | echo json_encode($data); 274 | exit(); 275 | -------------------------------------------------------------------------------- /feedback/examples/two-forms.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Форма обратной связи 7 | 8 | 9 | 10 | 11 | 12 |
13 |

Форма обратной связи

14 | 15 |
16 | 17 |
18 |
19 | 20 |
21 | 22 | 24 |
25 |
26 | 27 |
28 | 29 | 31 |
32 |
33 |
34 | 35 |
36 | 37 | 40 |
41 |
42 | 43 | 44 |
45 |
Файлы (не более 5)
46 |
47 | 48 |
49 |
Нажмите для загрузки файлов или перетащите их
50 |
PNG, JPG, GIF (до 512 Кбайт)
51 |
52 |
53 |
54 |
55 |
56 | 57 | 58 |
59 | Капча 61 |
62 | 63 | 65 | 66 | 67 |
68 |
69 | 70 | 72 |
73 |
74 |
75 | 76 | 77 |
78 | 79 | 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 | 111 |
112 |
113 | 114 |
115 | 116 | 118 |
119 |
120 |
121 | 122 |
123 | 124 | 127 |
128 |
129 | 130 | 131 |
132 |
Файлы (не более 5)
133 |
134 | 135 |
136 |
Нажмите для загрузки файлов или перетащите их
137 |
PNG, JPG, GIF (до 512 Кбайт)
138 |
139 |
140 |
141 |
142 |
143 | 144 | 145 |
146 | Капча 148 |
149 | 150 | 152 | 153 | 154 |
155 |
156 | 157 | 159 |
160 |
161 |
162 | 163 | 164 |
165 | 166 | 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 | 221 | 222 | 223 | 224 | 225 | -------------------------------------------------------------------------------- /feedback/form-processing.php: -------------------------------------------------------------------------------- 1 | ['manager@domain.com'], // кому необходимо отправить письмо 53 | 'from' => ['no-reply@domain.com', 'Имя сайта'], // от какого email и имени необходимо отправить письмо 54 | 'subject' => 'Сообщение с формы обратной связи', // тема письма 55 | 'host' => 'ssl://smtp.yandex.ru', // SMTP-хост 56 | 'username' => 'name@yandex.ru', // // SMTP-пользователь 57 | 'password' => '*********', // SMTP-пароль 58 | 'port' => '465' // SMTP-порт 59 | ]; 60 | const HAS_SEND_NOTIFICATION = false; 61 | const BASE_URL = 'https://domain.com'; 62 | const SUBJECT_FOR_CLIENT = 'Ваше сообщение доставлено'; 63 | // 64 | const HAS_WRITE_TXT = true; 65 | 66 | function itc_log($message) 67 | { 68 | if (HAS_WRITE_LOG) { 69 | error_log('Date: ' . date('d.m.Y h:i:s') . ' | ' . $message . PHP_EOL, 3, LOG_FILE); 70 | } 71 | } 72 | 73 | $data = [ 74 | 'errors' => [], 75 | 'form' => [], 76 | 'logs' => [], 77 | 'result' => 'success' 78 | ]; 79 | 80 | $attachs = []; 81 | 82 | /* 4 ЭТАП - ВАЛИДАЦИЯ ДАННЫХ (ЗНАЧЕНИЙ ПОЛЕЙ ФОРМЫ) */ 83 | 84 | // валидация name 85 | if (!empty($_POST['name'])) { 86 | $data['form']['name'] = htmlspecialchars($_POST['name']); 87 | } else { 88 | $data['result'] = 'error'; 89 | $data['errors']['name'] = 'Заполните это поле.'; 90 | itc_log('Не заполнено поле name.'); 91 | } 92 | 93 | // валидация email 94 | if (!empty($_POST['email'])) { 95 | $data['form']['email'] = $_POST['email']; 96 | if (!filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) { 97 | $data['result'] = 'error'; 98 | $data['errors']['email'] = 'Email не корректный.'; 99 | itc_log('Email не корректный.'); 100 | } 101 | } else { 102 | $data['result'] = 'error'; 103 | $data['errors']['email'] = 'Заполните это поле.'; 104 | itc_log('Не заполнено поле email.'); 105 | } 106 | 107 | // валидация message 108 | if (!empty($_POST['message'])) { 109 | $data['form']['message'] = htmlspecialchars($_POST['message']); 110 | if (mb_strlen($data['form']['message'], 'UTF-8') < 20) { 111 | $data['result'] = 'error'; 112 | $data['errors']['message'] = 'Это поле должно быть не меньше 20 cимволов.'; 113 | itc_log('Поле message должно быть не меньше 20 cимволов.'); 114 | } 115 | } else { 116 | $data['result'] = 'error'; 117 | $data['errors']['message'] = 'Заполните это поле.'; 118 | itc_log('Не заполнено поле message.'); 119 | } 120 | 121 | // проверка капчи 122 | if (HAS_CHECK_CAPTCHA) { 123 | session_start(); 124 | if ($_POST['captcha'] === $_SESSION['captcha']) { 125 | $data['form']['captcha'] = $_POST['captcha']; 126 | } else { 127 | $data['result'] = 'error'; 128 | $data['errors']['captcha'] = 'Код не соответствует изображению.'; 129 | itc_log('Не пройдена капча. Указанный код ' . $_POST['captcha'] . ' не соответствует ' . $_SESSION['captcha']); 130 | } 131 | } 132 | 133 | // валидация agree 134 | if ($_POST['agree'] == 'true') { 135 | $data['form']['agree'] = true; 136 | } else { 137 | $data['result'] = 'error'; 138 | $data['errors']['agree'] = 'Необходимо установить этот флажок.'; 139 | itc_log('Не установлен флажок для поля agree.'); 140 | } 141 | 142 | // валидация прикреплённых файлов 143 | if (empty($_FILES['attach'])) { 144 | if (HAS_ATTACH_REQUIRED) { 145 | $data['result'] = 'error'; 146 | $data['errors']['attach'] = 'Заполните это поле.'; 147 | itc_log('Не прикреплены файлы к форме.'); 148 | } 149 | } else { 150 | foreach ($_FILES['attach']['error'] as $key => $error) { 151 | if ($error == UPLOAD_ERR_OK) { 152 | $name = basename($_FILES['attach']['name'][$key]); 153 | $size = $_FILES['attach']['size'][$key]; 154 | $tmpPath = $_FILES['attach']['tmp_name'][$key]; 155 | 156 | // Определяем MIME-тип файла через finfo 157 | $finfo = finfo_open(FILEINFO_MIME_TYPE); 158 | $mtype = finfo_file($finfo, $tmpPath); 159 | finfo_close($finfo); 160 | 161 | if (!in_array($mtype, ALLOWED_MIME_TYPES, true)) { 162 | $data['result'] = 'error'; 163 | $data['errors']['attach'][$key] = 'Файл имеет не разрешённый тип.'; 164 | itc_log('Прикреплённый файл ' . $name . ' имеет не разрешённый тип (' . $mtype . ').'); 165 | } else if ($size > MAX_FILE_SIZE) { 166 | $data['result'] = 'error'; 167 | $data['errors']['attach'][$key] = 'Размер файла превышает допустимый.'; 168 | itc_log('Размер файла ' . $name . ' превышает допустимый.'); 169 | } 170 | } 171 | } 172 | if ($data['result'] === 'success') { 173 | // перемещаем файлы в папку UPLOAD_PATH 174 | foreach ($_FILES['attach']['name'] as $key => $attach) { 175 | $ext = mb_strtolower(pathinfo($_FILES['attach']['name'][$key], PATHINFO_EXTENSION)); 176 | $name = basename($_FILES['attach']['name'][$key], $ext); 177 | $tmp = $_FILES['attach']['tmp_name'][$key]; 178 | $newName = rtrim($name, '.') . '_' . uniqid() . '.' . $ext; 179 | 180 | if (!move_uploaded_file($tmp, UPLOAD_PATH . $newName)) { 181 | $data['result'] = 'error'; 182 | $data['errors']['attach'][$key] = 'Ошибка при загрузке файла.'; 183 | itc_log('Ошибка при перемещении файла ' . $name . '.'); 184 | } else { 185 | $attachs[] = UPLOAD_PATH . $newName; 186 | } 187 | } 188 | } 189 | } 190 | 191 | use PHPMailer\PHPMailer\PHPMailer; 192 | use PHPMailer\PHPMailer\SMTP; 193 | use PHPMailer\PHPMailer\Exception; 194 | 195 | require 'vendor/phpmailer/phpmailer/src/Exception.php'; 196 | require 'vendor/phpmailer/phpmailer/src/PHPMailer.php'; 197 | require 'vendor/phpmailer/phpmailer/src/SMTP.php'; 198 | 199 | if ($data['result'] == 'success' && HAS_SEND_EMAIL == true) { 200 | // получаем содержимое email шаблона и заменяем в нём 201 | $template = file_get_contents(dirname(__FILE__) . '/template/email.tpl'); 202 | $search = ['%subject%', '%name%', '%email%', '%message%', '%date%']; 203 | $replace = [EMAIL_SETTINGS['subject'], $data['form']['name'], $data['form']['email'], $data['form']['message'], date('d.m.Y H:i')]; 204 | $body = str_replace($search, $replace, $template); 205 | // добавление файлов в виде ссылок 206 | if (HAS_ATTACH_IN_BODY && count($attachs)) { 207 | $ul = 'Файлы, прикреплённые к форме:
    '; 208 | foreach ($attachs as $attach) { 209 | $href = str_replace($_SERVER['DOCUMENT_ROOT'], '', $attach); 210 | $name = basename($href); 211 | $ul .= '
  • ' . $name . '
  • '; 212 | 213 | $data['href'][] = BASE_URL . $href; 214 | } 215 | $ul .= '
'; 216 | $body = str_replace('%attachs%', $ul, $body); 217 | } else { 218 | $body = str_replace('%attachs%', '', $body); 219 | } 220 | $mail = new PHPMailer(true); 221 | $mail->SMTPDebug = 2; 222 | $mail->Debugoutput = function($str, $level) { 223 | $file = __DIR__ . '/logs/smtp_' . date('Y-m-d') . '.log'; 224 | file_put_contents($file, gmdate('Y-m-d H:i:s'). "\t$level\t$str\n", FILE_APPEND | LOCK_EX); 225 | }; 226 | try { 227 | //Server settings 228 | $mail->isSMTP(); 229 | $mail->Host = EMAIL_SETTINGS['host']; 230 | $mail->SMTPAuth = true; 231 | $mail->Username = EMAIL_SETTINGS['username']; 232 | $mail->Password = EMAIL_SETTINGS['password']; 233 | $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; 234 | $mail->Port = EMAIL_SETTINGS['port']; 235 | //Recipients 236 | $mail->setFrom(EMAIL_SETTINGS['from'][0], EMAIL_SETTINGS['from'][1]); 237 | foreach (EMAIL_SETTINGS['addresses'] as $address) { 238 | $mail->addAddress(trim($address)); 239 | } 240 | //Attachments 241 | if (!HAS_ATTACH_IN_BODY && count($attachs)) { 242 | foreach ($attachs as $attach) { 243 | $mail->addAttachment($attach); 244 | } 245 | } 246 | //Content 247 | $mail->CharSet = 'UTF-8'; 248 | $mail->Encoding = 'base64'; 249 | $mail->isHTML(true); 250 | $mail->Subject = EMAIL_SETTINGS['subject']; 251 | $mail->Body = $body; 252 | $mail->send(); 253 | itc_log('Форма успешно отправлена.'); 254 | } catch (Exception $e) { 255 | $data['result'] = 'error'; 256 | itc_log('Ошибка при отправке письма: ' . $mail->ErrorInfo); 257 | } 258 | } 259 | 260 | if ($data['result'] == 'success' && HAS_SEND_NOTIFICATION) { 261 | // очистка адресов и прикреплёных файлов 262 | $mail->clearAllRecipients(); 263 | $mail->clearAttachments(); 264 | // получаем содержимое email шаблона и заменяем в нём плейсхолдеры на соответствующие им значения 265 | $template = file_get_contents(dirname(__FILE__) . '/template/email_client.tpl'); 266 | $search = ['%subject%', '%name%', '%date%']; 267 | $replace = [SUBJECT_FOR_CLIENT, $data['form']['name'], date('d.m.Y H:i')]; 268 | $body = str_replace($search, $replace, $template); 269 | try { 270 | // устанавливаем параметры 271 | $mail->Subject = SUBJECT_FOR_CLIENT; 272 | $mail->Body = $body; 273 | $mail->addAddress($data['form']['email']); 274 | $mail->send(); 275 | itc_log('Успешно отправлено уведомление пользователю.'); 276 | } catch (Exception $e) { 277 | itc_log('Ошибка при отправке уведомления пользователю: ' . $mail->ErrorInfo); 278 | } 279 | } 280 | 281 | if ($data['result'] == 'success' && HAS_WRITE_TXT) { 282 | $output = '=======' . date('d.m.Y H:i') . '======='; 283 | $output .= 'Имя: ' . $data['form']['name'] . PHP_EOL; 284 | $output .= 'Email: ' . $data['form']['email'] . PHP_EOL; 285 | $output .= 'Сообщение: ' . $data['form']['message'] . PHP_EOL; 286 | if (count($attachs)) { 287 | $output .= 'Файлы:' . PHP_EOL; 288 | foreach ($attachs as $attach) { 289 | $output .= $attach . PHP_EOL; 290 | } 291 | } 292 | $output = '====================='; 293 | error_log($output, 3, 'logs/forms.log'); 294 | } 295 | 296 | echo json_encode($data); 297 | exit(); 298 | -------------------------------------------------------------------------------- /feedback/js/form-processing.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Форма обратной связи (https://github.com/itchief/feedback-form) 3 | * Описание: https://itchief.ru/php/feedback-form 4 | * Copyright 2016-2022 Alexander Maltsev 5 | * Licensed under MIT (https://github.com/itchief/feedback-form/blob/master/LICENSE) 6 | */ 7 | 8 | class ItcSubmitForm { 9 | 10 | static instances = []; 11 | 12 | static getOrCreateInstance(target, config) { 13 | const elForm = typeof target === 'string' ? document.querySelector(target) : target; 14 | const found = this.instances.find(el => el.target === elForm); 15 | if (found) { 16 | return found.instance; 17 | } 18 | const form = new this(elForm, config); 19 | this.instances.push({target: elForm, instance: form}); 20 | return this; 21 | } 22 | 23 | constructor(target, config = {}) { 24 | this._attach = { 25 | index: 0, 26 | maxItems: config['attachMaxItems'] || 5, 27 | maxFileSize: config['attachMaxFileSize'] || 512, // максимальный размер файла 28 | ext: config['attachExt'] || ['jpg', 'jpeg', 'bmp', 'gif', 'png'], // дефолтные допустимые расширения для файлов 29 | items: [] 30 | }; 31 | this._isCheckValidationOnClient = config['isCheckValidationOnClient'] !== false; 32 | this._elForm = target; 33 | this._init(); 34 | } 35 | 36 | // проверка расширения файла 37 | static _checkExt(filename, ext) { 38 | // расширение файла 39 | const extFile = filename.slice(((filename.lastIndexOf('.') - 1) >>> 0) + 2); 40 | // проверка на соответствие допустимому 41 | return ext.indexOf(extFile.toLowerCase()) !== -1; 42 | } 43 | 44 | // статический метод для получения шаблона form-attach__item 45 | static _getAttachTemplate(id, file, target) { 46 | const itemImg = target ? `${file.name}` : ''; 47 | return `
48 | ${itemImg} 49 |
${file.name}
50 |
${(file.size / 1024).toFixed(1)}Кб
51 | 52 |
`; 53 | } 54 | 55 | // получение новой капчи 56 | _reloadСaptcha() { 57 | var captchaImg = this._elForm.querySelector('.form-captcha__image'); 58 | var captchaSrc = captchaImg.getAttribute('data-src'); 59 | var captchaPrefix = captchaSrc.indexOf('?id') !== -1 ? '&rnd=' : '?rnd='; 60 | var captchaNewSrc = captchaSrc + captchaPrefix + new Date().getTime(); 61 | captchaImg.setAttribute('src', captchaNewSrc); 62 | } 63 | 64 | // установка статуса валидации 65 | _setStateValidaion(input, state, message) { 66 | const className = state === 'success' ? 'is-valid' : 'is-invalid'; 67 | const text = state === 'success' ? '' : message; 68 | if (input.classList.contains('form-attach__item')) { 69 | input.setAttribute('title', text); 70 | input.classList.add(className); 71 | return; 72 | } 73 | input.classList.remove('is-valid'); 74 | input.classList.remove('is-invalid'); 75 | input.closest('.form-group').querySelector('.invalid-feedback').textContent = ''; 76 | if (state === 'error' || state === 'success') { 77 | input.classList.add(className); 78 | input.closest('.form-group').querySelector('.invalid-feedback').textContent = text; 79 | } 80 | } 81 | 82 | // валидация формы 83 | _checkValidity() { 84 | let valid = true; 85 | // input, textarea 86 | this._elForm.querySelectorAll('input, textarea').forEach(el => { 87 | if (el.type === 'file') { 88 | return; 89 | } 90 | if (el.checkValidity()) { 91 | this._setStateValidaion(el, 'success'); 92 | } else { 93 | this._setStateValidaion(el, 'error', el.validationMessage); 94 | valid = false; 95 | } 96 | }) 97 | // attach 98 | const elAttach = this._elForm.querySelector('.form-attach'); 99 | if (elAttach) { 100 | elAttach.classList.remove('is-invalid'); 101 | elAttach.querySelector('.invalid-feedback').textContent = ''; 102 | const isRequired = elAttach.querySelector('[type="file"]').required; 103 | if (isRequired && this._attach.items.length === 0) { 104 | elAttach.classList.add('is-invalid'); 105 | elAttach.querySelector('.invalid-feedback').textContent = 'Заполните это поле.'; 106 | } 107 | } 108 | this._attach.items.forEach((item) => { 109 | const elAttach = this._elForm.querySelector('.form-attach__item[data-index="' + item.index + '"]'); 110 | if (item.file.size > this._attach.maxFileSize * 1024) { 111 | this._setStateValidaion(elAttach, 'error', `Размер файла больше ${this._attach.maxFileSize}Кб`); 112 | valid = false; 113 | } else if (!this.constructor._checkExt(item.file.name, this._attach.ext)) { 114 | this._setStateValidaion(elAttach, 'error', 'Тип не является допустимым'); 115 | valid = false; 116 | } else { 117 | this._setStateValidaion(elAttach, 'success', ''); 118 | } 119 | }) 120 | return valid; 121 | } 122 | 123 | // собираем данные для отправки на сервер 124 | _getFormData() { 125 | const formData = new FormData(this._elForm); 126 | formData.delete('attach[]'); 127 | this._attach.items.forEach(item => { 128 | formData.append('attach[]', item.file); 129 | }); 130 | return formData; 131 | }; 132 | 133 | // при получении успешного ответа от сервера 134 | _successXHR(data) { 135 | const elAttach = this._elForm.querySelector('.form-attach'); 136 | if (elAttach) { 137 | elAttach.classList.remove('is-invalid'); 138 | elAttach.querySelector('.invalid-feedback').textContent = ''; 139 | } 140 | this._elForm.querySelectorAll('input, textarea').forEach(el => { 141 | this._setStateValidaion(el); 142 | }); 143 | 144 | // при успешной отправки формы 145 | if (data['result'] === 'success') { 146 | this._elForm.dispatchEvent(new Event('itc.successSendForm', {bubbles: true})); 147 | return; 148 | } 149 | 150 | this._elForm.querySelector('.form-error').classList.add('form-error_hide'); 151 | // this._elForm.querySelector('.form-error').classList.remove('form-error_hidden'); 152 | 153 | if (!Object.keys(data['errors']).length) { 154 | this._elForm.querySelector('.form-error').textContent = 'При отправке сообщения произошла ошибка. Пожалуйста, попробуйте ещё раз позже.'; 155 | } else { 156 | this._elForm.querySelector('.form-error').textContent = 'В форме содержатся ошибки!'; 157 | } 158 | 159 | this._elForm.querySelector('.form-error').classList.remove('form-error_hide'); 160 | 161 | // выводим ошибки 162 | for (let key in data['errors']) { 163 | if (key === 'attach') { 164 | const attachs = data['errors'][key]; 165 | if (typeof attachs === 'string') { 166 | if (elAttach.querySelector('[type="file"]').required) { 167 | elAttach.classList.add('is-invalid'); 168 | elAttach.querySelector('.invalid-feedback').textContent = attachs; 169 | } 170 | } else { 171 | for (let attach in attachs) { 172 | const index = this._attach.items[attach].index; 173 | const elAttach = this._elForm.querySelector('.form-attach__item[data-index="' + index + '"]'); 174 | this._setStateValidaion(elAttach, 'error', attachs[attach]); 175 | } 176 | } 177 | } else { 178 | key === 'captcha' ? this._reloadСaptcha() : null; 179 | const el = this._elForm.querySelector('[name="' + key + '"]'); 180 | el ? this._setStateValidaion(el, 'error', data['errors'][key]) : null; 181 | } 182 | } 183 | // к полям, отвечающим требованиям, добавляем класс is-valid 184 | this._elForm.querySelectorAll('.form-attach__item:not(.is-invalid), input:not(.is-invalid), textarea:not(.is-invalid)').forEach(el => { 185 | this._setStateValidaion(el, 'success', ''); 186 | }) 187 | 188 | data['logs'].forEach((message) => { 189 | console.log(message); 190 | }); 191 | 192 | // устанавливаем фокус на не валидный элемент 193 | const elInvalid = this._elForm.querySelector('.is-invalid'); 194 | if (elInvalid) { 195 | if (elInvalid.classList.contains('form-attach')) { 196 | elInvalid.querySelector('input[type="file"]').focus(); 197 | } else { 198 | elInvalid.focus(); 199 | } 200 | } 201 | } 202 | 203 | _errorXHR() { 204 | this._elForm.querySelector('.form-error').classList.remove('d-none'); 205 | } 206 | 207 | // отправка формы 208 | _onSubmit() { 209 | this._elForm.dispatchEvent(new Event('before-send')); 210 | if (this._isCheckValidationOnClient) { 211 | if (!this._checkValidity()) { 212 | const elInvalid = this._elForm.querySelector('.is-invalid'); 213 | if (elInvalid) { 214 | if (elInvalid.classList.contains('form-attach')) { 215 | elInvalid.querySelector('input[type="file"]').focus(); 216 | } else { 217 | elInvalid.focus(); 218 | } 219 | } 220 | return; 221 | } 222 | } 223 | 224 | const submitWidth = this._elForm.querySelector('[type="submit"]').getBoundingClientRect().width; 225 | const submitHeight = this._elForm.querySelector('[type="submit"]').getBoundingClientRect().height; 226 | this._elForm.querySelector('[type="submit"]').textContent = ''; 227 | this._elForm.querySelector('[type="submit"]').disabled = true; 228 | this._elForm.querySelector('[type="submit"]').style.width = `${submitWidth}px`; 229 | this._elForm.querySelector('[type="submit"]').style.height = `${submitHeight}px`; 230 | 231 | this._elForm.querySelector('.form-error').classList.add('form-error_hide'); 232 | 233 | var xhr = new XMLHttpRequest(); 234 | xhr.open('POST', this._elForm.action); 235 | xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); 236 | xhr.responseType = 'json'; 237 | xhr.onload = () => { 238 | this._elForm.querySelector('[type="submit"]').textContent = this._submitText; 239 | this._elForm.querySelector('[type="submit"]').disabled = false; 240 | this._elForm.querySelector('[type="submit"]').style.width = ''; 241 | this._elForm.querySelector('[type="submit"]').style.height = ''; 242 | if (xhr.status == 200) { 243 | this._successXHR(xhr.response); 244 | } else { 245 | this._errorXHR(); 246 | } 247 | } 248 | xhr.send(this._getFormData()); 249 | }; 250 | 251 | // функция для инициализации 252 | _init() { 253 | const elFormAttachCount = this._elForm.querySelector('.form-attach__count'); 254 | elFormAttachCount ? elFormAttachCount.textContent = this._attach.maxItems : null; 255 | this._submitText = this._elForm.querySelector('[type="submit"]').textContent; 256 | this._addEventListener(); 257 | } 258 | 259 | // добавляем обработчики для событий 260 | _addEventListener() { 261 | // обработка события submit 262 | this._elForm.addEventListener('submit', (e) => { 263 | e.preventDefault(); 264 | this._onSubmit(); 265 | }); 266 | // обработка события click 267 | this._elForm.addEventListener('click', (e) => { 268 | const target = e.target; 269 | if (target.closest('.form-captcha__refresh')) { 270 | e.preventDefault(); 271 | this._reloadСaptcha(); 272 | } else if (target.closest('.form-attach__link')) { 273 | const el = target.closest('.form-attach__item'); 274 | const index = +el.dataset.index; 275 | this._attach.items.forEach((item, i) => { 276 | if (item['index'] === index) { 277 | this._attach.items.splice(i, 1); 278 | el.remove(); 279 | return; 280 | } 281 | }); 282 | } 283 | }) 284 | // обработка события change 285 | this._elForm.addEventListener('change', (e) => { 286 | const target = e.target; 287 | if (target.name !== 'attach[]') { 288 | return; 289 | } 290 | for (let i = 0, length = target.files.length; i < length; i++) { 291 | if (this._attach.items.length >= this._attach.maxItems) { 292 | target.value = ''; 293 | break; 294 | } 295 | const index = this._attach.index++; 296 | const file = target.files[i]; 297 | this._attach.items.push({ 298 | index, 299 | file 300 | }); 301 | if (file.type.match(/image.*/)) { 302 | const reader = new FileReader(); 303 | reader.readAsDataURL(file); 304 | reader.addEventListener('load', (e) => { 305 | this._elForm.querySelector('.form-attach__items').innerHTML += this.constructor._getAttachTemplate(index, file, e.target); 306 | }); 307 | } else { 308 | this._elForm.querySelector('.form-attach__items').innerHTML += this.constructor._getAttachTemplate(index, file); 309 | } 310 | } 311 | target.value = ''; 312 | }); 313 | } 314 | // сброс формы 315 | reset() { 316 | if (this._elForm.querySelector('.form-error')) { 317 | this._elForm.querySelector('.form-error').classList.add('form-error_hide'); 318 | } 319 | this._elForm.reset(); 320 | this._elForm.querySelectorAll('input, textarea').forEach(el => { 321 | this._setStateValidaion(el); 322 | }); 323 | document.querySelector('[name="captcha"]') ? this._reloadСaptcha() : null; 324 | if (this._elForm.querySelector('.form-attach')) { 325 | this._attach['index'] = 0; 326 | this._attach['items'] = []; 327 | this._elForm.querySelector('.form-attach__items').textContent = ''; 328 | if (this._elForm.querySelector('.is-invalid')) { 329 | this._elForm.querySelector('.is-invalid').classList.remove('is-invalid'); 330 | } 331 | } 332 | } 333 | } 334 | -------------------------------------------------------------------------------- /feedback/vendor/phpmailer/phpmailer/src/POP3.php: -------------------------------------------------------------------------------- 1 | 10 | * @author Jim Jagielski (jimjag) 11 | * @author Andy Prevost (codeworxtech) 12 | * @author Brent R. Matzelle (original founder) 13 | * @copyright 2012 - 2020 Marcus Bointon 14 | * @copyright 2010 - 2012 Jim Jagielski 15 | * @copyright 2004 - 2009 Andy Prevost 16 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 17 | * @note This program is distributed in the hope that it will be useful - WITHOUT 18 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 | * FITNESS FOR A PARTICULAR PURPOSE. 20 | */ 21 | 22 | namespace PHPMailer\PHPMailer; 23 | 24 | /** 25 | * PHPMailer POP-Before-SMTP Authentication Class. 26 | * Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. 27 | * 1) This class does not support APOP authentication. 28 | * 2) Opening and closing lots of POP3 connections can be quite slow. If you need 29 | * to send a batch of emails then just perform the authentication once at the start, 30 | * and then loop through your mail sending script. Providing this process doesn't 31 | * take longer than the verification period lasts on your POP3 server, you should be fine. 32 | * 3) This is really ancient technology; you should only need to use it to talk to very old systems. 33 | * 4) This POP3 class is deliberately lightweight and incomplete, implementing just 34 | * enough to do authentication. 35 | * If you want a more complete class there are other POP3 classes for PHP available. 36 | * 37 | * @author Richard Davey (original author) 38 | * @author Marcus Bointon (Synchro/coolbru) 39 | * @author Jim Jagielski (jimjag) 40 | * @author Andy Prevost (codeworxtech) 41 | */ 42 | class POP3 43 | { 44 | /** 45 | * The POP3 PHPMailer Version number. 46 | * 47 | * @var string 48 | */ 49 | const VERSION = '6.6.0'; 50 | 51 | /** 52 | * Default POP3 port number. 53 | * 54 | * @var int 55 | */ 56 | const DEFAULT_PORT = 110; 57 | 58 | /** 59 | * Default timeout in seconds. 60 | * 61 | * @var int 62 | */ 63 | const DEFAULT_TIMEOUT = 30; 64 | 65 | /** 66 | * POP3 class debug output mode. 67 | * Debug output level. 68 | * Options: 69 | * @see POP3::DEBUG_OFF: No output 70 | * @see POP3::DEBUG_SERVER: Server messages, connection/server errors 71 | * @see POP3::DEBUG_CLIENT: Client and Server messages, connection/server errors 72 | * 73 | * @var int 74 | */ 75 | public $do_debug = self::DEBUG_OFF; 76 | 77 | /** 78 | * POP3 mail server hostname. 79 | * 80 | * @var string 81 | */ 82 | public $host; 83 | 84 | /** 85 | * POP3 port number. 86 | * 87 | * @var int 88 | */ 89 | public $port; 90 | 91 | /** 92 | * POP3 Timeout Value in seconds. 93 | * 94 | * @var int 95 | */ 96 | public $tval; 97 | 98 | /** 99 | * POP3 username. 100 | * 101 | * @var string 102 | */ 103 | public $username; 104 | 105 | /** 106 | * POP3 password. 107 | * 108 | * @var string 109 | */ 110 | public $password; 111 | 112 | /** 113 | * Resource handle for the POP3 connection socket. 114 | * 115 | * @var resource 116 | */ 117 | protected $pop_conn; 118 | 119 | /** 120 | * Are we connected? 121 | * 122 | * @var bool 123 | */ 124 | protected $connected = false; 125 | 126 | /** 127 | * Error container. 128 | * 129 | * @var array 130 | */ 131 | protected $errors = []; 132 | 133 | /** 134 | * Line break constant. 135 | */ 136 | const LE = "\r\n"; 137 | 138 | /** 139 | * Debug level for no output. 140 | * 141 | * @var int 142 | */ 143 | const DEBUG_OFF = 0; 144 | 145 | /** 146 | * Debug level to show server -> client messages 147 | * also shows clients connection errors or errors from server 148 | * 149 | * @var int 150 | */ 151 | const DEBUG_SERVER = 1; 152 | 153 | /** 154 | * Debug level to show client -> server and server -> client messages. 155 | * 156 | * @var int 157 | */ 158 | const DEBUG_CLIENT = 2; 159 | 160 | /** 161 | * Simple static wrapper for all-in-one POP before SMTP. 162 | * 163 | * @param string $host The hostname to connect to 164 | * @param int|bool $port The port number to connect to 165 | * @param int|bool $timeout The timeout value 166 | * @param string $username 167 | * @param string $password 168 | * @param int $debug_level 169 | * 170 | * @return bool 171 | */ 172 | public static function popBeforeSmtp( 173 | $host, 174 | $port = false, 175 | $timeout = false, 176 | $username = '', 177 | $password = '', 178 | $debug_level = 0 179 | ) { 180 | $pop = new self(); 181 | 182 | return $pop->authorise($host, $port, $timeout, $username, $password, $debug_level); 183 | } 184 | 185 | /** 186 | * Authenticate with a POP3 server. 187 | * A connect, login, disconnect sequence 188 | * appropriate for POP-before SMTP authorisation. 189 | * 190 | * @param string $host The hostname to connect to 191 | * @param int|bool $port The port number to connect to 192 | * @param int|bool $timeout The timeout value 193 | * @param string $username 194 | * @param string $password 195 | * @param int $debug_level 196 | * 197 | * @return bool 198 | */ 199 | public function authorise($host, $port = false, $timeout = false, $username = '', $password = '', $debug_level = 0) 200 | { 201 | $this->host = $host; 202 | //If no port value provided, use default 203 | if (false === $port) { 204 | $this->port = static::DEFAULT_PORT; 205 | } else { 206 | $this->port = (int) $port; 207 | } 208 | //If no timeout value provided, use default 209 | if (false === $timeout) { 210 | $this->tval = static::DEFAULT_TIMEOUT; 211 | } else { 212 | $this->tval = (int) $timeout; 213 | } 214 | $this->do_debug = $debug_level; 215 | $this->username = $username; 216 | $this->password = $password; 217 | //Reset the error log 218 | $this->errors = []; 219 | //Connect 220 | $result = $this->connect($this->host, $this->port, $this->tval); 221 | if ($result) { 222 | $login_result = $this->login($this->username, $this->password); 223 | if ($login_result) { 224 | $this->disconnect(); 225 | 226 | return true; 227 | } 228 | } 229 | //We need to disconnect regardless of whether the login succeeded 230 | $this->disconnect(); 231 | 232 | return false; 233 | } 234 | 235 | /** 236 | * Connect to a POP3 server. 237 | * 238 | * @param string $host 239 | * @param int|bool $port 240 | * @param int $tval 241 | * 242 | * @return bool 243 | */ 244 | public function connect($host, $port = false, $tval = 30) 245 | { 246 | //Are we already connected? 247 | if ($this->connected) { 248 | return true; 249 | } 250 | 251 | //On Windows this will raise a PHP Warning error if the hostname doesn't exist. 252 | //Rather than suppress it with @fsockopen, capture it cleanly instead 253 | set_error_handler([$this, 'catchWarning']); 254 | 255 | if (false === $port) { 256 | $port = static::DEFAULT_PORT; 257 | } 258 | 259 | //Connect to the POP3 server 260 | $errno = 0; 261 | $errstr = ''; 262 | $this->pop_conn = fsockopen( 263 | $host, //POP3 Host 264 | $port, //Port # 265 | $errno, //Error Number 266 | $errstr, //Error Message 267 | $tval 268 | ); //Timeout (seconds) 269 | //Restore the error handler 270 | restore_error_handler(); 271 | 272 | //Did we connect? 273 | if (false === $this->pop_conn) { 274 | //It would appear not... 275 | $this->setError( 276 | "Failed to connect to server $host on port $port. errno: $errno; errstr: $errstr" 277 | ); 278 | 279 | return false; 280 | } 281 | 282 | //Increase the stream time-out 283 | stream_set_timeout($this->pop_conn, $tval, 0); 284 | 285 | //Get the POP3 server response 286 | $pop3_response = $this->getResponse(); 287 | //Check for the +OK 288 | if ($this->checkResponse($pop3_response)) { 289 | //The connection is established and the POP3 server is talking 290 | $this->connected = true; 291 | 292 | return true; 293 | } 294 | 295 | return false; 296 | } 297 | 298 | /** 299 | * Log in to the POP3 server. 300 | * Does not support APOP (RFC 2828, 4949). 301 | * 302 | * @param string $username 303 | * @param string $password 304 | * 305 | * @return bool 306 | */ 307 | public function login($username = '', $password = '') 308 | { 309 | if (!$this->connected) { 310 | $this->setError('Not connected to POP3 server'); 311 | return false; 312 | } 313 | if (empty($username)) { 314 | $username = $this->username; 315 | } 316 | if (empty($password)) { 317 | $password = $this->password; 318 | } 319 | 320 | //Send the Username 321 | $this->sendString("USER $username" . static::LE); 322 | $pop3_response = $this->getResponse(); 323 | if ($this->checkResponse($pop3_response)) { 324 | //Send the Password 325 | $this->sendString("PASS $password" . static::LE); 326 | $pop3_response = $this->getResponse(); 327 | if ($this->checkResponse($pop3_response)) { 328 | return true; 329 | } 330 | } 331 | 332 | return false; 333 | } 334 | 335 | /** 336 | * Disconnect from the POP3 server. 337 | */ 338 | public function disconnect() 339 | { 340 | $this->sendString('QUIT'); 341 | 342 | // RFC 1939 shows POP3 server sending a +OK response to the QUIT command. 343 | // Try to get it. Ignore any failures here. 344 | try { 345 | $this->getResponse(); 346 | } catch (Exception $e) { 347 | //Do nothing 348 | } 349 | 350 | //The QUIT command may cause the daemon to exit, which will kill our connection 351 | //So ignore errors here 352 | try { 353 | @fclose($this->pop_conn); 354 | } catch (Exception $e) { 355 | //Do nothing 356 | } 357 | 358 | // Clean up attributes. 359 | $this->connected = false; 360 | $this->pop_conn = false; 361 | } 362 | 363 | /** 364 | * Get a response from the POP3 server. 365 | * 366 | * @param int $size The maximum number of bytes to retrieve 367 | * 368 | * @return string 369 | */ 370 | protected function getResponse($size = 128) 371 | { 372 | $response = fgets($this->pop_conn, $size); 373 | if ($this->do_debug >= self::DEBUG_SERVER) { 374 | echo 'Server -> Client: ', $response; 375 | } 376 | 377 | return $response; 378 | } 379 | 380 | /** 381 | * Send raw data to the POP3 server. 382 | * 383 | * @param string $string 384 | * 385 | * @return int 386 | */ 387 | protected function sendString($string) 388 | { 389 | if ($this->pop_conn) { 390 | if ($this->do_debug >= self::DEBUG_CLIENT) { //Show client messages when debug >= 2 391 | echo 'Client -> Server: ', $string; 392 | } 393 | 394 | return fwrite($this->pop_conn, $string, strlen($string)); 395 | } 396 | 397 | return 0; 398 | } 399 | 400 | /** 401 | * Checks the POP3 server response. 402 | * Looks for for +OK or -ERR. 403 | * 404 | * @param string $string 405 | * 406 | * @return bool 407 | */ 408 | protected function checkResponse($string) 409 | { 410 | if (strpos($string, '+OK') !== 0) { 411 | $this->setError("Server reported an error: $string"); 412 | 413 | return false; 414 | } 415 | 416 | return true; 417 | } 418 | 419 | /** 420 | * Add an error to the internal error store. 421 | * Also display debug output if it's enabled. 422 | * 423 | * @param string $error 424 | */ 425 | protected function setError($error) 426 | { 427 | $this->errors[] = $error; 428 | if ($this->do_debug >= self::DEBUG_SERVER) { 429 | echo '
';
430 |             foreach ($this->errors as $e) {
431 |                 print_r($e);
432 |             }
433 |             echo '
'; 434 | } 435 | } 436 | 437 | /** 438 | * Get an array of error messages, if any. 439 | * 440 | * @return array 441 | */ 442 | public function getErrors() 443 | { 444 | return $this->errors; 445 | } 446 | 447 | /** 448 | * POP3 connection error handler. 449 | * 450 | * @param int $errno 451 | * @param string $errstr 452 | * @param string $errfile 453 | * @param int $errline 454 | */ 455 | protected function catchWarning($errno, $errstr, $errfile, $errline) 456 | { 457 | $this->setError( 458 | 'Connecting to the POP3 server raised a PHP warning:' . 459 | "errno: $errno errstr: $errstr; errfile: $errfile; errline: $errline" 460 | ); 461 | } 462 | } 463 | --------------------------------------------------------------------------------