tryAuthenticateUser(); } /** * Funktionen zur Behandelung der globalen Variabele $ctrl_vars */ require_once( "../../cms/lib/apps/index0.lib.php" ); /** * Alle Variablen die dem Script mit GET uebergeben werden duerfen */ // Browserahabaengige Templates define( "NAV_DEFAULT", 0 ); define( "NAV_DRUCKEN", 1 ); $ctrl_vars['menu'] = httpGetVar( 'menu' ); $ctrl_vars['fct'] = httpGetVar( 'fct' ); $ctrl_vars['sid'] = httpGetVar( 'sid' ); $ctrl_vars['nav'] = httpGetVar( 'nav', NAV_DEFAULT ); if( isset( $_GET['dic_cms_site'] ) ) $ctrl_vars['dic_cms_site'] = httpGetVar( 'dic_cms_site' ); if( $a_setup['use_session'] && $a_setup['session_id_via_get'] ) $ctrl_vars['uid'] = httpGetVar( 'uid', session_id() ); require_once( "../../cms/lib/apps/menu.lib.php"); require_once( "../../cms/lib/apps/cat-menu.lib.php"); require_once( "../../cms/lib/apps/sid-menu.lib.php" ); // Wird von shop benoetigt require_once( "script/menu.res.php" ); require_once( "../../cms/lib/apps/index.lib.php"); function start( &$menu_array, &$menu_area_array, &$menu_map_array, &$sid_menu_array, &$setup_array ) { // Alle Variablen die dem Script mit GET uebergeben werden duerfen global $ctrl_vars; // Browser type abh�ngiges Template verwenden switch( $ctrl_vars['nav'] ) { case NAV_DRUCKEN: $template['index'] = "drucken.tpl.html"; $template['sid_menu'] = "sid-menu.tpl.html"; break; default: $template['index'] = "index.tpl.html"; $template['sid_menu'] = "sid-menu.tpl.html"; break; } // Alle Variablen die dem Script mit POST uebergeben werden duerfen $index = new index( $template, $ctrl_vars, $menu_array, $menu_area_array, $menu_map_array, $sid_menu_array, $setup_array ); return $index->str_out(); } /////////////////////////////// // Mit der Datenbank verbinden $db_lnk = DB_open(); DB_SetCharset( $a_setup['charset'] ); //////////// // Caching // Alle erlaubten GET- /Post Variablen $a_allowed_vars[0] = "menu"; // Framework Menu ID $a_allowed_vars[1] = "fct"; // Framework Function $a_allowed_vars[2] = "sid"; // Framework SubID $a_allowed_vars[3] = "nav"; // Framework Navigator $a_allowed_vars[4] = "id"; // CMS Variable Article Id $a_allowed_vars[5] = "sr"; // CMS Variable Lists (start row) $a_allowed_vars[6] = "fnc"; // CMS Variable Function $a_allowed_vars[7] = "location_id"; // CMS Variable - Jobs $a_allowed_vars[8] = "kind_employe_id"; // CMS Variable - Jobs $a_allowed_vars[9] = "path"; // CMS Variable - Gallery // $valid_file = cms_CacheValidFile( $setup['kdid'], $setup['domain'] ); // $cache_path = cms_CachePath( $setup['kdid'], $setup['domain'] ); // $cache = new cache( $a_allowed_vars, $valid_file, $cache_path ); // Pruefen ob Caching mit aktueller url moeglich ist /* if( $cache->isCachePossible() ) { // Cache ausgeben if( !$cache->echoCache() ) $cache->updateCache( start( $a_menu, $a_setup ), true ); } else // Es ist kein Caching moeglich { echo start(); } */ echo start( $a_menu, $a_menu_area, $a_menu_map, $a_sid_menu, $a_setup ); DB_close( $db_lnk ); ?>