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'); ?>