Skip to content
Snippets Groups Projects
Commit 5ad6b69c authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #2006 from frederic34/patch-1

Update antispamimage.php
parents 38800139 4cb3dc42
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,6 @@ for($i = 0; $i < $length; $i++)
$sessionkey='dol_antispam_value';
$_SESSION[$sessionkey]=$string;
header("Content-type: image/png");
$img = imagecreate(80,32);
if (empty($img))
{
......@@ -60,6 +58,8 @@ if (empty($img))
exit;
}
header("Content-type: image/png");
$background_color = imagecolorallocate($img, 250, 250, 250);
$ecriture_color = imagecolorallocate($img, 0, 0, 0);
imagestring($img, 4, 24, 8, $string, $ecriture_color);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment