diff --git a/controller/VisitorCtrl.php b/controller/VisitorCtrl.php index fa61be4..bc6e406 100644 --- a/controller/VisitorCtrl.php +++ b/controller/VisitorCtrl.php @@ -16,7 +16,7 @@ class VisitorCtrl $action = $_REQUEST['action']; else $action = null; - + switch($action){ case null: $this->loadHome(); @@ -87,7 +87,8 @@ class VisitorCtrl } function go_connection(){ - # rediriger vers la page de connection + $user = $this->isUser; + require("view/register.php"); } function connection(){ @@ -103,7 +104,8 @@ class VisitorCtrl } function go_list(){ - + $user = $this->isUser; + require("view/newList.php"); } function makeList(){ diff --git a/view/erreur.php b/view/erreur.php deleted file mode 100644 index 447657e..0000000 --- a/view/erreur.php +++ /dev/null @@ -1,5 +0,0 @@ -"; - } -?> \ No newline at end of file diff --git a/view/exview.php b/view/exview.php deleted file mode 100644 index 3158e4d..0000000 --- a/view/exview.php +++ /dev/null @@ -1 +0,0 @@ -
- Home - New List + + Home + New List + My Lists 🔒'; + echo 'My Lists 🔒'; } ?> About @@ -35,10 +35,10 @@ diff --git a/view/liste.php b/view/liste.php deleted file mode 100644 index d11235d..0000000 --- a/view/liste.php +++ /dev/null @@ -1,14 +0,0 @@ - - - - '; - echo '

'.$name.'

'; - echo '
'; - foreach($TabList as $liste){ - echo ''; - } - echo '
'; -?> \ No newline at end of file diff --git a/view/newList.php b/view/newList.php index e363d52..b56a435 100644 --- a/view/newList.php +++ b/view/newList.php @@ -14,7 +14,7 @@