require "./web_support.php"; ############################################################################################################################################################ ### --> Page ID and Language Settings $language = $DEFAULT_SITE_LANGUAGE; if( isset( $_GET[ "lang" ] ) ) $language = $_GET[ "lang" ]; setLanguageProfile( $language ); $language_profile = strtolower( $language ); $language_id = $LANG_ID; $page_id = $ON_LINE_CONSULT_PAGE_ID; ############################################################################################################################################################ ### --> Initialize New Page ( Page Profile ) $page = new Page(); $page->setPageID( $page_id ); $page->setLangID( $language_id ); $page->getPageData(); $show_pictures = $page->getShowPictures(); $show_files = $page->getShowFiles(); $show_sub_pages = $page->getShowSubPages(); $hide_marker = $page->getHideMarker(); if( $hide_marker == "Y" ) userError( $ACCESS_DENIED_MSG, $language_profile ); $page_title = $page->getTitle(); $meta_title = $page->getMetaTitle(); $meta_description = $page->getMetaDescription(); $meta_keyworwords = $page->getMetaKeywords(); $page_description = $page->getDescription(); $parent_page = $page->getParentPage(); ############################################################################################################################################################ ### --> Page Nodes $page_title_link = "" . $page_title . ""; $path = array(); createPageNodePath( $page_id, $path, 0 ); $path_idx = count( $path ) - 1; $page1 = new Page(); $page1->setPageID( $path[ $path_idx - 2 ] ); $page1->setLangID( $language_id ); $page1->getPageData(); $call_url_1 = $page1->getCallURL(); if( $call_url_1 == "" ) $call_url_1 = "pages/" . strtolower( $language_profile ) . "/" . $path[ $path_idx - 2 ]; if( strtolower( substr( $call_url_1, 0, 4 ) ) != "http" ) $call_url_1 = $WORK_DIR . "/" . $call_url_1; $title_locator_msg .= "\n" . $page1->getTitle() . "\n"; $page_title_locator_msg = $page1->getTitle(); //$page_location_decorator = "\n\n"; for( $i = $path_idx - 3; $i >= 0; $i-- ) { $page1->setPageID( $path[ $i ] ); $page1->setLangID( $language_id ); $page1->getPageData(); $call_url_1 = $page1->getCallURL(); if( $call_url_1 == "" ) $call_url_1 = "pages/" . strtolower( $language_profile ) . "/" . $path[ $i ]; if( strtolower( substr( $call_url_1, 0, 4 ) ) != "http" ) $call_url_1 = $WORK_DIR . "/" . $call_url_1; $tmp_page_title = $page1->getTitle(); $page_title_locator_msg .= " | " . $tmp_page_title; $title_locator_msg .= "»" . "\n$tmp_page_title\n"; } ############################################################################################################################################################ ### --> Meta Information if( $meta_title == "" ) { if( $page_title_locator_msg == "" ) $meta_title = $META_TITLE; else $meta_title = $page_title_locator_msg . ", " . $META_TITLE; } if( $meta_description == "" ) $meta_description = substr( str_replace( '\r', '', str_replace( '\n', '', str_replace( ' ', ' ', $page_description ) ) ) , 0, $META_DESCRIPTION_LENGHT ); ############################################################################################################################################################ ### --> Output New Page ( Page Profile ) output_site_head_Section( $meta_title, $meta_description, $meta_keyworwords ); output_site_Header( $title_locator_msg ); open_pages_Container(); create_main_Menu(); build_inquiry_Form(); ############################################################################################################################################################ ### --> Get Subpages & Page Description if( ( $page_description != "" ) || ( $show_sub_pages == "Y" ) ) { echo <<< PAGE_CONTENT