Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matúš Rebroš
deeplinking
Commits
35d8ecdb
Unverified
Commit
35d8ecdb
authored
Jun 23, 2021
by
matusrebros
Browse files
deep link creator done
parent
f7502770
Changes
3
Hide whitespace changes
Inline
Side-by-side
short/config.php
0 → 100644
View file @
35d8ecdb
<?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
?>
short/deep.php
0 → 100644
View file @
35d8ecdb
<?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'
;
}
short/index.php
0 → 100644
View file @
35d8ecdb
<!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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment