controller/comments.php 1 location
|
@@ 361-373 (lines=13) @@
|
358 |
|
|
359 |
|
$error = array_map(array($this->language, 'lang'), $error); |
360 |
|
|
361 |
|
if (!$this->user->data['is_registered'] && $this->config['dir_visual_confirm']) |
362 |
|
{ |
363 |
|
$vc_response = $this->captcha->validate(); |
364 |
|
if ($vc_response !== false) |
365 |
|
{ |
366 |
|
$error[] = $vc_response; |
367 |
|
} |
368 |
|
|
369 |
|
if ($this->config['dir_visual_confirm_max_attempts'] && $this->captcha->get_attempt_count() > $this->config['dir_visual_confirm_max_attempts']) |
370 |
|
{ |
371 |
|
$error[] = $this->language->lang('TOO_MANY_ADDS'); |
372 |
|
} |
373 |
|
} |
374 |
|
|
375 |
|
if (!$error) |
376 |
|
{ |
controller/links.php 1 location
|
@@ 413-425 (lines=13) @@
|
410 |
|
$error[] = $this->language->lang('DIR_ERROR_CHECK_URL'); |
411 |
|
} |
412 |
|
|
413 |
|
if (!$this->user->data['is_registered'] && $this->config['dir_visual_confirm']) |
414 |
|
{ |
415 |
|
$vc_response = $this->captcha->validate($data); |
416 |
|
if ($vc_response !== false) |
417 |
|
{ |
418 |
|
$error[] = $vc_response; |
419 |
|
} |
420 |
|
|
421 |
|
if ($this->config['dir_visual_confirm_max_attempts'] && $this->captcha->get_attempt_count() > $this->config['dir_visual_confirm_max_attempts']) |
422 |
|
{ |
423 |
|
$error[] = $this->language->lang('TOO_MANY_ADDS'); |
424 |
|
} |
425 |
|
} |
426 |
|
|
427 |
|
if (!$error) |
428 |
|
{ |