diff --git a/.gitignore b/.gitignore index 3b9ae08..c1ac3ff 100755 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ public/storage +public/database/database.php +public/contact/config.php node_modules public/test diff --git a/public/contact/sendmail.php b/public/contact/sendmail.php index 58ad9c0..0f79703 100755 --- a/public/contact/sendmail.php +++ b/public/contact/sendmail.php @@ -9,6 +9,7 @@ use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; +require './config.php'; //Load Composer's autoloader require '../vendor/autoload.php'; @@ -52,17 +53,17 @@ try { $mail->isSMTP(); //Send using SMTP $mail->Timeout = 60; $mail->SMTPKeepAlive = true; - $mail->Host = 'smtp.gmail.com'; //Set the SMTP server to send through + $mail->Host = $smtp_host; //Set the SMTP server to send through $mail->SMTPAuth = true; //Enable SMTP authentication - $mail->Username = 'samulus.ortion@gmail.com'; //SMTP username - $mail->Password = 'CEkvk6vjP28vhCy'; //SMTP password + $mail->Username = $smtp_email; //SMTP username + $mail->Password = $smtp_password; //SMTP password $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; //Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged $mail->Port = 587; //TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above $mail->CharSet = "UTF-8"; $mail->Encoding = 'base64'; //Recipients $mail->addReplyTo($email, 'Message Sender'); - $mail->addAddress('samuel.ortion@orange.fr', 'Samuel ORTION'); //Add a recipient + $mail->addAddress($admin_email, $admin_username); //Add a recipient $mail->setFrom($email, 'Mailer'); // $mail->addAddress('ellen@example.com'); //Name is optional // $mail->addCC('cc@example.com'); diff --git a/public/footer.php b/public/footer.php index c9a2f5d..b2f69c7 100755 --- a/public/footer.php +++ b/public/footer.php @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/public/upload/scripts/map.js b/public/upload/scripts/map.js index c2842db..8028c7e 100755 --- a/public/upload/scripts/map.js +++ b/public/upload/scripts/map.js @@ -1,4 +1,4 @@ -var mymap = L.map('map').setView([51.505, -0.09], 13); +var mymap = L.map('map').setView([0, 0], 13).setZoom(1); L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', { attribution: 'Map data © OpenStreetMap contributors, Imagery © Mapbox', maxZoom: 18,