--- nfo/site/htdocs/index.php 2004/08/31 02:27:53 1.6 +++ nfo/site/htdocs/index.php 2004/09/01 09:01:44 1.7 @@ -4,11 +4,13 @@ --- Main index and content access page. -------------------------------------------------------------------------------- --- rabit, 01:28 24.08.2004 ---- $Id: index.php,v 1.6 2004/08/31 02:27:53 rabit Exp $ +--- $Id: index.php,v 1.7 2004/09/01 09:01:44 rabit Exp $ ------------------------------------------------------------------------------*/ include('inc/common/common.php.inc'); +common_benchmark_addstep('start'); + //------------------------------------------------------------------------------ //- Web authorisation: @@ -26,6 +28,8 @@ } +common_benchmark_addstep('authorisation test'); + //------------------------------------------------------------------------------ //- GET/POST variable encapsulation: @@ -53,13 +57,21 @@ } +common_benchmark_addstep('GET/POST variable processing'); + //------------------------------------------------------------------------------ // Dispatching the output content type: switch($request_outputtype) { - case 'xml': // XML output + case 'wml': // WML output + +/* --- Example: --- + + include($common['site']['incroot'] . 'otdef/ot_wml1.php.inc'); + common_benchmark_addstep('OT_WML1 included'); +*/ break; @@ -69,11 +81,16 @@ default: - // Generate a HTML page: - common_page($request_contentkey, $language_id); + include($common['site']['incroot'] . 'otdef/ot_html1.php.inc'); + common_benchmark_addstep('OT_HTML1 included'); } +//---------------------------------------------------------- +// Render output: + +if(isset($otd_render)) $otd_render($request_contentkey, $language_id); + //------------------------------------------------------------------------------ ?>