user agent script for lava

Started on the old forum in November 2010 · view the original in the archive · old links redirect here

7 replies · 786 views · started 16 years ago · 1 min read

5 participants
LadyEnigma Developer · 71 posts #1

Hello everyone, I have a community lavalair and I noticed that all new mobile phones last generations are not recognized by the generic model but as mozilla, I am looking for a user agent to have code that you recognize the models and possibly a user already registered you can reregister with the usual tricks, thanks to anyone who helps me 🙂

....silence please....

LadyEnigma Developer · 71 posts #3

Thanks for the tip but if I'll go mozilla lock block 80% of my users: (there is nt another method?

....silence please....

leonine Developer · 130 posts #5

rukiyas method is reliable..

This is my new community for wap coding. Come and join and experience real wap coding http://leonine.6te.net

metulj Super moderator Principal · 1,726 posts #6

try this

explode(" . ",$_SERVER['HTTP_USER_AGENT'] . "\n\n");

should display detailed browser (no matter if PHP_register_global is ON or OFF) for example like

Mozilla/5.0 (Windows; U; Windows NT 5.1; sl; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)
or
Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaE71-1/300.21.012; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413
or
Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaE63-1/200.21.012; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413
or
Mozilla/5.0 (SymbianOS/9.3; Series60/3.2 NokiaC5-00/031.022; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/525 (KHTML, like Gecko) Version/3.0 BrowserNG/7.2.3.1
or
SonyEricssonK790i/R1JC Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1
or
LG-KG800 MIC/WAP2.0 MIDP-2.0/CLDC-1.1
or
etc...

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

LadyEnigma Developer · 71 posts #7

well done metulj ,and this allows me to see the phone model my users simply going into their profile? in which file should put the code?

....silence please....

ewanz Developer · 187 posts #8

LadyEnigma wrote: well done metulj ,and this allows me to see the phone model my users simply going into their profile? in which file should put the code?

$phone = explode(" . ",$_SERVER['HTTP_USER_AGENT'] . "\n\n"); 
$phone1 = htmlentities($phone);
/////////
//put in your code profile
  
echo "".$phone1."";

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close