| 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 |
|
|
| 57 |
|
|
| 58 |
} |
} |
| 59 |
|
|
| 60 |
|
common_benchmark_addstep('GET/POST variable processing'); |
| 61 |
|
|
| 62 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
| 63 |
|
|
| 64 |
// Dispatching the output content type: |
// Dispatching the output content type: |
| 65 |
|
|
| 66 |
switch($request_outputtype) { |
switch($request_outputtype) { |
| 67 |
|
|
| 68 |
case 'xml': // XML output |
case 'wml': // WML output |
| 69 |
|
|
| 70 |
|
/* --- Example: --- |
| 71 |
|
|
| 72 |
|
include($common['site']['incroot'] . 'otdef/ot_wml1.php.inc'); |
| 73 |
|
common_benchmark_addstep('OT_WML1 included'); |
| 74 |
|
*/ |
| 75 |
|
|
| 76 |
break; |
break; |
| 77 |
|
|
| 81 |
|
|
| 82 |
default: |
default: |
| 83 |
|
|
| 84 |
// Generate a HTML page: |
include($common['site']['incroot'] . 'otdef/ot_html1.php.inc'); |
| 85 |
common_page($request_contentkey, $language_id); |
common_benchmark_addstep('OT_HTML1 included'); |
| 86 |
|
|
| 87 |
} |
} |
| 88 |
|
|
| 89 |
|
//---------------------------------------------------------- |
| 90 |
|
// Render output: |
| 91 |
|
|
| 92 |
|
if(isset($otd_render)) $otd_render($request_contentkey, $language_id); |
| 93 |
|
|
| 94 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
| 95 |
|
|
| 96 |
?> |
?> |