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:
stan 2002-10-16 22:11:06 +00:00
parent 5eb54d7977
commit 34dde50886
1 changed files with 5 additions and 5 deletions

View File

@ -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' );
}
?> ?>