Welcome Guest, Not a member yet? Register   Sign In
how do i add win 7 to application/config/user_agents.php
#1

[eluser]R_Nelson[/eluser]
how do i add win 7 to application/config/user_agents.php

Code:
$platforms = array (
                    'windows nt 6.0'    => 'Windows Longhorn',
                    'windows nt 5.2'    => 'Windows 2003',
                    'windows nt 5.0'    => 'Windows 2000',
                    'windows nt 5.1'    => 'Windows XP',
                    'windows nt 4.0'    => 'Windows NT 4.0',
                    'winnt4.0'            => 'Windows NT 4.0',
                    'winnt 4.0'            => 'Windows NT',
                    'winnt'                => 'Windows NT',
                    'windows 98'        => 'Windows 98',
                    'win98'                => 'Windows 98',
                    'windows 95'        => 'Windows 95',
                    'win95'                => 'Windows 95',
                    'windows'            => 'Unknown Windows OS',

right now im getting Unknown Windows OS
#2

[eluser]R_Nelson[/eluser]
i found the answer by acident i used
Code:
$this->agent->agent_string()

and it game me
Code:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

so to put in Windows 7 you need to add
Code:
$platforms = array (
                    'windows nt 6.1'    => 'Windows 7',

that will give you Windows 7 so i'm happy now!
#3

[eluser]Mike One[/eluser]
And just in case you are wondering what Windows Longhorn is... this is Vista..




Theme © iAndrew 2016 - Forum software by © MyBB