public static function CleantalkFuncs::create_ac_cookie_value in Anti Spam by CleanTalk 9.1.x
Same name and namespace in other branches
- 8.4 src/CleantalkFuncs.php \Drupal\cleantalk\CleantalkFuncs::create_ac_cookie_value()
AntiCrawler cookie value
Return value
false|string
2 calls to CleantalkFuncs::create_ac_cookie_value()
- AntiCrawler::__construct in src/
lib/ Cleantalk/ Common/ Firewall/ Modules/ AntiCrawler.php - * FirewallModule constructor. * Use this method to prepare any data for the module working. * *
- cleantalk_page_attachments_alter in ./
cleantalk.module - Implements hook_page_attachments_alter()
File
- src/
CleantalkFuncs.php, line 780
Class
- CleantalkFuncs
- Cleantalk class create request
Namespace
Drupal\cleantalkCode
public static function create_ac_cookie_value() {
return hash('sha256', \Drupal::config('cleantalk.settings')
->get("cleantalk_authkey") . md5(Server::get('HTTP_USER_AGENT') . md5(Server::get('HTTP_USER_AGENT') . Server::get('HTTPS') . Server::get('HTTP_HOST'))));
}