• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/captcha.php
  • Класс: CCaptcha
  • Вызов: CCaptcha::SetTTFFontsPath
function SetTTFFontsPath($ttfFilesPath)
{
	if ($ttfFilesPath <> '')
	{
		$filename = trim(str_replace("\", "/", trim($ttfFilesPath)), "/");
		$FILE_NAME = rel2abs($_SERVER["DOCUMENT_ROOT"], "/".$filename);
		if(mb_strlen($FILE_NAME) > 1 && is_dir($_SERVER["DOCUMENT_ROOT"].$FILE_NAME))
			$this->ttfFilesPath = $FILE_NAME;
	}
}