From 1587a63084d6a02b0ec29ef81b5538fd7bcc420a Mon Sep 17 00:00:00 2001 From: Jeremy DUCOURTHIAL Date: Fri, 25 Nov 2022 13:55:14 +0100 Subject: [PATCH] source modif --- index.php | 77 +++++++++++++++++++++++++---------------------------- sources.php | 2 +- 2 files changed, 38 insertions(+), 41 deletions(-) diff --git a/index.php b/index.php index bdfed25..d666825 100644 --- a/index.php +++ b/index.php @@ -1,44 +1,41 @@ - - - - -addNews(new News($title,$description,$pubdate,$link)); - $gateAdmin = new gatewayAdmin($con); - - $gateAdmin->addAdmin(new admin("toto","tata")); - - - /*$results=$gateNews->getNews(); - Foreach ($results as $new){ - print $new->getTitle()."
".$new->getDescription()."
".$new->getPubDate()."
".$new->getLink()."

"; - }*/ - require("listeNews.php"); - + + addNews(new News($title,$description,$pubdate,$link)); + $gateAdmin = new gatewayAdmin($con); + + $gateAdmin->addAdmin(new admin("toto","tata")); - } - catch( PDOException $Exception ) { - echo 'erreur'; - echo $Exception->getMessage(); - } -?> - + /*$results=$gateNews->getNews(); + Foreach ($results as $new){ + print $new->getTitle()."
".$new->getDescription()."
".$new->getPubDate()."
".$new->getLink()."

"; + }*/ + require("listeNews.php"); + + + } + catch( PDOException $Exception ) { + echo 'erreur'; + echo $Exception->getMessage(); + } + ?> + + diff --git a/sources.php b/sources.php index 59ae8a1..78482ab 100644 --- a/sources.php +++ b/sources.php @@ -1,7 +1,7 @@