Chemin d'accès aux images de captcha
This commit is contained in:
parent
b45bb37c4f
commit
b1c4ce34a4
@ -58,13 +58,13 @@ class template {
|
|||||||
$firstLetter = uniqid();
|
$firstLetter = uniqid();
|
||||||
$secondLetter = uniqid();
|
$secondLetter = uniqid();
|
||||||
// Masquage image source
|
// Masquage image source
|
||||||
copy ('core/vendor/zwiico/png/'.$letters[$firstNumber] . '.png','site/tmp/' . $firstLetter . '.png');
|
copy ('core/vendor/zwiico/png/'.$letters[$firstNumber] . '.png', 'site/tmp/' . $firstLetter . '.png');
|
||||||
copy ('core/vendor/zwiico/png/'.$letters[$secondNumber] . '.png','site/tmp/' . $secondLetter . '.png');
|
copy ('core/vendor/zwiico/png/'.$letters[$secondNumber] . '.png', 'site/tmp/' . $secondLetter . '.png');
|
||||||
// Début du wrapper
|
// Début du wrapper
|
||||||
$html = '<div id="' . $attributes['id'] . 'Wrapper" class="inputWrapper ' . $attributes['classWrapper'] . '">';
|
$html = '<div id="' . $attributes['id'] . 'Wrapper" class="inputWrapper ' . $attributes['classWrapper'] . '">';
|
||||||
// Label
|
// Label
|
||||||
$html .= self::label($attributes['id'],
|
$html .= self::label($attributes['id'],
|
||||||
'<img class="captchaNumber" src="site/tmp/' . $firstLetter . '.png" /> + <img class="captchaNumber" src="site/tmp/' . $secondLetter . '.png" /> = en chiffres ?', [
|
'<img class="captchaNumber" src="' . helper::baseUrl(false) . 'site/tmp/' . $firstLetter . '.png" /> + <img class="captchaNumber" src="' . helper::baseUrl(false) . 'site/tmp/' . $secondLetter . '.png" /> = en chiffres ?', [
|
||||||
'help' => $attributes['help']
|
'help' => $attributes['help']
|
||||||
]);
|
]);
|
||||||
// Notice
|
// Notice
|
||||||
|
Loading…
Reference in New Issue
Block a user