mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
Merge pull request #2006 from frederic34/patch-1
Update antispamimage.php
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user