public static function CleantalkFuncs::ct_die in Anti Spam by CleanTalk 8.4
Same name and namespace in other branches
- 9.1.x src/CleantalkFuncs.php \Drupal\cleantalk\CleantalkFuncs::ct_die()
1 call to CleantalkFuncs::ct_die()
- BootSubscriber::handle in src/
EventSubscriber/ BootSubscriber.php - Handles a Request to convert it to a Response.
File
- src/
CleantalkFuncs.php, line 770
Class
- CleantalkFuncs
- Cleantalk class create request
Namespace
Drupal\cleantalkCode
public static function ct_die($comment) {
$err_text = '<center>' . (defined('CLEANTALK_DISABLE_BLOCKING_TITLE') && CLEANTALK_DISABLE_BLOCKING_TITLE == true ? '' : '<b style="color: #49C73B;">Clean</b><b style="color: #349ebf;">Talk.</b> ') . 'Spam protection' . "</center><br><br>\n<center>" . $comment . "</center>";
$err_text .= '<script>setTimeout("history.back()", 5000);</script>';
die($err_text);
}