hi
i have function which determine the type of IE version
function ie6() {
$przegladarka=$_SERVER['HTTP_USER_AGENT'];
if(strpos($przegladarka, 'MSIE 6') == true) {
echo "you are using IE6";
}
else {
echo "you dont have IE6";
}
}
and works good
but now i need to include one .ss file when user have IE6 and second .ss file when he have other
how to do it in template ?
i tryed this:
function ie6() {
$przegladarka=$_SERVER['HTTP_USER_AGENT'];
if(strpos($przegladarka, 'MSIE 6') == true) {
$ie = 1;
}
else {
$ie = 0;
}
}
<% control ie6 %>
<% if ie == 0 %>
<% include non_ie_file.ss %>
<% else %>
<% include ie_file.ss %>
<% end_if %>
<% end_control %>
but it doesnt work