From 749fcae0c4547d4b711fca47d121482a36b1a3b2 Mon Sep 17 00:00:00 2001 From: ycharbi Date: Tue, 18 May 2021 23:01:50 +0200 Subject: [PATCH] Redirection de l'utilisateur au portail d'authentification --- index.php | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/index.php b/index.php index 0b26e75..fc4f14f 100644 --- a/index.php +++ b/index.php @@ -1,25 +1,3 @@ Coucou

"; - $db = new PDO("sqlite:/etc/postfix/postfix.sqlite"); - $db -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - - try { - - $res = $db -> query('SELECT * FROM postfix_alias_vitruels;'); - - - print ''; - foreach ($res as $row) { - - print ''; - - } - print '
' . $row['courriel'] . '' . $row['destination'] . '
'; - - } - catch(PDOException $e) { - - print ("exception " . $e->getMessage()); - - } +header('Location: /pages/formulaire_accueil.php'); ?>