<!DOCTYPE php>
<html lang="en">
<?php include("admin/inc/config.php"); 

function path(){
echo "https://www.worcoz.com/"; 
}  

$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
}
if (strpos($currentURL, '?') !== false) {
    $redirectURL = 'https://www.worcoz.com/404'; // Change this URL to your desired destination
    header('Location: ' . $redirectURL);
    // exit;
}
if (strpos($currentURL, 'index') !== false) {
    $redirectURL = 'https://www.worcoz.com/'; // Change this URL to your desired destination
    header('Location: ' . $redirectURL);
    // exit;
}
include('connection.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);
?>
<head>
    
<meta charset="utf-8">

<meta content="width=device-width, initial-scale=1.0" name="viewport">

<title><?php echo $row['meta_title']; ?></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="736VFo8kaeFUcvwjYmSAsAWfZW2grbKGsrQnfRkYQWs" />

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-94ZV3K0GEG"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-94ZV3K0GEG');
</script>

    <!-- Favicon -->
    <link href="<?php path() ?>img/final-logo.png" rel="icon">
    <link rel="canonical" href="<?php echo $actual_link ?>">
    <!-- Google Web Fonts -->
    <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=Heebo:wght@400;500;600&family=Nunito:wght@600;700;800&display=swap"
        rel="stylesheet">

    <!-- Icon Font Stylesheet -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet">

    <!-- Libraries Stylesheet -->
    <link href="<?php path(); ?>lib/animate/animate.min.css" rel="stylesheet">
    <link href="<?php path(); ?>lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">


    <!-- ==== gallery link === -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css">

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">

    <!-- Customized Bootstrap Stylesheet -->
    <link href="<?php path(); ?>css/bootstrap.min.css" rel="stylesheet">

    <!-- Template Stylesheet -->
    <link href="<?php path(); ?>css/style.css" rel="stylesheet">

    <!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> -->

     <!-- <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> -->

</head>