get_settings("powAlgorithm"); $widget_script_filename = "altcha.min.js"; $widget_script_url = plugin_dir_url(dirname(__FILE__)) . "public/$widget_script_filename?ver={$version}"; $argon2id_worker_url = plugin_dir_url(dirname(__FILE__)) . "public/altcha-argon2id.min.js?ver={$version}"; $under_attack = $plugin->get_under_attack(); $cookie_ttl_ms = $plugin->get_under_attack_cookie_expire(); $cookie_name = "altcha_under_attack"; $cookie_path = COOKIEPATH; $challenge = $plugin->generate_challenge(null, (int) $under_attack, floor($cookie_ttl_ms / 1000), array( "ip" => $plugin->get_ip_address_hash(), )); header("Cache-Control: no-cache, no-store, max-age=0"); header("Pragma: no-cache"); header("X-Robots-Tag: noindex, nofollow"); header("X-Frame-Options: SAMEORIGIN"); if (AltchaPlugin::$is_ajax) { status_header(403); header("Content-Type: application/json"); echo json_encode(array( "altcha_under_attack" => true, "success" => false, )); exit; } $widget_options = array( "auto" => "onload", "configuration" => json_encode(array( "challenge" => json_encode($challenge), "minDuration" => 2000, "hideFooter" => true, )), ); $widget_attrs = $plugin->get_widget_attrs($widget_options); $widget_html = $plugin->get_widget_html($widget_attrs); $footer = ""; header("Content-Type: text/html"); echo " Verification required!

Secure Context (HTTPS) Required

This page requires a secure connection (HTTPS), also known as a Secure Context. Please access this page over HTTPS or use whitelisted localhost domains for development.

Loading...
{$widget_html}
{$footer} ";