| 39 | if(isset($_GET['li'])) | if(isset($_GET['li'])) | 
| 40 | $common_sessiondata['userdata']['language_id'] = intval($_GET['li']); | $common_sessiondata['userdata']['language_id'] = intval($_GET['li']); | 
| 41 |  |  | 
|  | //------------------------------------------------------------------------------ |  | 
| 42 | //- Variable defaults: | //- Variable defaults: | 
| 43 |  |  | 
| 44 | if(!$request_contentkey) $request_contentkey = 'Home'; | if(!$request_contentkey) $request_contentkey = 'Home'; | 
| 59 | common_benchmark_addstep('GET/POST variable processing'); | common_benchmark_addstep('GET/POST variable processing'); | 
| 60 |  |  | 
| 61 | //------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ | 
|  |  |  | 
| 62 | // Dispatching the output content type: | // Dispatching the output content type: | 
| 63 |  |  | 
| 64 | switch($request_outputtype) { | switch($request_outputtype) { | 
| 65 |  |  | 
| 66 | case 'wml': // WML output | case 'wml': // WML output | 
| 67 |  |  | 
| 68 | /* --- Example: --- | include($common['site']['incroot'] . 'otdef/otd_wml1.php.inc'); | 
| 69 |  | common_benchmark_addstep('OTD_WML1 included'); | 
|  | include($common['site']['incroot'] . 'otdef/ot_wml1.php.inc'); |  | 
|  | common_benchmark_addstep('OT_WML1 included'); |  | 
|  | */ |  | 
| 70 |  |  | 
| 71 | break; | break; | 
| 72 |  |  | 
| 76 |  |  | 
| 77 | default: | default: | 
| 78 |  |  | 
| 79 | include($common['site']['incroot'] . 'otdef/ot_html1.php.inc'); | include($common['site']['incroot'] . 'otdef/otd_html1.php.inc'); | 
| 80 | common_benchmark_addstep('OT_HTML1 included'); | common_benchmark_addstep('OTD_HTML1 included'); | 
| 81 |  |  | 
| 82 | } | } | 
| 83 |  |  | 
| 84 | //---------------------------------------------------------- | //------------------------------------------------------------------------------ | 
| 85 | // Render output: | // Render output: | 
| 86 |  |  | 
| 87 | if(isset($otd_render)) $otd_render($request_contentkey, $language_id); | if(isset($otd_render)) $otd_render($request_contentkey, $language_id); |