- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/classes/general/captcha.php
- Класс: CCaptcha
- Вызов: CCaptcha::DrawLines
function DrawLines()
{
if ($this->numLines > 0)
{
for ($i = 0; $i < $this->numLines; $i++)
{
$arLineColor = $this->GetColor($this->arLineColor);
$color = imagecolorallocate($this->image, $arLineColor[0], $arLineColor[1], $arLineColor[2]);
imageline($this->image, rand(1, $this->imageWidth), rand(1, $this->imageHeight / 2), rand(1, $this->imageWidth), rand($this->imageHeight / 2, $this->imageHeight), $color);
}
}
}