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");
© ! 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."