function wcc_ip6_check_answer(WC_Challenge $chall, $answer, $level) { require_once 'solutions.php'; if ($level === count($solutions)) { $ip = $_SERVER['REMOTE_ADDR']; if (GWF_IP6::isV6($ip)) { $chall->onChallengeSolved(GWF_Session::getUserID()); } return false; } return in_array(strtolower($answer), $solutions[$level], true); }