[Script] Redirectionare dupa browser

Locked
User avatar
! Manticore ♛
Membru
Membru
Posts: 1542
Joined: 8 years ago
Location: New York , SUA
Has thanked: 0
Been thanked: 0
Zodiac:
Age: 27
Status: Offline

7 years ago

Redirectionare dupa browser

Daca vrei sa redirectionezi dispozitivele mobile pune acest cod in HEADER:

Code: Select all

### NU MODIFICA ###
function isMobile() {
return preg_match("/(avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}


### ASTA IL REDIRECTIONEAZA UNDE VREI DACA E PE MOBIL ###
if(isMobile())
header("Location: http://SITE.TLD"); 
Image Image

Image

© ! Manticore ♛

"Many things that seems threatening in the dark,become more welcoming when we shine a light on them."
"Maybe for the world you are just a person,but for a person you are the entire world."
"Nothing is impossible,the word itself says <<I'm Possible>>."
"If the pain will ever speak,then my pain will scream."
''The fastest way to happiness is to avoid the reality."

Image
Locked

Return to “Script-uri”