Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Distro sniff 
 
IP detects all the linux distributions as "Linux", with this mod it will show which distro you're using  

OPEN includes/functions_mg_http.php

FIND

Code: [Download] [Hide] [Select]
    elseif (strstr($http_user_agent_str, 'Linux'))
    {
                    $user_os_ver = 'Linux';
                    $user_os_img .= 'linux.png';
    }


REPLACE WITH

Code: [Download] [Hide] [Select]
    elseif (strstr($http_user_agent_str, 'Linux'))
    {
        if (strstr($http_user_agent_str, 'Slackware'))
        {
                    $user_os_ver = 'Slackware Linux';
                    $user_os_img .= 'slackware.png';
        }
        elseif (strstr($http_user_agent_str, 'Mandrake'))
        {
                    $user_os_ver = 'Mandrake Linux';
                    $user_os_img .= 'mandrake.png';
        }
        elseif (strstr($http_user_agent_str, 'SuSE'))
        {
                    $user_os_ver = 'SuSE Linux';
                    $user_os_img .= 'suse.png';
        }
        elseif (strstr($http_user_agent_str, 'Novell'))
        {
                    $user_os_ver = 'Novell Linux';
                    $user_os_img .= 'novell.png';
        }
        elseif (strstr($http_user_agent_str, 'Ubuntu'))
        {
                    $user_os_ver = 'Ubuntu Linux';
                    $user_os_img .= 'ubuntu.png';
        }
        elseif (strstr($http_user_agent_str, 'Kubuntu'))
        {
                    $user_os_ver = 'Kubuntu Linux';
                    $user_os_img .= 'kubuntu.png';
        }
        elseif (strstr($http_user_agent_str, 'Xubuntu'))
        {
                    $user_os_ver = 'Xubuntu Linux';
                    $user_os_img .= 'xubuntu.png';
        }
        elseif (strstr($http_user_agent_str, 'Edubuntu'))
        {
                    $user_os_ver = 'Edubuntu Linux';
                    $user_os_img .= 'edubuntu.png';
        }
        elseif (strstr($http_user_agent_str, 'Debian'))
        {
                    $user_os_ver = 'Debian Linux';
                    $user_os_img .= 'debian.png';
        }
        elseif (strstr($http_user_agent_str, 'Red Hat'))
        {
                    $user_os_ver = 'Red Hat Linux';
                    $user_os_img .= 'redhat.png';
        }
        elseif (strstr($http_user_agent_str, 'Gentoo'))
        {
                    $user_os_ver = 'Gentoo Linux';
                    $user_os_img .= 'gentoo.png';
        }
        elseif (strstr($http_user_agent_str, 'Fedora'))
        {
                    $user_os_ver = 'Fedora Linux';
                    $user_os_img .= 'fedora.png';
        }
        else
        {
                    $user_os_ver = 'Linux';
                    $user_os_img .= 'linux.png';
        }
    }


os.zip
Description: os images 
Download
Filename: os.zip
Filesize: 7.41 KB
Downloaded: 195 Time(s)

 



 
z3d0Send private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Distro sniff 
 
Thanks z3do!
 




____________
~~~ Andrea ~~~
User #379756 on Linux Counter
"If you can't apt-get something, it isn't useful or doesn't exist!!"
 
buldoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Distro sniff 
 
Modified a bit and added.

Thanks.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Distro Sniff 
 
where i have to put the images?????

EDIT:

is in:

/images/http_agents/os
 



 
Last edited by NBG on Sun 30 Dec, 2007 22:35; edited 1 time in total 
NBGSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Distro sniff 
 
You don't need this if you are using build 022 or above.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events