diff --git a/core/class/template.class.php b/core/class/template.class.php index e1f4a518..f85110cb 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -55,11 +55,16 @@ class template { $secondNumber = rand ( 0 , count($letters)-1 ); $result = $firstNumber + $secondNumber; $result = password_hash($result, PASSWORD_BCRYPT); + $firstLetter = uniqid(); + $secondLetter = uniqid(); + // Masquage image source + copy ('core/vendor/zwiico/png/'.$letters[$firstNumber] . '.png','site/tmp/' . $firstLetter . '.png'); + copy ('core/vendor/zwiico/png/'.$letters[$secondNumber] . '.png','site/tmp/' . $secondLetter . '.png'); // Début du wrapper $html = '
'; // Label $html .= self::label($attributes['id'], - ' + = en chiffres ?', [ + ' + = en chiffres ?', [ 'help' => $attributes['help'] ]); // Notice @@ -78,7 +83,7 @@ class template { $html .= self::hidden($attributes['id'] . 'Result', [ 'value' => $result, 'before' => false - ]); + ]); // Champs cachés contenant les nombres /* $html .= self::hidden($attributes['id'] . 'FirstNumber', [ @@ -647,8 +652,8 @@ class template { } // Début contenu $j = 0; - foreach($body as $tr) { - // Id de ligne pour les tableaux drag and drop + foreach($body as $tr) { + // Id de ligne pour les tableaux drag and drop $html .= ''; $i = 0; foreach($tr as $td) {