<?php

function path()
{
    echo "https://www.kirmson.com";
    
}

include_once 'connection.php';

$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
//   echo $actual_link;exit;
$host=$_SERVER['HTTP_HOST'];
$currentURL = $_SERVER['REQUEST_URI'];
if ($_SERVER['HTTPS'] != 'on') {
    ?>
    <script>window.location.href = "https://<?php echo $host.$currentURL ?>";
</script>
   
     <?php
}

// echo "SELECT * FROM meta_tag WHERE page_name='$actual_link'";
// exit;

    $query="SELECT * FROM meta_tag WHERE page_name='$actual_link'";
    $meta_all=mysqli_query($conn,$query);
    $row=mysqli_fetch_array($meta_all);

?>


<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
   <title><?php echo isset($row['meta_title']) ? $row['meta_title'] : 'Kirmson Electric'; ?></title>

<meta name="description" content="<?php echo $row['meta_description']; ?>" />
<meta name="keywords" content="<?php echo $row['meta_keyword']; ?>">

<meta name="google-site-verification" content="5G66YPzceLZQnGkCkYLw1J51IC1nfyTH2qXsdRkHGW0" />


<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-646NGCET0L"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-646NGCET0L');
</script>

    <!-- ==== bootstarp link -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">

    <link rel="stylesheet" href="<?php path(); ?>/css/style.css">
    
    <link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
    <link rel="icon" href="<?php path(); ?>/assets/logo.webp" sizes="32x32" />

<link rel="canonical" href="<?php echo $actual_link ?>">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
</head>
