Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Detekcija IE 6.0 ili manje

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
Zeus



Joined: 09 Sep 2003
Posts: 775
Location: Čakovec

PostPosted: 18.03.2009 18:52    Post subject: Detekcija IE 6.0 ili manje Add user to your forum ignore list Reply with quote

Dakle, kako u PHP detektirati da li je IE verzija 6.0 ili manja?

Code:
<?php
function ae_detect_ie()
{
    if (isset($_SERVER['HTTP_USER_AGENT']) &&
    (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
        return true;
    else
        return false;
}
?>


Ovo određuje samo da li je IE ili nije, znaci da bi iz ovog 'HTTP_USER_AGENT' trebalo nesto izvuci ako se moze, samo ne znam kak to ide.
Back to top
View user's profile Send private message Twitter profile
mile



Joined: 10 Sep 2003
Posts: 1327
Location: Jeruzalem

PostPosted: 18.03.2009 20:14    Post subject: Add user to your forum ignore list Reply with quote

Možda ti ovo pomogne:
http://php.net/manual/en/function.get-browser.php

_________________
mile.is
Back to top
View user's profile Send private message Visit poster's website
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 19.03.2009 08:05    Post subject: Add user to your forum ignore list Reply with quote

Za što ti to treba?
Ako za drugačiji CSS ili JavaScript, upotrijebi conditional comments u HTML-u

Code:
<!--[if lte IE 6]>Internet Explorer 6 and below <![endif]-->

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Zeus



Joined: 09 Sep 2003
Posts: 775
Location: Čakovec

PostPosted: 19.03.2009 08:21    Post subject: Add user to your forum ignore list Reply with quote

maratz wrote:
Za što ti to treba?
Ako za drugačiji CSS ili JavaScript, upotrijebi conditional comments u HTML-u

Code:
<!--[if lte IE 6]>Internet Explorer 6 and below <![endif]-->


Nije za drugaciji CSS, dao si mi ideju sa onom porukom i ljekarnom, pa cu ja u jedan dio sajta ugurati nesto slicno Smile

Hvala mile, mislim da tu naredbu get_browser server ne podrzava (treba je ukljuciti?), uglavnom, nasao sam nesto slicno bez te naredbe.
Back to top
View user's profile Send private message Twitter profile
mile



Joined: 10 Sep 2003
Posts: 1327
Location: Jeruzalem

PostPosted: 19.03.2009 08:35    Post subject: Add user to your forum ignore list Reply with quote

Zeus wrote:

Hvala mile, mislim da tu naredbu get_browser server ne podrzava (treba je ukljuciti?), uglavnom, nasao sam nesto slicno bez te naredbe.

OK, više sam mislio na primjere dolje, npr. imaš onaj koji je sada na vrhu, od 5.3. gdje su funkcije i primjer bez upotrebe tog get_browser..

_________________
mile.is
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group