Detect Real User Agent (Original Code)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Should be more.

    For example, no need suppressing \;\-\_ and so when only needs delimiters and quantifiers suppressed, which are:

    Code:
    \ | ( ) [ { ^ $ * + ? . < >
    Note where are only left brackets.

    \s you should change, it is not only white space, it is line brakes and tabs also. You probably know what happens with php in the new line. ;)
    Replace it with:

    Code:
    \p{Zs}
    This is only white space.
    Last edited by arnage; 18.03.12, 14:45.
    <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

    Comment


      #17
      Thank you arnage, next week i'll make a test with your ideas, till now check new update
      www.inbuzunar.mobi - Your mobile portal pocket

      Comment


        #18
        You are welcome.
        <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

        Comment


          #19
          New update and few changes in coding
          www.inbuzunar.mobi - Your mobile portal pocket

          Comment


            #20
            hey kiss nice script you may want to think about using an array and using a for/while loop as 95% of your script is returning $match[0] so it would reduce the amount of hard coding and make it run faster

            Comment


              #21
              Originally posted by something else View Post
              hey kiss nice script you may want to think about using an array and using a for/while loop as 95% of your script is returning $match[0] so it would reduce the amount of hard coding and make it run faster
              Hey friend, thank you for your opinion, i'll be glad if you post your idea by modify my script
              www.inbuzunar.mobi - Your mobile portal pocket

              Comment


                #22
                Something Else Edit

                Heres a quick version to show you ....
                it might need a little work putting the odd matches like the opera one after the "for" loop
                Attached Files

                Comment


                  #23
                  New update, fix some bugs and add 2 new android browsers www.tinytop.mobi
                  www.inbuzunar.mobi - Your mobile portal pocket

                  Comment


                    #24
                    i forgot to say i would probably also use:

                    PHP Code:
                    return $_SERVER["HTTP_USER_AGENT"] ; 
                    rather than return unknown

                    Comment


                      #25
                      Code:
                      return $_SERVER["HTTP_USER_AGENT"] ;
                      This cant detect original user agent.

                      Anyone can easily change hi User Agent by downloading User Agent Switcher addon for Firefox :P

                      Comment


                        #26
                        Originally posted by Vipin View Post
                        Code:
                        return $_SERVER["HTTP_USER_AGENT"] ;
                        This cant detect original user agent.

                        Anyone can easily change hi User Agent by downloading User Agent Switcher addon for Firefox :P
                        i guess you dont understand this topic....
                        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ノ刀ノイリ!

                        Comment


                          #27
                          New update it available, fix some bugs for agent Nokia and add 3 browsers (one it new Dooble Web Browser) For demo and download visit www.tinytop.mobi
                          www.inbuzunar.mobi - Your mobile portal pocket

                          Comment


                            #28
                            nice work
                            most of times it is detecting original UA but some times it failed to detect original
                            in my test
                            anyway nice work

                            Comment


                              #29
                              Official public release and updated detect-real-user-agent - PHP code that detect you ;) - Google Project Hosting
                              Last edited by kiss; 27.07.12, 13:07.
                              www.inbuzunar.mobi - Your mobile portal pocket

                              Comment


                                #30
                                New update it available
                                Attached Files
                                Last edited by arnage; 27.07.12, 17:31.
                                www.inbuzunar.mobi - Your mobile portal pocket

                                Comment

                                Working...
                                X