--- nfo/site/htdocs/index.php 2004/08/23 23:59:13 1.1 +++ nfo/site/htdocs/index.php 2004/09/05 05:52:55 1.14 @@ -0,0 +1,80 @@ + Output Type: + +$common['client']['session_enabled'] = 1; + +if($_SERVER['HTTP_USER_AGENT'] == 'M3Gate/1.2') { + + $common['client']['session_enabled'] = 0; + $common_sessiondata['user_prefs']['outputtype'] = 'wml'; + +} + +//------------------------------------------------------------------------------ +//- GET/POST variable encapsulation: + +$request_contentkey = (isset($_GET['ck']) ? $_GET['ck'] : ''); + +if(isset($_GET['li'])) + $common_sessiondata['user_prefs']['language_id'] = $_GET['li']; + +if(isset($_GET['ot'])) + $common_sessiondata['user_prefs']['outputtype'] = $_GET['ot']; + +//---------------------------------------------------------- +//- Variable defaults: + +if(!$request_contentkey) $request_contentkey = 'Home'; + +common_benchmark_addstep('GET/POST variable processing'); + +//------------------------------------------------------------------------------ +// Dispatching the output content type: + +switch($common_sessiondata['user_prefs']['outputtype']) { + + case 'wml': // WML output + + include($common['site']['incroot'] . 'otdef/otd_wml1/otd_wml1.php.inc'); + common_benchmark_addstep('OTD_WML1 included'); + + break; + + // HTML output: + + case 'html': + + default: + + include($common['site']['incroot'] . 'otdef/otd_html1/otd_html1.php.inc'); + common_benchmark_addstep('OTD_HTML1 included'); + +} + +//------------------------------------------------------------------------------ +// Render output: + +if(isset($otd_render)) $otd_render( + $request_contentkey, + $common_sessiondata['user_prefs']['language_id'] +); + +//------------------------------------------------------------------------------ + +?>