Unverified Commit 35d8ecdb authored by matusrebros's avatar matusrebros
Browse files

deep link creator done

parent f7502770
<?php
define('MYSQL_HOST', 'localhost');
define('MYSQL_USER', '0p42ld3z');
define('MYSQL_PASSWORD', 'Zc04N5iwZ{');
define('MYSQL_DATABASE', '0p42ld3z');
define('SITE_URL', 'http://deep.dpmarketing.sk/'); //your website url i.e https://zatackcoder.com
?>
<?php
if (isset($_POST['IgUsername']) and !empty($_POST['IgUsername'])) {
$IgUsername = $_POST['IgUsername'];
$MobileLink = "instagram://user?username=" . $IgUsername;
$DesktopLink = "https://www.instagram.com/" . $IgUsername;
function isMobile()
{
return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}
if (isMobile()) {
header('Location: ' . $MobileLink);
} else {
header('Location: ' . $DesktopLink);
}
} else {
echo 'enter IG username koko';
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Deeplinking</title>
</head>
<body>
<form method="POST" action="deep.php">
<input type="text" name="IgUsername" placeholder="IG username" />
<input type="submit" value="Deep It" />
</form>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment