tryAuthenticateUser(); } require_once( "../../cms/lib/apps/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"); // Browserahabaengige Templates define( "NAV_DEFAULT", 0 ); // Mozilla, Netscape >= 5, IE > 4 define( "NAV_NETSCAPE_4", 1 ); // Netscape <= 4 define( "NAV_BARIEREFREI", 2 ); // Barierefreies Angebot 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; $ctrl_vars['menu'] = httpGetVar( 'menu', ID_HOME ); $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( ($setup_array['auth_user'] || $setup_array['shopping_cart'] || $_GET['dic_cms_site'] ) && $setup_array['session_id_via_get'] ) $ctrl_vars['uid'] = httpGetVar( 'uid', session_id() ); // Browser type abhängiges Template verwenden switch( $ctrl_vars['nav'] ) { /* case NAV_NETSCAPE_4: // Netscape <= 4 $template['index'] = "index.netscape.tpl.html"; $template['sid_menu'] = "sid-menu.netscape.tpl.html"; break; case NAV_BARIEREFREI: // Barierefreies Angebot $template['index'] = "index.barierefrei.tpl.html"; $template['sid_menu'] = "sid-menu.barierefrei.tpl.html"; break; case NAV_DEFAULT: // Mozilla, Netscape >= 5, IE > 4 */ 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(); //////////// // 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 ); ?>