mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 18:26:32 +02:00
Use dynamic includes, fix some style bugs, make the old default captcha family backwards compatible to 3.0.5 styles
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9609 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -35,8 +35,7 @@ class captcha
|
||||
{
|
||||
global $config;
|
||||
|
||||
srand($seed);
|
||||
//mt_srand($seed);
|
||||
mt_srand($seed);
|
||||
|
||||
// Create image
|
||||
$img = imagecreatetruecolor($this->width, $this->height);
|
||||
@@ -109,7 +108,7 @@ class captcha
|
||||
|
||||
if ($config['captcha_gd_3d_noise'])
|
||||
{
|
||||
$xoffset = rand(0,9);
|
||||
$xoffset = mt_rand(0,9);
|
||||
$noise_bitmaps = $this->captcha_noise_bg_bitmaps();
|
||||
for ($i = 0; $i < $code_len; ++$i)
|
||||
{
|
||||
|
Reference in New Issue
Block a user