diff --git a/public/images/icons8-envoyer-24.png b/public/images/icons8-envoyer-24.png new file mode 100644 index 0000000..b8ef8d1 Binary files /dev/null and b/public/images/icons8-envoyer-24.png differ diff --git a/public/styles/styleQuote.css b/public/styles/styleQuote.css index f9d5985..97ca7e9 100644 --- a/public/styles/styleQuote.css +++ b/public/styles/styleQuote.css @@ -139,6 +139,9 @@ body.light-mode .likeLien{ border: none; border-radius: 20px; text-align: center; + background-image: url(../images/icons8-envoyer-24.png); + background-repeat: no-repeat; + background-position: center; } .formulaire{ diff --git a/src/Controleur/FrontControler.php b/src/Controleur/FrontControler.php index 59be5c8..42fae8d 100644 --- a/src/Controleur/FrontControler.php +++ b/src/Controleur/FrontControler.php @@ -68,8 +68,10 @@ Class FrontControler{ } else if(!$this->verifDroit($action)){ - $action='login'; - $controller='VisitorControler'; + global $racine; + header("Location:". $racine ."/login"); + // $action='login'; + // $controller='VisitorControler'; } $controller = '\\Controleur\\' . $controller; diff --git a/src/Model/UserModel.php b/src/Model/UserModel.php index a976f56..41cffc0 100644 --- a/src/Model/UserModel.php +++ b/src/Model/UserModel.php @@ -109,8 +109,8 @@ return $res[0]['id_user']; } - public function isFavorite(string $username, int $idq): bool { - if($_SESSION["user"] == null){ + public function isFavorite(?string $username, int $idq): bool { + if($_SESSION["user"] == NULL){ return false; } else{ diff --git a/vue/templates/quote.html.twig b/vue/templates/quote.html.twig index 3fbbde8..276b83c 100644 --- a/vue/templates/quote.html.twig +++ b/vue/templates/quote.html.twig @@ -34,9 +34,9 @@
Soyez le premier à commenter
+