--- nfo/site/htdocs/index.php 2004/08/23 23:59:13 1.1 +++ nfo/site/htdocs/index.php 2004/09/03 22:43:17 1.10 @@ -0,0 +1,101 @@ + 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: + +if(!$request_contentkey) $request_contentkey = 'Home'; + +if(!$request_outputtype) $request_outputtype = 'html'; + +if(isset($common_sessiondata['userdata']['language_id'])) { + + // Set language ID from the users session data. + $language_id = $common_sessiondata['userdata']['language_id']; + +} else { + + $language_id = 1; // Default language ID. + +} + +common_benchmark_addstep('GET/POST variable processing'); + +//------------------------------------------------------------------------------ +// Dispatching the output content type: + +switch($request_outputtype) { + + case 'wml': // WML output + + include($common['site']['incroot'] . 'otdef/otd_wml1.php.inc'); + common_benchmark_addstep('OTD_WML1 included'); + + break; + + // HTML output: + + case 'html': + + default: + + 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); + +//------------------------------------------------------------------------------ + +?>