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/database/database.php
public/contact/config.php
node_modules
public/test

View File

@ -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');

View File

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