--- nfo/site/htdocs/index.php 2004/09/01 09:01:44 1.7 +++ nfo/site/htdocs/index.php 2004/09/03 22:43:17 1.10 @@ -4,7 +4,7 @@ --- Main index and content access page. -------------------------------------------------------------------------------- --- rabit, 01:28 24.08.2004 ---- $Id: index.php,v 1.7 2004/09/01 09:01:44 rabit Exp $ +--- $Id: index.php,v 1.10 2004/09/03 22:43:17 joko Exp $ ------------------------------------------------------------------------------*/ include('inc/common/common.php.inc'); @@ -39,6 +39,15 @@ if(isset($_GET['li'])) $common_sessiondata['userdata']['language_id'] = intval($_GET['li']); + +//------------------------------------------------------------------------------ +//- User Agent <-> Output Type: +$common['client']['session_enabled'] = 1; +if ($_SERVER['HTTP_USER_AGENT'] == 'M3Gate/1.2') { + $common['client']['session_enabled'] = 0; + $request_outputtype = 'wml'; +} + //------------------------------------------------------------------------------ //- Variable defaults: @@ -60,18 +69,14 @@ common_benchmark_addstep('GET/POST variable processing'); //------------------------------------------------------------------------------ - // Dispatching the output content type: switch($request_outputtype) { case 'wml': // WML output -/* --- Example: --- - - include($common['site']['incroot'] . 'otdef/ot_wml1.php.inc'); - common_benchmark_addstep('OT_WML1 included'); -*/ + include($common['site']['incroot'] . 'otdef/otd_wml1.php.inc'); + common_benchmark_addstep('OTD_WML1 included'); break; @@ -81,12 +86,12 @@ default: - include($common['site']['incroot'] . 'otdef/ot_html1.php.inc'); - common_benchmark_addstep('OT_HTML1 included'); + include($common['site']['incroot'] . 'otdef/otd_html1.php.inc'); + common_benchmark_addstep('OTD_HTML1 included'); } -//---------------------------------------------------------- +//------------------------------------------------------------------------------ // Render output: if(isset($otd_render)) $otd_render($request_contentkey, $language_id);