$what = "andr";
$find = "iPhone";
$string = $_SERVER['HTTP_USER_AGENT'];
if (strpos($string, $find) != false) {
$what = "ios";
//header("location: /aaa-pwaios/index.html");
}
if (strpos($string, $find) !== false) {
//header("location: /aaa-pwaios/index.html");
$what = "ios";
}
$find = "iPad";
$string = $_SERVER['HTTP_USER_AGENT'];
if (strpos($string, $find) != false) {
//header("location: /aaa-pwaios/index.html");
$what = "ios";
}
if (strpos($string, $find) !== false) {
//header("location: /aaa-pwaios/index.html");
$what = "ios";
}
$find = "Mac";
$string = $_SERVER['HTTP_USER_AGENT'];
if (strpos($string, $find) != false) {
//header("location: /aaa-pwaios/index.html");
$what = "ios";
}
if (strpos($string, $find) !== false) {
//header("location: /aaa-pwaios/index.html");
$what = "ios";
}
$find = "Android";
$string = $_SERVER['HTTP_USER_AGENT'];
if (strpos($string, $find) != false) {
//header("location: /aaa-pwaandroid/index.html");
$what = "andr";
}
if (strpos($string, $find) !== false) {
//header("location: /aaa-pwaandroid/index.html");
$what = "andr";
}
if ($what === "ios") {
//header("location: /aaa-pwaios/index.html");
?>
}
else
{
?>
//header("location: /aaa-pwaandroid/index.html");
}
?>