db = $db; } /** * @param array $ip_array */ public function setIpArray($ip_array) { $this->ip_array = $ip_array; } /** * @param $result * * @psalm-suppress PossiblyUnusedMethod */ public function diePage($result) { // JCH Optimize caching preventing add_filter('jch_optimize_page_cache_set_caching', static function ($_is_cache_active) { return false; }, 999, 1); // Headers if (headers_sent() === false) { header('Expires: ' . date(DATE_RFC822, mktime(0, 0, 0, 1, 1, 1971))); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', false); header('Pragma: no-cache'); header("HTTP/1.0 403 Forbidden"); } if ( ! defined('DONOTCACHEPAGE')) { define('DONOTCACHEPAGE', true); } if ( ! defined('DONOTCACHEDB')) { define('DONOTCACHEDB', true); } if ( ! defined('DONOTCDN')) { define('DONOTCDN', true); } if ( ! defined('DONOTCACHEOBJECT')) { define('DONOTCACHEOBJECT', true); } if (function_exists('wpfc_exclude_current_page')) { wpfc_exclude_current_page(); } } }