It looks like you're new here. If you want to get involved, click one of these buttons!
<?php
function alert($error) {
$mess='<script type=\"text/javascript\">
alert(\"'.$error.'\")
</script>
';
print $mess;
}
function useragent() {
$ua = $_SERVER['HTTP_USER_AGENT'];
if(strchr($ua,\"MSIE 8.0\")) return 'ie8';
if(strchr($ua,\"MSIE 7.0\")) return 'ie7';
if(strchr($ua,\"MSIE 6.0\")) return 'ie6';
if(strchr($ua,\"MSIE 5.5\")) return 'ie5.5';
if(strchr($ua,\"MSIE 5.01\")) return 'ie5.01';
if(strchr($ua,\"MSIE 4.01\")) return 'ie4.01';
if(strchr($ua,\"MSIE 3.0\")) return 'ie3.0';
}
if(useragent()=='ie7' || useragent()=='ie6' || useragent()=='ie5.5' || useragent()=='ie5.01' || useragent()=='ie8' || useragent()=='ie4.01' || useragent()=='ie3.0') {
alert(\"To View Firewire In Better Quality Please Upgrade To Firefox\");
}
?>
alert(\"To View Firewire In Better Quality Please Upgrade To Firefox\");
print \"To View Firewire In Better Quality Please Upgrade To Firefox';
function alert($error) {
$mess='<script type=\"text/javascript\">
alert(\"'.$error.'\")
</script>
';
print $mess;
}
Instead of doing all of those checks on the user agent for MSIE X.X why not just check for MSIE and then if its found just print the message. Its much more efficient that way.