Debugge partage projet, crée pages mentions et about.php

This commit is contained in:
Bess1k 2026-02-20 15:22:10 +01:00 committed by GitHub
parent 009191494e
commit 5efc3c5778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -193,8 +193,7 @@
}
}
public function shareProject()
{
public function shareProject(){
if (count($_POST) > 0)
{
$projectId = (int)($_POST['project_id'] ?? 0);
@ -224,6 +223,15 @@
$objMail->Username = 'a2a67e001@smtp-brevo.com';
$objMail->Password = 'xsmtpsib-f2af87e12d3db6f1b99802a92c1acda32d45fc32a8446eeed7e49ec91c4ec7ef-AX8Y7YkRWYSmKHwS';
// Désactive la vérification du certificat SSL
// Cela permet d'éviter les erreurs liées au certificat, mais réduit la sécurité de la connexion.
$objMail->SMTPOptions = [
'ssl' => [
'verify_peer' => false,
],
];
$objMail->IsHTML(true);
$objMail->setFrom('projet.folliow@hotmail.com', 'Folliow');
@ -252,9 +260,6 @@
}
public function accept(){
//Récupéré l'id dans l'url
@ -296,4 +301,22 @@
header("Location: index.php");
exit;
}
/**
* Page mentions légales
*/
public function mentions(){
// Afficher
$this->_display("mentions");
}
/**
* Page à propos
*/
public function about(){
// Afficher
$this->_display("about");
}
}