From 2d7bacce891eab0adb0263d598bfe44418788f42 Mon Sep 17 00:00:00 2001 From: polo Date: Fri, 4 Jul 2025 00:43:35 +0200 Subject: formulaire de contact 3 --- src/Config.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/Config.php') diff --git a/src/Config.php b/src/Config.php index 500d6ea..caa91d0 100644 --- a/src/Config.php +++ b/src/Config.php @@ -7,9 +7,9 @@ class Config { // BDD static public string $db_host = 'localhost'; - static public string $database = 'nageurs'; + static public string $database = ''; static public string $db_driver = 'pdo_mysql'; - static public string $user = 'root'; + static public string $user = ''; static public string $password = ''; static public string $table_prefix = ''; @@ -18,6 +18,16 @@ class Config static public string $index_path = ''; static public string $port = '80'; + // e-mails + static public string $smtp_host = ''; + static public string $smtp_username = ''; + static public string $smtp_password = ''; + static public string $smtp_secure = 'tls'; // tls (smarttls) ou ssl (smtps) + static public string $email_from = ''; + static public string $email_from_name = 'site web'; + static public string $email_dest = ''; + static public string $email_dest_name = 'destinataire formulaire'; + // copier dans ce tableau les variables contenant des chemins static private array $path_vars = []; -- cgit v1.2.3