diff --git a/core/class/template.class.php b/core/class/template.class.php index 63a9ca6c..fa2aa7a3 100755 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -49,16 +49,17 @@ class template { 'value' => '' ], $attributes); // Génère deux nombres pour le captcha - $numbers=array(0,1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20); - $letters=array('zéro','un','deux','trois','quatre','cinq','six','sept','huit','neuf','dix','onze','douze','treize','quatorze','quinze','seize','dix-sept','dix-huit','dix-neuf','vingt'); - $firstNumber=rand ( 0 , count($letters)-1 ); - $secondNumber=rand ( 0 , count($letters)-1 ); + $numbers = array(0,1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20); + $letters = array('u','t','s','r','q','p','o','n','m','l','k','j','i','h','g','f','e','d','c','b','a'); + $firstNumber = rand ( 0 , count($letters)-1 ); + $secondNumber = rand ( 0 , count($letters)-1 ); // Début du wrapper $html = '
'; // Label - $html .= self::label($attributes['id'], $letters[$firstNumber] . ' + ' . $letters[$secondNumber] . ' = ? (réponse en chiffres)', [ - 'help' => $attributes['help'] - ]); + $html .= self::label($attributes['id'], + ' + = ? (réponse en chiffres)', [ + 'help' => $attributes['help'] + ]); // Notice $notice = ''; if(array_key_exists($attributes['id'], common::$inputNotices)) { diff --git a/core/layout/common.css b/core/layout/common.css index 884aa9f3..4b41e5ee 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -1358,4 +1358,11 @@ th.col12 { } .accordion-content { padding: 7px; +} + +/* Captcha +* Taille des images +*/ +.captchaNumber { + height:20px; } \ No newline at end of file diff --git a/core/vendor/zwiico/png/a.png b/core/vendor/zwiico/png/a.png new file mode 100644 index 00000000..f4ef6eef Binary files /dev/null and b/core/vendor/zwiico/png/a.png differ diff --git a/core/vendor/zwiico/png/b.png b/core/vendor/zwiico/png/b.png new file mode 100644 index 00000000..e14be925 Binary files /dev/null and b/core/vendor/zwiico/png/b.png differ diff --git a/core/vendor/zwiico/png/c.png b/core/vendor/zwiico/png/c.png new file mode 100644 index 00000000..dcf2125d Binary files /dev/null and b/core/vendor/zwiico/png/c.png differ diff --git a/core/vendor/zwiico/png/d.png b/core/vendor/zwiico/png/d.png new file mode 100644 index 00000000..ca9f562a Binary files /dev/null and b/core/vendor/zwiico/png/d.png differ diff --git a/core/vendor/zwiico/png/e.png b/core/vendor/zwiico/png/e.png new file mode 100644 index 00000000..ea3f028b Binary files /dev/null and b/core/vendor/zwiico/png/e.png differ diff --git a/core/vendor/zwiico/png/f.png b/core/vendor/zwiico/png/f.png new file mode 100644 index 00000000..6bfdd37e Binary files /dev/null and b/core/vendor/zwiico/png/f.png differ diff --git a/core/vendor/zwiico/png/g.png b/core/vendor/zwiico/png/g.png new file mode 100644 index 00000000..a55422c1 Binary files /dev/null and b/core/vendor/zwiico/png/g.png differ diff --git a/core/vendor/zwiico/png/h.png b/core/vendor/zwiico/png/h.png new file mode 100644 index 00000000..5bc5592d Binary files /dev/null and b/core/vendor/zwiico/png/h.png differ diff --git a/core/vendor/zwiico/png/i.png b/core/vendor/zwiico/png/i.png new file mode 100644 index 00000000..2732d8c1 Binary files /dev/null and b/core/vendor/zwiico/png/i.png differ diff --git a/core/vendor/zwiico/png/j.png b/core/vendor/zwiico/png/j.png new file mode 100644 index 00000000..7dbaf189 Binary files /dev/null and b/core/vendor/zwiico/png/j.png differ diff --git a/core/vendor/zwiico/png/k.png b/core/vendor/zwiico/png/k.png new file mode 100644 index 00000000..61c2d295 Binary files /dev/null and b/core/vendor/zwiico/png/k.png differ diff --git a/core/vendor/zwiico/png/l.png b/core/vendor/zwiico/png/l.png new file mode 100644 index 00000000..4a88e131 Binary files /dev/null and b/core/vendor/zwiico/png/l.png differ diff --git a/core/vendor/zwiico/png/m.png b/core/vendor/zwiico/png/m.png new file mode 100644 index 00000000..747bc5c6 Binary files /dev/null and b/core/vendor/zwiico/png/m.png differ diff --git a/core/vendor/zwiico/png/n.png b/core/vendor/zwiico/png/n.png new file mode 100644 index 00000000..2961ad9d Binary files /dev/null and b/core/vendor/zwiico/png/n.png differ diff --git a/core/vendor/zwiico/png/o.png b/core/vendor/zwiico/png/o.png new file mode 100644 index 00000000..dfa61db1 Binary files /dev/null and b/core/vendor/zwiico/png/o.png differ diff --git a/core/vendor/zwiico/png/p.png b/core/vendor/zwiico/png/p.png new file mode 100644 index 00000000..c5d4377e Binary files /dev/null and b/core/vendor/zwiico/png/p.png differ diff --git a/core/vendor/zwiico/png/q.png b/core/vendor/zwiico/png/q.png new file mode 100644 index 00000000..fc4729dc Binary files /dev/null and b/core/vendor/zwiico/png/q.png differ diff --git a/core/vendor/zwiico/png/r.png b/core/vendor/zwiico/png/r.png new file mode 100644 index 00000000..c6d308ce Binary files /dev/null and b/core/vendor/zwiico/png/r.png differ diff --git a/core/vendor/zwiico/png/s.png b/core/vendor/zwiico/png/s.png new file mode 100644 index 00000000..7d93e6ac Binary files /dev/null and b/core/vendor/zwiico/png/s.png differ diff --git a/core/vendor/zwiico/png/t.png b/core/vendor/zwiico/png/t.png new file mode 100644 index 00000000..1d2b985b Binary files /dev/null and b/core/vendor/zwiico/png/t.png differ diff --git a/core/vendor/zwiico/png/u.png b/core/vendor/zwiico/png/u.png new file mode 100644 index 00000000..e2db2904 Binary files /dev/null and b/core/vendor/zwiico/png/u.png differ