<?php
ob_start();
session_start();
date_default_timezone_set("Asia/Jakarta");
include('config/koneksi.php');
$sid = session_id();
$sql_0 = mysqli_query($conn, "SELECT * FROM `tb_seo` WHERE cuid = 1") or die(mysqli_error());
$s0 = mysqli_fetch_array($sql_0);
$urlweb = $s0['urlweb'];
$urlwebs = $s0['urlweb'];
$pengguna = $s0['user'];
$sql_1a = mysqli_query($conn, "SELECT * FROM `tb_social` WHERE cuid = 1") or die(mysqli_error());
$s1a = mysqli_fetch_array($sql_1a);
$sql_1b = mysqli_query($conn, "SELECT * FROM `tb_user` WHERE user = '$pengguna'") or die(mysqli_error());
$s1b = mysqli_fetch_array($sql_1b);
$ip = $_SERVER['REMOTE_ADDR'];
$date = date('Y-m-d');
$stat = mysqli_query($conn, "INSERT INTO `tb_stat` (`ip`, `date`, `hits`, `page`, `user`) VALUES ('$ip', '$date', 1, 'Beranda', '$pengguna')") or die(mysqli_error());

?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php echo $s0['instansi']; ?>: Situs Online Resmi Nomor 1 Di Indonesia</title>
    <!-- Default -->
    <meta name="description" content="<?php echo $s0['instansi']; ?> merupakan daftar situs 4d slot gacor terbaru 2023 terpercaya di Indonesia dengan server situs4d slot gacor resmi terbaik deposit dana mudah menang.">
    <meta name="keywords" content="<?php echo $s0['instansi']; ?>, 4D Slot, 4D Slot Login, Situs 4D, Situs4D, Slot Gacor">
    <link href="../images/logo.png" rel="shortcut icon" type="image/x-icon" />
    <link rel="canonical" href="<?php echo $urlweb; ?>">
    <meta name="robots" content="index,follow">
    <meta name="language" content="Indonesia">
    <meta name="author" content="<?php echo $s0['instansi']; ?>">
    <meta name="googlebot" content="index,follow" />
    <meta content="1 days" name="revisit-after">
    <meta content="general" name="rating">
    <meta content="id" name="geo.country">
    <meta content="Indonesia" name="geo.placename">

    <!-- Meta OG -->
    <meta property="og:title" content="<?php echo $s0['instansi']; ?>: Situs 4D Slot Gacor MahjongWins - Black Scatter">
    <meta property="og:description" content="<?php echo $s0['instansi']; ?> merupakan daftar situs 4d slot gacor terbaru 2024 terpercaya di Indonesia dengan server situs4d slot gacor resmi terbaik deposit dana mudah menang.">
    <meta property="og:type" content="website">
    <meta property="og:site_name" content="<?php echo $s0['instansi']; ?>">
    <meta property="og:locale" content="id_ID">

    <!-- Geo Settings -->
    <meta name="geo.country" content="ID" />
    <meta name="geo.region" content="ID">
    <meta name="geo.placename" content="Indonesia" />
    <meta name="language" content="ID" />
    <meta name="tgn.nation" content="Indonesia" />

    <!-- Additional Settings -->
    <meta name="author" content="<?php echo $s0['instansi']; ?>" />
    <meta name="categories" content="website">
    <meta name="copyright" content="<?php echo $s0['instansi']; ?>" />
    <meta name="distribution" content="global" />
    <meta name="publisher" content="<?php echo $s0['instansi']; ?>" />
    <meta name="rating" content="general" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@splidejs/splide@latest/dist/css/splide.min.css">

    <!-- GOOGLE SITE VERIFICATION -->
    <meta name="google-site-verification" content="T_AHuKal7bfZxxZHNZ1K2_7PjJp7I1MBvq8P4C2Dt7E" />
    <meta name="google-site-verification" content="1EKYC7CpkGmXSu2auOTePKg8vLDc2jjaBf_Fy95Pr6o" />

    <!-- Script Schemas -->

    <script type="application/ld+json">
        {
            "@context": "http://schema.org",
            "@type": "Game",
            "name": "<?php echo $s0['instansi']; ?>",
            "author": {
                "@type": "Person",
                "name": " <?php echo $s0['instansi']; ?>"
            },
            "headline": "<?php echo $s0['instansi']; ?>: Situs 4D Slot Gacor Terbaru Situs4D Resmi",
            "description": "<?php echo $s0['instansi']; ?> merupakan daftar situs 4d slot gacor terbaru 2023 terpercaya di Indonesia dengan server situs4d slot gacor resmi terbaik deposit dana mudah menang.",
            "keywords": ["<?php echo $s0['instansi']; ?>, Situs4D, Situs 4D, 4D Slot, Slot Gacor 4D, Gacor 4D Slot, Slot Gacor, Situs Slot Gacor"],
            "image": "https://i.pinimg.com/564x/84/ca/28/84ca28563c8540bf9bee9ca82e8d22cf.jpg",
            "url": "/",
            "publisher": {
                "@type": "Organization",
                "name": "<?php echo $s0['instansi']; ?>"
            },
            "aggregateRating": {
                "@type": "AggregateRating",
                "ratingValue": "98",
                "bestRating": "100",
                "worstRating": "0",
                "ratingCount": "323777"
            },
            "inLanguage": "id-ID"
        }
    </script>

    <!-- TELEGRAM -->
<div style="position: fixed; bottom: 200px; left: 5px; z-index: 10; opacity: 0.98;">
    <a href="https://t.me/<?php echo ltrim($s1a['telegram'], '@'); ?>" 
       target="_blank" rel="noopener">
        <img class="wabutton" 
             src="<?php echo $urlweb; ?>/upload/disS12V.gif" 
             alt="Telegram" 
             title="Telegram" 
             width="100" height="100">
    </a>
</div>

<!-- WHATSAPP (BARU DITAMBAHKAN) -->
<div style="position: fixed; bottom: 300px; left: 5px; z-index: 10; opacity: 0.98;">
    <a href="https://wa.me/<?php echo $s1a['wa']; ?>" 
       target="_blank" rel="noopener">
        <img class="wabutton" 
             src="<?php echo $urlweb; ?>/upload/WHATSAPP.gif" 
             alt="WhatsApp" 
             title="WhatsApp" 
             width="100" height="100">
    </a>
</div>

<!-- RTP SLOT -->
<div style="position: fixed; bottom: 100px; left: 5px; z-index: 10; opacity: 0.98;">
    <a href="/rtp/index.html" target="_blank" rel="noopener">
        <img class="wabutton" 
             src="<?php echo $urlweb; ?>/upload/livertp.gif" 
             alt="rtp slot hari ini" 
             title="Rtp Slot Hari Ini" 
             width="100" height="100">
    </a>
</div>

    <meta name="viewport" content="width=device-width, initial-scale=0.8">

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

    <!--<link rel="stylesheet" href="/css/template/GM.css">-->
    <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/home/PNI.css">

    <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/home/variable.css">

    <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/home/dark.css?324324">

    <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/home/style.css?345435">
    <link rel="icon" type="image/png" href="<?php echo $urlweb; ?>/upload/Desain%20tanpa%20judul.png">


    <script src="<?php echo $urlweb; ?>/assets/home/jquery-3.6.4.min.js"></script>