-
Notifications
You must be signed in to change notification settings - Fork 0
/
appstore.php
19 lines (18 loc) · 1001 Bytes
/
appstore.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
$result = false;
$ios_devices = array(
'/iPhone/',
'/iPad/',
'/iPod/' );
foreach ($ios_devices as $id) {
$result = preg_match($id, $_SERVER['HTTP_USER_AGENT']);
if (preg_match($id, $_SERVER['HTTP_USER_AGENT']) == true) {
$result = true;
break;
}
}
if ($result) {
header('Location: itms-apps://itunes.apple.com/kr/app/apple-store/id1473080254');
} else {
header('Location: market://details?id=com.litandard.lifelike');
}