diff --git a/.gitignore b/.gitignore index f825628..84fbbd6 100644 --- a/.gitignore +++ b/.gitignore @@ -164,3 +164,5 @@ fabric.properties # Built Visual Studio Code Extensions *.vsix +# Fichier cache +cache/ diff --git a/Project/php/cache/7d/7d23d818a9618a39f1bf95b3e694ad5c44a32007fb7602bc4dc5cebe7a55ad13.php b/Project/php/cache/7d/7d23d818a9618a39f1bf95b3e694ad5c44a32007fb7602bc4dc5cebe7a55ad13.php deleted file mode 100644 index 1dcc316..0000000 --- a/Project/php/cache/7d/7d23d818a9618a39f1bf95b3e694ad5c44a32007fb7602bc4dc5cebe7a55ad13.php +++ /dev/null @@ -1,185 +0,0 @@ -source = $this->getSourceContext(); - - $this->parent = false; - - $this->blocks = [ - ]; - } - - protected function doDisplay(array $context, array $blocks = []) - { - $macros = $this->macros; - // line 1 - echo " -Personne - formulaire - - - - - - - -// on vérifie les données provenant du modèle -"; - // line 50 - if (array_key_exists("dVue", $context)) { - // line 51 - echo "
- - - "; - // line 54 - if ((array_key_exists("dVueEreur", $context) && (twig_length_filter($this->env, ($context["dVueEreur"] ?? null)) > 0))) { - // line 55 - echo "

ERREUR !!!!!

- "; - // line 56 - $context['_parent'] = $context; - $context['_seq'] = twig_ensure_traversable(($context["dVueEreur"] ?? null)); - foreach ($context['_seq'] as $context["_key"] => $context["value"]) { - // line 57 - echo " "; - echo twig_escape_filter($this->env, $context["value"], "html", null, true); - echo "
- "; - } - $_parent = $context['_parent']; - unset($context['_seq'], $context['_iterated'], $context['_key'], $context['value'], $context['_parent'], $context['loop']); - $context = array_intersect_key($context, $_parent) + $_parent; - // line 59 - echo " "; - } - // line 60 - echo " -

Personne - formulaire

-
- - -"; - // line 65 - echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["dVue"] ?? null), "data", [], "any", false, false, false, 65), "html", null, true); - echo " - - -
- - - - - - - - -
Nomenv, twig_get_attribute($this->env, $this->source, ($context["dVue"] ?? null), "nom", [], "any", false, false, false, 71), "html", null, true); - echo "\" type=\"text\" size=\"20\">
Ageenv, twig_get_attribute($this->env, $this->source, ($context["dVue"] ?? null), "age", [], "any", false, false, false, 74), "html", null, true); - echo "\" type=\"text\" size=\"3\" required>
- - - -
-
- - - -
- -"; - } else { - // line 89 - echo "erreur !!
-utilisation anormale de la vuephp -"; - } - // line 92 - echo " -

Essayez de mettre du code html dans nom -> Correspond à une attaque de type injection

- "; - } - - public function getTemplateName() - { - return "vuephp1.html"; - } - - public function isTraitable() - { - return false; - } - - public function getDebugInfo() - { - return array ( 161 => 92, 156 => 89, 138 => 74, 132 => 71, 123 => 65, 116 => 60, 113 => 59, 104 => 57, 100 => 56, 97 => 55, 95 => 54, 90 => 51, 88 => 50, 37 => 1,); - } - - public function getSourceContext() - { - return new Source("", "vuephp1.html", "/Applications/MAMP/htdocs/phptwig/templates/vuephp1.html"); - } -} diff --git a/Project/php/Vocabulaire.php b/Project/php/model/Vocabulaire.php similarity index 100% rename from Project/php/Vocabulaire.php rename to Project/php/model/Vocabulaire.php