• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/captcha.php
  • Класс: CCaptcha
  • Вызов: CCaptcha::OutputError
function OutputError()
{
	header("Expires: Sun, 1 Jan 2000 12:00:00 GMT");
	header("Last-Modified: ".gmdate("D, d M Y H:i:s")."GMT");
	header("Cache-Control: no-store, no-cache, must-revalidate");
	header("Cache-Control: post-check=0, pre-check=0", false);
	header("Pragma: no-cache");
	header("Content-Type: image/jpeg");

	$numArgs = func_num_args();
	if ($numArgs > 0)
		$arMsg = func_get_arg(0);
	else
		$arMsg = array();

	$this->CreateImageError($arMsg);
	$this->ShowImage();
	$this->DestroyImage();
}