ElkArte Community

Elk Development => Feature Discussion => Exterminated Features => Topic started by: emanuele on February 10, 2014, 04:32:03 pm

Title: Browser sniffing
Post by: emanuele on February 10, 2014, 04:32:03 pm
Attachments download:
Code: [Select]
		// Different browsers like different standards...
[...]
elseif (isBrowser('opera'))
header('Content-Disposition: ' . $disposition . '; filename="' . preg_replace_callback('~&#(\d{3,8});~', 'fixchar__callback', $real_filename) . '"');
I wonder if this is still relevant now that Opera uses WebKit (is it webkit?).
Title: Re: Browser sniffing
Post by: Spuds on February 10, 2014, 04:49:36 pm
Yeah, TBH it should act like the JS does, calls it opera for opera <= 12 and chrome otherwise.  The php side will id it as Opera vs Chrome but thats not good for the css tags unless someone wants to add #opera in a few spots as well.