<?php
$Agent
=
$_SERVER
[
'HTTP_USER_AGENT'
];
preg_match(
'/android|iphone/i'
,
$Agent
,
$matches
);
if
(
strtolower
(
$matches
[0]) ==
'android'
) {
header(
"Location: "
.
$GLOBALS
[
"public_appconfig"
][
"app"
][
'android'
].
"'"
);
}
elseif
(
strtolower
(
$matches
[0]) ==
'iphone'
) {
header(
"'Location: "
.
$GLOBALS
[
"public_appconfig"
][
"app"
]['ios
']."'
");
}
else
{
header(
"Location: "
.
$GLOBALS
[
"public_appconfig"
][
"app"
][
'android'
].
"'"
);
}
?>