Debugge partage projet, crée pages mentions et about.php
This commit is contained in:
parent
009191494e
commit
5efc3c5778
1 changed files with 42 additions and 19 deletions
|
|
@ -193,8 +193,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function shareProject()
|
public function shareProject(){
|
||||||
{
|
|
||||||
if (count($_POST) > 0)
|
if (count($_POST) > 0)
|
||||||
{
|
{
|
||||||
$projectId = (int)($_POST['project_id'] ?? 0);
|
$projectId = (int)($_POST['project_id'] ?? 0);
|
||||||
|
|
@ -224,6 +223,15 @@
|
||||||
$objMail->Username = 'a2a67e001@smtp-brevo.com';
|
$objMail->Username = 'a2a67e001@smtp-brevo.com';
|
||||||
$objMail->Password = 'xsmtpsib-f2af87e12d3db6f1b99802a92c1acda32d45fc32a8446eeed7e49ec91c4ec7ef-AX8Y7YkRWYSmKHwS';
|
$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->IsHTML(true);
|
||||||
|
|
||||||
$objMail->setFrom('projet.folliow@hotmail.com', 'Folliow');
|
$objMail->setFrom('projet.folliow@hotmail.com', 'Folliow');
|
||||||
|
|
@ -252,9 +260,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function accept(){
|
public function accept(){
|
||||||
|
|
||||||
//Récupéré l'id dans l'url
|
//Récupéré l'id dans l'url
|
||||||
|
|
@ -296,4 +301,22 @@
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Page mentions légales
|
||||||
|
*/
|
||||||
|
public function mentions(){
|
||||||
|
// Afficher
|
||||||
|
$this->_display("mentions");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Page à propos
|
||||||
|
*/
|
||||||
|
public function about(){
|
||||||
|
// Afficher
|
||||||
|
$this->_display("about");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue