From e21d810c1b73651dbf5c8b17977ca34e789bd9e4 Mon Sep 17 00:00:00 2001 From: "kevin.modejar" Date: Mon, 2 Dec 2024 11:52:04 +0100 Subject: [PATCH] micro modif --- config/config.php | 2 +- public/images/icons8-envoyer-24.png | Bin 0 -> 252 bytes public/styles/styleQuote.css | 3 ++ src/Controleur/FrontControler.php | 6 ++- src/Model/UserModel.php | 4 +- vue/templates/quote.html.twig | 9 ++-- vue/templates/signin2.html.twig | 62 ---------------------------- 7 files changed, 16 insertions(+), 70 deletions(-) create mode 100644 public/images/icons8-envoyer-24.png delete mode 100644 vue/templates/signin2.html.twig diff --git a/config/config.php b/config/config.php index aedf257..2c604be 100644 --- a/config/config.php +++ b/config/config.php @@ -12,7 +12,7 @@ $base = ''; $login = ''; $mdp = ''; -$racine='/~marocher8/WF-Website'; +$racine='/~kemondejar/WF-Website'; //Vues diff --git a/public/images/icons8-envoyer-24.png b/public/images/icons8-envoyer-24.png new file mode 100644 index 0000000000000000000000000000000000000000..b8ef8d1ff6b2004027bab0210d1fa8b4b2900a73 GIT binary patch literal 252 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjoCO|{#S9GG!XV7ZFl!D-#X3(H z$B>FSZ?A6TWO5W~dC1SZ)-kzQSUKCk(BjPjmmHT3?7lfpF1e1%-2yGm-eD}Pf(Ji8 zDC}ew*8BhN-0jGJzZ}_R3?022E_LfiERbcb*mXeauZBa_M>%Da#SAYW8ZQei(&F~W zw=6xy^oeW2mlK(-_skvIRJU0?jAAT{w{}_lW@Xfiqz1#Z8Pji^SSIEmR_j_>azeAp uC-^RZu6&@VYsk&kD_`|~9sYS*{Vs#}yG@^$9l8o~IfJLGpUXO@geCy`cU=Jh literal 0 HcmV?d00001 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 @@
- + - +
{% if com|length > 0 %} @@ -56,7 +56,10 @@

{% endfor %} - + {% else %} +
+

Soyez le premier à commenter

+
{% endif %} diff --git a/vue/templates/signin2.html.twig b/vue/templates/signin2.html.twig deleted file mode 100644 index 87c65a3..0000000 --- a/vue/templates/signin2.html.twig +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - Wiki Fantasy : Inscription - - - - - -
-
- - -
- user -
-
-
-

▶ z{{ test }} aeazrazeraz ◀

-
- -
- - \ No newline at end of file