From c4b36c13a3e4278b64a04e18c8b15ba4f972f9d1 Mon Sep 17 00:00:00 2001 From: Jeremy DUCOURTHIAL Date: Fri, 25 Nov 2022 14:33:17 +0100 Subject: [PATCH] ajout classe config --- config.php | 13 +++++++++++++ index.php | 5 ++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 config.php diff --git a/config.php b/config.php new file mode 100644 index 0000000..e26eeb9 --- /dev/null +++ b/config.php @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/index.php b/index.php index 86202b0..2d162e8 100644 --- a/index.php +++ b/index.php @@ -6,9 +6,8 @@ require_once("gatewayAdmins.php"); require_once("gatewaySources.php"); - $user= 'jeducourth'; - $pass='achanger'; - $dsn='mysql:host=localhost;dbname=dbjeducourth'; + //chargement config + require_once("config.php"); $title="titre"; $description="descirption du titre";