<?php
  ob_start();
  session_start();
  require_once 'adminx/system/db.php';
  require_once 'adminx/pages/functions.php';
  require_once 'func.php';
  error_reporting(0);
  function GetIP(){
   if(getenv("HTTP_CLIENT_IP")) {
     $ip = getenv("HTTP_CLIENT_IP");
   } elseif(getenv("HTTP_X_FORWARDED_FOR")) {
     $ip = getenv("HTTP_X_FORWARDED_FOR");
     if (strstr($ip, ',')) {
       $tmp = explode (',', $ip);
       $ip = trim($tmp[0]);
     }
   } else {
     $ip = getenv("REMOTE_ADDR");
   }
   return $ip;
  }
  $ip_adresi = GetIP();
?>
<!DOCTYPE html>
<html dir="ltr" lang="<?php echo $getLangCheck['country_code']; ?>">
  <head>
    <base href="<?php echo $generalSettingCheck['site_url']; ?>">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <?php
      $x = explode("/", $_SERVER['SCRIPT_NAME']);
      $urlNumber = count($x);
      if ($urlNumber == 3) {
        if ($x[2]=="index.php"){
          echo '
            <title>'.$generalSettingCheck['site_title'].'</title>
            <meta name="keywords" content="'.$generalSettingCheck['site_keyw'].'">
            <meta name="description" content="'.$generalSettingCheck['site_desc'].'">
          ';
        }else{
          require_once 'meta.php';
        }
      }elseif($urlNumber == 2){
        if ($x[1]=="index.php"){
          echo '
            <title>'.$generalSettingCheck['site_title'].'</title>
            <meta name="keywords" content="'.$generalSettingCheck['site_keyw'].'">
            <meta name="description" content="'.$generalSettingCheck['site_desc'].'">
          ';
        }else{
          require_once 'meta.php';
        }
      }
    ?>
    <meta name="author" content="<?php echo $generalSettingCheck['site_author']; ?>"/>
    <meta name="copyright" content="<?php echo $generalSettingCheck['site_copyright']; ?>">
    <meta name="revisit-after" content="2 days">
    <meta name="robots" content="index,follow">
    <meta name="contact" content="<?php echo $generalSettingCheck['site_email']; ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="google-site-verification" content="<?php echo $generalSettingCheck['site_webmastertools']; ?>"/>
    <link href="<?php echo $generalSettingCheck['site_favico']; ?>" rel="icon">
     <link rel="stylesheet" href="assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/css/animate.min.css">
    <link rel="stylesheet" href="assets/css/custom-animation.css">
    <link rel="stylesheet" href="assets/css/fontawesome.min.css">
    <link rel="stylesheet" href="assets/css/meanmenu.css">
    <link rel="stylesheet" href="assets/css/magnific-popup.css">
    <link rel="stylesheet" href="assets/css/flaticon.css">
    <link rel="stylesheet" href="assets/css/venobox.min.css">
    <link rel="stylesheet" href="assets/css/backToTop.css">
    <link rel="stylesheet" href="assets/css/swiper-bundle.css">
    <link rel="stylesheet" href="assets/css/default.css">
    <link rel="stylesheet" href="assets/css/main.css">
    <link rel="stylesheet" href="assets/css/whatsapp-chat-support.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" integrity="sha512-H9jrZiiopUdsLpg94A333EfumgUBpO9MdbxStdeITo+KEIMaNfHNvwyjjDJb+ERPaRS6DpyRlKbvPUasNItRyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <!-- # flag-icon-css -->
    <link rel="stylesheet" href="adminx/assets/css/flag-icon.min.css">
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
      <script src="assets/js/html5shiv.js"></script>
      <script src="assets/js/respond.min.js"></script>
    <![endif]-->

    <script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo $generalSettingCheck['site_analytics']; ?>"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', '<?php echo $generalSettingCheck['site_analytics']; ?>');
    </script>

    <script src='https://www.google.com/recaptcha/api.js?hl=<?php echo $lang; ?>' async defer></script>
<?= $generalSettingCheck['header_code']; ?>
  </head>
<body>
  
    

    <!-- back to top start -->
    <div class="progress-wrap">
        <svg class="progress-circle svg-content" width="100%" height="100%" viewBox="-1 -1 102 102">
            <path d="M50,1 a49,49 0 0,1 0,98 a49,49 0 0,1 0,-98" />
        </svg>
    </div>
    <!-- back to top end -->
 <header>
        <div class="tp-header-area-three header-sticky">
            <div class="tp-custom-container">
                <div class="row justify-content-xl-center align-items-center">
                    <div class="col-xl-3 col-lg-4 col-4">
                        <div class="tp-header-logo-three"><a href="<?= $generalSettingCheck['site_url'] ?>">
                             <img style="width:110px" src="<?= $generalSettingCheck['site_logo_2'] ?>"  class="img-fluid"  title="<?= $generalSettingCheck['site_title'] ?>"></a>

                        </div>
                    </div>
                    <div class="col-xl-7 col-lg-8 col-8">
                        <div class="tp-main-menu tp-main-menu-three">
                            <nav id="tp-mobile-menu">
                                 <?php include('datainclude/menu.php') ?>
                            </nav>
                        </div>
                        <!-- mobile menu activation -->
                        <div class="side-menu-icon d-xl-none text-end">
                            <button class="side-toggle"><i class="far fa-bars"></i></button>
                        </div>
                    </div>
                    <div class="col-xl-2 d-none d-xl-block">
                        <div class="tp-header-right-three">
                            <div class="tp-header-number-three">
                                <i class="fas fa-phone-alt"></i><span> <a href="tel:<?= $generalSettingCheck['contact_land_phone'] ?>"><?= $generalSettingCheck['contact_land_phone'] ?></a></span>
                            </div>
                              <?php
                $moduleAskData=$db->prepare("SELECT * FROM modules where module_id=:module_id");
                $moduleAskData->execute(array(
                  'module_id' => 1
                  ));
                $moduleCheckData=$moduleAskData->fetch(PDO::FETCH_ASSOC);

              if ($moduleCheckData['status']==1){
              ?>
                        
                            <div class="tp-header-btn-three">
 <a href="#offerSection" class="yellow-btn"><i class="flaticon-enter"></i> <?php echo $langArray['OFFER_TITLE2']; ?></a>                            </div>
                        </div><?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </header>
   
    <!-- mobile menu info -->
    <div class="fix">
        <div class="side-info">
            <button class="side-info-close"><i class="fal fa-times"></i></button>

            <div class="side-info-content">
                <div class="tp-mobile-menu"></div>
                
            </div>

        </div>
    </div>

    <div class="offcanvas-overlay"></div>

    <!-- mobile menu info -->