<?
error_reporting(-1);
$agent = $_SERVER['HTTP_USER_AGENT'];
if ($agent != null) {
$agent = strtolower($agent);
if (strpos($agent, 'android') !== FALSE) {
header("Location: market://details?id=com.wildec.mobitva.unity&referrer=sms");
exit;
} else if (strpos(agent, "iphone")!==FALSE || strpos(agent, "ios")!==FALSE || strpos(agent, "ipad")!==FALSE) {
header("Location: https://itunes.apple.com/ru/app/the-epic-might/id718873977");
exit;
}
}
header("Location: http://theepicmight.com/");
exit;
?>