mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:48:53 +00:00
put a comment to the captcha_gd header so everyone understands that no more policies are allowed to the extend that some will most likely be removed.
git-svn-id: file:///svn/phpbb/trunk@6304 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
7c59533950
commit
9db68f5d4e
1 changed files with 13 additions and 3 deletions
|
@ -8,6 +8,12 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This file is getting too large.
|
||||||
|
*
|
||||||
|
* Only bugfixes allowed from now on.
|
||||||
|
* If a policy can not be fixed with the minimum amount of code it gets removed.
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main gd based captcha class
|
* Main gd based captcha class
|
||||||
|
@ -2716,6 +2722,9 @@ function captcha_vectors()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @package VC
|
||||||
|
*/
|
||||||
class color_manager
|
class color_manager
|
||||||
{
|
{
|
||||||
var $img;
|
var $img;
|
||||||
|
@ -3370,7 +3379,7 @@ function vector_distance(&$char, $x, $y, $range = 0.1)
|
||||||
$phi += ($dy < 0) ? 180 : 360;
|
$phi += ($dy < 0) ? 180 : 360;
|
||||||
$phi %= 360;
|
$phi %= 360;
|
||||||
}
|
}
|
||||||
|
|
||||||
$internal = $vector[6] > $vector[5]; //external wraps over the 360 point
|
$internal = $vector[6] > $vector[5]; //external wraps over the 360 point
|
||||||
$low = $phi >= $vector[5]; //phi is above our low range
|
$low = $phi >= $vector[5]; //phi is above our low range
|
||||||
$high = $phi <= $vector[6]; //phi is below our high range.
|
$high = $phi <= $vector[6]; //phi is below our high range.
|
||||||
|
@ -3383,7 +3392,7 @@ function vector_distance(&$char, $x, $y, $range = 0.1)
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'line':
|
case 'line':
|
||||||
|
|
||||||
$bx = $x - $vector[1];
|
$bx = $x - $vector[1];
|
||||||
|
@ -3395,7 +3404,7 @@ function vector_distance(&$char, $x, $y, $range = 0.1)
|
||||||
{
|
{
|
||||||
if (abs($dx) > abs($dy))
|
if (abs($dx) > abs($dy))
|
||||||
{
|
{
|
||||||
$s = (($bx + ($dy * $r)) / $dx);
|
$s = (($bx + ($dy * $r)) / $dx);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -3424,4 +3433,5 @@ function vector_distance(&$char, $x, $y, $range = 0.1)
|
||||||
}
|
}
|
||||||
return $distance;
|
return $distance;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Add table
Reference in a new issue