Fixed browser acceptance problem, more easily defaults to HTML.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@93 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
5eb54d7977
commit
34dde50886
10
web/zm.php
10
web/zm.php
|
@ -32,12 +32,12 @@ if ( !isset($PHP_SELF) )
|
||||||
$accepts_wml = preg_match( '/text\/vnd.wap.wml/i', $HTTP_SERVER_VARS[HTTP_ACCEPT] );
|
$accepts_wml = preg_match( '/text\/vnd.wap.wml/i', $HTTP_SERVER_VARS[HTTP_ACCEPT] );
|
||||||
$accepts_html = preg_match( '/text\/html/i', $HTTP_SERVER_VARS[HTTP_ACCEPT] );
|
$accepts_html = preg_match( '/text\/html/i', $HTTP_SERVER_VARS[HTTP_ACCEPT] );
|
||||||
|
|
||||||
if ( $accepts_html )
|
if ( $accepts_wml && !$accepts_html )
|
||||||
{
|
|
||||||
require_once( 'zmhtml.php' );
|
|
||||||
}
|
|
||||||
elseif ( $accepts_wml )
|
|
||||||
{
|
{
|
||||||
require_once( 'zmwml.php' );
|
require_once( 'zmwml.php' );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
require_once( 'zmhtml.php' );
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue