From 4e900bf812655be886262a89fd096b916a2b051f Mon Sep 17 00:00:00 2001
From: Samuel ORTION
Date: Wed, 31 Mar 2021 16:24:01 +0200
Subject: [PATCH] Added contact form
---
public/about/index.php | 2 +
public/composer.json | 3 +-
public/composer.lock | 145 +
public/contact/golden-book/form.php | 21 +
public/contact/golden-book/index.php | 33 +
public/contact/golden-book/messages.php | 3 +
public/contact/golden-book/sendmessage.php | 61 +
public/contact/index.php | 45 +
public/contact/sendmail.php | 86 +
public/menu.php | 3 +
public/vendor/composer/InstalledVersions.php | 13 +-
public/vendor/composer/autoload_psr4.php | 1 +
public/vendor/composer/autoload_static.php | 16 +
public/vendor/composer/installed.json | 79 +
public/vendor/composer/installed.php | 13 +-
public/vendor/composer/platform_check.php | 4 +-
public/vendor/phpmailer/phpmailer/COMMITMENT | 46 +
public/vendor/phpmailer/phpmailer/LICENSE | 502 ++
public/vendor/phpmailer/phpmailer/README.md | 214 +
public/vendor/phpmailer/phpmailer/SECURITY.md | 30 +
public/vendor/phpmailer/phpmailer/VERSION | 1 +
.../vendor/phpmailer/phpmailer/composer.json | 61 +
.../phpmailer/phpmailer/get_oauth_token.php | 146 +
.../phpmailer/language/phpmailer.lang-af.php | 26 +
.../phpmailer/language/phpmailer.lang-ar.php | 28 +
.../phpmailer/language/phpmailer.lang-az.php | 27 +
.../phpmailer/language/phpmailer.lang-ba.php | 27 +
.../phpmailer/language/phpmailer.lang-be.php | 27 +
.../phpmailer/language/phpmailer.lang-bg.php | 27 +
.../phpmailer/language/phpmailer.lang-ca.php | 27 +
.../phpmailer/language/phpmailer.lang-ch.php | 27 +
.../phpmailer/language/phpmailer.lang-cs.php | 28 +
.../phpmailer/language/phpmailer.lang-da.php | 29 +
.../phpmailer/language/phpmailer.lang-de.php | 28 +
.../phpmailer/language/phpmailer.lang-el.php | 26 +
.../phpmailer/language/phpmailer.lang-eo.php | 26 +
.../phpmailer/language/phpmailer.lang-es.php | 27 +
.../phpmailer/language/phpmailer.lang-et.php | 28 +
.../phpmailer/language/phpmailer.lang-fa.php | 28 +
.../phpmailer/language/phpmailer.lang-fi.php | 28 +
.../phpmailer/language/phpmailer.lang-fo.php | 27 +
.../phpmailer/language/phpmailer.lang-fr.php | 32 +
.../phpmailer/language/phpmailer.lang-gl.php | 27 +
.../phpmailer/language/phpmailer.lang-he.php | 27 +
.../phpmailer/language/phpmailer.lang-hi.php | 27 +
.../phpmailer/language/phpmailer.lang-hr.php | 27 +
.../phpmailer/language/phpmailer.lang-hu.php | 27 +
.../phpmailer/language/phpmailer.lang-hy.php | 27 +
.../phpmailer/language/phpmailer.lang-id.php | 31 +
.../phpmailer/language/phpmailer.lang-it.php | 28 +
.../phpmailer/language/phpmailer.lang-ja.php | 28 +
.../phpmailer/language/phpmailer.lang-ka.php | 27 +
.../phpmailer/language/phpmailer.lang-ko.php | 27 +
.../phpmailer/language/phpmailer.lang-lt.php | 27 +
.../phpmailer/language/phpmailer.lang-lv.php | 27 +
.../phpmailer/language/phpmailer.lang-mg.php | 27 +
.../phpmailer/language/phpmailer.lang-ms.php | 27 +
.../phpmailer/language/phpmailer.lang-nb.php | 26 +
.../phpmailer/language/phpmailer.lang-nl.php | 29 +
.../phpmailer/language/phpmailer.lang-pl.php | 27 +
.../phpmailer/language/phpmailer.lang-pt.php | 27 +
.../language/phpmailer.lang-pt_br.php | 30 +
.../phpmailer/language/phpmailer.lang-ro.php | 27 +
.../phpmailer/language/phpmailer.lang-ru.php | 28 +
.../phpmailer/language/phpmailer.lang-sk.php | 30 +
.../phpmailer/language/phpmailer.lang-sl.php | 31 +
.../phpmailer/language/phpmailer.lang-sr.php | 28 +
.../phpmailer/language/phpmailer.lang-sv.php | 27 +
.../phpmailer/language/phpmailer.lang-tl.php | 28 +
.../phpmailer/language/phpmailer.lang-tr.php | 31 +
.../phpmailer/language/phpmailer.lang-uk.php | 28 +
.../phpmailer/language/phpmailer.lang-vi.php | 27 +
.../phpmailer/language/phpmailer.lang-zh.php | 29 +
.../language/phpmailer.lang-zh_cn.php | 29 +
.../phpmailer/phpmailer/phpunit.xml.dist | 35 +
.../phpmailer/phpmailer/src/Exception.php | 40 +
.../vendor/phpmailer/phpmailer/src/OAuth.php | 139 +
.../phpmailer/phpmailer/src/PHPMailer.php | 4933 +++++++++++++++++
.../vendor/phpmailer/phpmailer/src/POP3.php | 448 ++
.../vendor/phpmailer/phpmailer/src/SMTP.php | 1453 +++++
80 files changed, 9985 insertions(+), 7 deletions(-)
create mode 100644 public/composer.lock
create mode 100644 public/contact/golden-book/form.php
create mode 100644 public/contact/golden-book/index.php
create mode 100644 public/contact/golden-book/messages.php
create mode 100644 public/contact/golden-book/sendmessage.php
create mode 100644 public/contact/index.php
create mode 100644 public/contact/sendmail.php
create mode 100644 public/vendor/phpmailer/phpmailer/COMMITMENT
create mode 100644 public/vendor/phpmailer/phpmailer/LICENSE
create mode 100644 public/vendor/phpmailer/phpmailer/README.md
create mode 100644 public/vendor/phpmailer/phpmailer/SECURITY.md
create mode 100644 public/vendor/phpmailer/phpmailer/VERSION
create mode 100644 public/vendor/phpmailer/phpmailer/composer.json
create mode 100644 public/vendor/phpmailer/phpmailer/get_oauth_token.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-af.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-az.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ba.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ch.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-da.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-eo.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-gl.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-hi.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-hr.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-hy.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-id.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ka.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-lv.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-mg.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-sl.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-uk.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php
create mode 100644 public/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php
create mode 100644 public/vendor/phpmailer/phpmailer/phpunit.xml.dist
create mode 100644 public/vendor/phpmailer/phpmailer/src/Exception.php
create mode 100644 public/vendor/phpmailer/phpmailer/src/OAuth.php
create mode 100644 public/vendor/phpmailer/phpmailer/src/PHPMailer.php
create mode 100644 public/vendor/phpmailer/phpmailer/src/POP3.php
create mode 100644 public/vendor/phpmailer/phpmailer/src/SMTP.php
diff --git a/public/about/index.php b/public/about/index.php
index 1d819fc..928069d 100644
--- a/public/about/index.php
+++ b/public/about/index.php
@@ -24,6 +24,8 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]);
Chiro-Canto is an online bat sound sharing set of tools, inspired by Xeno-Canto .
Author
This website is developped with ♥ by Samuel ORTION, a juvenile Geekus biologicus .
+ Source code
+ This project is available under the GNU Affero GPL v3 license at https://forge.ortion.xyz/UncleSamulus/chiro-canto .
+
+
+
+
+ Golden Book
+ Send a message to community
+
+
+ =$_SESSION['error_msg']?>
+
+ See messages from community
+
+
+
+
+
diff --git a/public/composer.json b/public/composer.json
index 37ac237..ff04066 100644
--- a/public/composer.json
+++ b/public/composer.json
@@ -1,5 +1,6 @@
{
"require": {
- "erusev/parsedown": "^1.7"
+ "erusev/parsedown": "^1.7",
+ "phpmailer/phpmailer": "^6.3"
}
}
diff --git a/public/composer.lock b/public/composer.lock
new file mode 100644
index 0000000..3615b89
--- /dev/null
+++ b/public/composer.lock
@@ -0,0 +1,145 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
+ "This file is @generated automatically"
+ ],
+ "content-hash": "d112df65d42a78e08f756af8758898da",
+ "packages": [
+ {
+ "name": "erusev/parsedown",
+ "version": "1.7.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/erusev/parsedown.git",
+ "reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/erusev/parsedown/zipball/cb17b6477dfff935958ba01325f2e8a2bfa6dab3",
+ "reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3",
+ "shasum": ""
+ },
+ "require": {
+ "ext-mbstring": "*",
+ "php": ">=5.3.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "Parsedown": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Emanuil Rusev",
+ "email": "hello@erusev.com",
+ "homepage": "http://erusev.com"
+ }
+ ],
+ "description": "Parser for Markdown.",
+ "homepage": "http://parsedown.org",
+ "keywords": [
+ "markdown",
+ "parser"
+ ],
+ "support": {
+ "issues": "https://github.com/erusev/parsedown/issues",
+ "source": "https://github.com/erusev/parsedown/tree/1.7.x"
+ },
+ "time": "2019-12-30T22:54:17+00:00"
+ },
+ {
+ "name": "phpmailer/phpmailer",
+ "version": "v6.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPMailer/PHPMailer.git",
+ "reference": "4a08cf4cdd2c38d12ee2b9fa69e5d235f37a6dcb"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/4a08cf4cdd2c38d12ee2b9fa69e5d235f37a6dcb",
+ "reference": "4a08cf4cdd2c38d12ee2b9fa69e5d235f37a6dcb",
+ "shasum": ""
+ },
+ "require": {
+ "ext-ctype": "*",
+ "ext-filter": "*",
+ "ext-hash": "*",
+ "php": ">=5.5.0"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
+ "doctrine/annotations": "^1.2",
+ "phpcompatibility/php-compatibility": "^9.3.5",
+ "roave/security-advisories": "dev-latest",
+ "squizlabs/php_codesniffer": "^3.5.6",
+ "yoast/phpunit-polyfills": "^0.2.0"
+ },
+ "suggest": {
+ "ext-mbstring": "Needed to send email in multibyte encoding charset",
+ "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication",
+ "league/oauth2-google": "Needed for Google XOAUTH2 authentication",
+ "psr/log": "For optional PSR-3 debug logging",
+ "stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2 authentication",
+ "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "PHPMailer\\PHPMailer\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-2.1-only"
+ ],
+ "authors": [
+ {
+ "name": "Marcus Bointon",
+ "email": "phpmailer@synchromedia.co.uk"
+ },
+ {
+ "name": "Jim Jagielski",
+ "email": "jimjag@gmail.com"
+ },
+ {
+ "name": "Andy Prevost",
+ "email": "codeworxtech@users.sourceforge.net"
+ },
+ {
+ "name": "Brent R. Matzelle"
+ }
+ ],
+ "description": "PHPMailer is a full-featured email creation and transfer class for PHP",
+ "support": {
+ "issues": "https://github.com/PHPMailer/PHPMailer/issues",
+ "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.3.0"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/Synchro",
+ "type": "github"
+ }
+ ],
+ "time": "2021-02-19T15:28:08+00:00"
+ }
+ ],
+ "packages-dev": [],
+ "aliases": [],
+ "minimum-stability": "stable",
+ "stability-flags": [],
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": [],
+ "platform-dev": [],
+ "plugin-api-version": "2.0.0"
+}
diff --git a/public/contact/golden-book/form.php b/public/contact/golden-book/form.php
new file mode 100644
index 0000000..e6275e8
--- /dev/null
+++ b/public/contact/golden-book/form.php
@@ -0,0 +1,21 @@
+
\ No newline at end of file
diff --git a/public/contact/golden-book/index.php b/public/contact/golden-book/index.php
new file mode 100644
index 0000000..66c77ee
--- /dev/null
+++ b/public/contact/golden-book/index.php
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
Golden Book | Samuel ORTION
+
+
+
+
+