aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-08-20 11:04:27 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-08-20 11:04:27 +0000
commit9db68f5d4e8d6fbe52ae69d901f661986e5e1aac (patch)
tree062733a9ff3f6c9a712731511792f6aede7e0c99
parent7c595339503af8ba130e8174a281e620b6217826 (diff)
downloadforums-9db68f5d4e8d6fbe52ae69d901f661986e5e1aac.tar
forums-9db68f5d4e8d6fbe52ae69d901f661986e5e1aac.tar.gz
forums-9db68f5d4e8d6fbe52ae69d901f661986e5e1aac.tar.bz2
forums-9db68f5d4e8d6fbe52ae69d901f661986e5e1aac.tar.xz
forums-9db68f5d4e8d6fbe52ae69d901f661986e5e1aac.zip
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
-rw-r--r--phpBB/includes/captcha/captcha_gd.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/phpBB/includes/captcha/captcha_gd.php b/phpBB/includes/captcha/captcha_gd.php
index 8a2bf70242..34b1684f3c 100644
--- a/phpBB/includes/captcha/captcha_gd.php
+++ b/phpBB/includes/captcha/captcha_gd.php
@@ -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
@@ -2716,6 +2722,9 @@ function captcha_vectors()
);
}
+/**
+* @package VC
+*/
class color_manager
{
var $img;
@@ -3370,7 +3379,7 @@ function vector_distance(&$char, $x, $y, $range = 0.1)
$phi += ($dy < 0) ? 180 : 360;
$phi %= 360;
}
-
+
$internal = $vector[6] > $vector[5]; //external wraps over the 360 point
$low = $phi >= $vector[5]; //phi is above our low 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;
-
+
case 'line':
$bx = $x - $vector[1];
@@ -3395,7 +3404,7 @@ function vector_distance(&$char, $x, $y, $range = 0.1)
{
if (abs($dx) > abs($dy))
{
- $s = (($bx + ($dy * $r)) / $dx);
+ $s = (($bx + ($dy * $r)) / $dx);
}
else
{
@@ -3424,4 +3433,5 @@ function vector_distance(&$char, $x, $y, $range = 0.1)
}
return $distance;
}
+
?> \ No newline at end of file