From 9db68f5d4e8d6fbe52ae69d901f661986e5e1aac Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 20 Aug 2006 11:04:27 +0000 Subject: [PATCH] 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 --- phpBB/includes/captcha/captcha_gd.php | 16 +++++++++++++--- 1 file 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