Added config to gitignore

This commit is contained in:
Samuel Ortion 2021-04-16 15:15:57 +02:00
parent 8a246e7dc1
commit 3f5b42d306
4 changed files with 9 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
public/storage public/storage
public/database/database.php
public/contact/config.php
node_modules node_modules
public/test public/test

View File

@ -9,6 +9,7 @@ use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception; use PHPMailer\PHPMailer\Exception;
require './config.php';
//Load Composer's autoloader //Load Composer's autoloader
require '../vendor/autoload.php'; require '../vendor/autoload.php';
@ -52,17 +53,17 @@ try {
$mail->isSMTP(); //Send using SMTP $mail->isSMTP(); //Send using SMTP
$mail->Timeout = 60; $mail->Timeout = 60;
$mail->SMTPKeepAlive = true; $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->SMTPAuth = true; //Enable SMTP authentication
$mail->Username = 'samulus.ortion@gmail.com'; //SMTP username $mail->Username = $smtp_email; //SMTP username
$mail->Password = 'CEkvk6vjP28vhCy'; //SMTP password $mail->Password = $smtp_password; //SMTP password
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; //Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged $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->Port = 587; //TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
$mail->CharSet = "UTF-8"; $mail->CharSet = "UTF-8";
$mail->Encoding = 'base64'; $mail->Encoding = 'base64';
//Recipients //Recipients
$mail->addReplyTo($email, 'Message Sender'); $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->setFrom($email, 'Mailer');
// $mail->addAddress('ellen@example.com'); //Name is optional // $mail->addAddress('ellen@example.com'); //Name is optional
// $mail->addCC('cc@example.com'); // $mail->addCC('cc@example.com');

View File

@ -1,3 +1,3 @@
<footer> <footer>
© Samuel ORTION | Chiro - Canto <?=2021// - date('Y'); ?> © Samuel ORTION | Chiro - Canto 2021<?=date('Y') != 2021 ? " - ".date('Y') : ""; ?>
</footer> </footer>

View File

@ -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}', { L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>', attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
maxZoom: 18, maxZoom: 18,