9 |
|
|
10 |
include('inc/common/common.php.inc'); |
include('inc/common/common.php.inc'); |
11 |
|
|
12 |
|
common_benchmark_addstep('start'); |
13 |
|
|
14 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
15 |
//- Web authorisation: |
//- Web authorisation: |
16 |
|
|
28 |
|
|
29 |
} |
} |
30 |
|
|
31 |
|
common_benchmark_addstep('authorisation test'); |
32 |
|
|
33 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
34 |
//- GET/POST variable encapsulation: |
//- GET/POST variable encapsulation: |
35 |
|
|
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'; |
56 |
|
|
57 |
} |
} |
58 |
|
|
59 |
//------------------------------------------------------------------------------ |
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 'xml': // XML output |
case 'wml': // WML output |
67 |
|
|
68 |
|
/* --- Example: --- |
69 |
|
|
70 |
|
include($common['site']['incroot'] . 'otdef/otd_wml1.php.inc'); |
71 |
|
common_benchmark_addstep('OTD_WML1 included'); |
72 |
|
*/ |
73 |
|
|
74 |
break; |
break; |
75 |
|
|
79 |
|
|
80 |
default: |
default: |
81 |
|
|
82 |
// Generate a HTML page: |
include($common['site']['incroot'] . 'otdef/otd_html1.php.inc'); |
83 |
common_page($request_contentkey, $language_id); |
common_benchmark_addstep('OTD_HTML1 included'); |
84 |
|
|
85 |
} |
} |
86 |
|
|
87 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
88 |
|
// Render output: |
89 |
|
|
90 |
|
if(isset($otd_render)) $otd_render($request_contentkey, $language_id); |
91 |
|
|
92 |
|
//------------------------------------------------------------------------------ |
93 |
|
|
94 |
?> |
?> |