startScriptTimer(); // AUTOINCLUDE NEEDED CLASSES function __autoload($name) { $include_files = array(); $class_file = PATH_PHPLIB . 'classes/class.'. $name .'.inc'; include_once($class_file); } // CREATE LOG FILES $logger['error'] = new whxLog( PATH_LOGS . 'error_' . date( 'Y_m_d' ) . '.log' ); $logger['access'] = new whxLog( PATH_LOGS . 'access_' . date( 'Y_m_d' ) . '.log' ); // THE DATABASE CONNECTION $whxDB = new whxDB( $_ANALYSE ); if(! $whxDB->connectDB( $db_host, $db_user, $db_pass, $db_name) ) { die( 'Keine Datenbank Verbindung zu '.$db_name ); } // $whxDBExt1 = new whxDB( $_ANALYSE, $whxDB ); // if(! $whxDBExt1->connectDB( $db_host, $ext1_user, $ext1_pass, $ext1_name ) ) { // die( 'Keine Datenbank Verbindung zu '.$ext1_name ); // } $whxDBExt2 = new whxDB( $_ANALYSE, $whxDB ); if(! $whxDBExt2->connectDB( $db_host, $ext2_user, $ext2_pass, $ext2_name) ) { die( 'Keine Datenbank Verbindung zu '.$ext2_name ); } // $partnerDB = new whxDB( $_ANALYSE, $whxDB ); // if(! $partnerDB->connectDB( $db_host, $ext3_user, $ext3_pass, $ext3_name ) ) { // die( 'Keine Datenbank Verbindung zu '.$ext3_name ); // } require_once (PATH_ROOT . 'api/v1/functions.php'); // CREATE HELPER OBJECTS $str_func = new whxStringFunctions(); $int_func = new whxIntegerFunctions(); $bb_func = new whxBBCodeFunctions(); $query_func = new whxQueryFunctions(); // CREATE MAIN CLASS OBJECTS $whxUser = new whxUser(array('cookie_name' => 'whxUser')); $whxMenu = new whxMenu( $whxDB ); $whxSettings = new whxSettings( $whxDB ); $whxModRewrite = new whxModRewrite( $whxDB ); $whxPageHeader = new whxPageHeader( $whxDB ); $whxFileManager = new whxFileManager( $whxDB, SITE_MAP ); $whxCache = new whxCache(PATH_ROOT.'cache'); // LOAD OBJECTS $whxMenu->initMenuTrees(); // INCLUDE LANGUAGE SPEZIFIKATIONS $file_lang = PATH_LANGUAGES . $whxSettings->getLanguageFile(); // check language file if( !file_exists( $file_lang ) ) { define( 'LANG_ERROR', 'Die Sprachendefinition konnte nicht gefunden werden!!! ... Lade Standard-Sprache' ); $file_lang = PATH_LANGUAGES . 'language_de.inc'; } include_once($file_lang); // THE USER & LOGIN HANDLING if( isset( $aInput['action'] ) && is_array( $aInput['action'] ) ) { $keys = array_keys( $aInput['action'] ); $action = $keys[0]; switch( $action ) { case 'login' : $autologin = (isset( $aInput['autologin'] )) ? ( bool ) $aInput['autologin'] : false; if( isset( $aInput['name'] ) && strlen($aInput['name']) > 1 && isset( $aInput['pass'] ) && strlen($aInput['pass']) > 1 ) { $whxUser->login( ( string ) $aInput['name'], ( string ) $aInput['pass'], $autologin ); } if( $whxUser->isLogin() ) { if( $whxUser instanceof whxUserKunden ) { $aInput['static'] = 'kunden-uebersicht.xhtml'; } elseif( $whxUser instanceof whxUserPartner ) { $aInput['static'] = 'partner-uebersicht.xhtml'; } } break; case 'logout' : if( $whxUser->isLogin() ) $whxUser->logout(); break; } } if( $_SERVER['REMOTE_ADDR'] == '80.134.94.121' && false ) { $whxSG = new whxSitemapGenerator(); $whxSG->buildSitemap('sitemap.xml'); } // CHECK THE CLIENT BROWSER VERSION $depracted = false; $browser_name = 'unknown'; $browser_version = 0; $browser_require = Array( 'moz' => '1.6', // Firefox 'ie' => '6.0', // Internet Explorer 'op' => '6.0', // Opera 'saf' => '415.00' // Safari ); $browser_name = ( string ) browser_detection( 'browser' ); $browser_version = ( float ) browser_detection( 'number' ); if( isset($browser_require[$browser_name]) ) { $required_version = ( float ) $browser_require[$browser_name]; if( $browser_version < $required_version ) $depracted = true; } // CHECK REQUESTED FILE AND GET THE PAGE_ID $start_entry = $whxMenu->getMenuEntryByName('startseite'); $target_id = $start_entry->getTargetId(); $entry_id = $start_entry->getId(); $is404 = FALSE; if( $depracted ) { $target_id = -1; } elseif( isset($_SERVER['REQUEST_URI']) && preg_match('/.xhtml/', $_SERVER['REQUEST_URI'] ) || isset($aInput['static']) ) { if( isset( $aInput['static'] ) ) { // static rewrites $is_static = true; } else { // dynamic rewrites $is_static = false; } $entry_data = $whxModRewrite->parseRewrite( $is_static ); if( is_array( $entry_data ) ) { $entry_id = $entry_data['entry_id']; $target_id = $entry_data['target_id']; } elseif( isset($aInput['static']) && $aInput['static'] != '' ) { $is404 = TRUE; //die('
Fehler - 404: Diese Seite konnte nicht gefunden werden
Zurück zur Startseite
'); } } elseif( isset( $aInput['show'] ) ) { $entry_id = intval( $aInput['show'] ); } // INITIALIZE THE MENU $whxMenu->setCurrentMenuEntry( $entry_id ); $curr_menu = $whxMenu->getCurrentMenuEntry(); $curr_page = $curr_menu->getTarget(); $target_id = $curr_menu->getTargetId(); // TRACKING $whxTracking = new whxTracking(); // INITIALIZE THE USER $whxUser->setLocation( 'site', $target_id ); $whxUserRole = $whxUser->getRoleOf( $target_id ); // INITIALIZE THE SITE NAVIGATOR $whxFileManager->setFile( $target_id ); $whxFileManager->showChilds( $whxFileManager->getId() ); if( $whxFileManager->isExternal() ) { header( 'Location: ' . PATH_ROOT . $whxFileManager->getFile() ); } $caching = (boolean) $whxFileManager->getCaching(); // INCLUDE DYNAMIC CONFIGURATIONS require(PATH_ROOT . 'conf/config_globals_dyn.inc'); // PERMISSION CHECK $can_read = $whxUserRole->canRead(); // CONSTRUCT THE PAGE HEADER if( $whxFileManager->getSEOQuery() != NULL ) { $query_string = $whxFileManager->getSEOQuery(); $query_input_key = $whxFileManager->getSEOKey(); $keys = explode(',',$query_input_key); $keys = array_map('trim',$keys); $key_values = array(); foreach( $keys as $k ) { $key_values[] = ( isset($aInput[$k]) ) ? $aInput[$k] : null; } $whxPageHeader->initData( $query_string, $key_values ); } if( empty( $whxPageHeader->_data ) ) { $page_data = array( $whxFileManager->getSiteTitle(), $whxFileManager->getSiteDescription(), $whxFileManager->getSiteKeywords() ); $whxPageHeader->setData( $page_data ); } // DECLARE THE PAGE FILES $file_header = PATH_PAGES_ROOT . 'overall_header.inc'; $file_footer = PATH_PAGES_ROOT . 'overall_footer.inc'; $file_template = PATH_TEMPLATES . $whxFileManager->getTemplate(); $file_request = PATH_PAGES_CONTENT . $whxFileManager->getFile(); // BUILD UP AND CHECK FILES. FILES NOT FOUND WILL BE REPLACED BY DEFAULTS // check template file if( !isset( $file_template ) || !is_file( $file_template ) || !file_exists( $file_template ) ) { define( 'TEMP_ERROR', 'Das Template konnte nicht gefunden werden!!! ... Lade Standard-Template' ); $file_template = PATH_TEMPLATES . 'frontend/template.php'; } // check page file if( $is404 ) { header('Status: 404 Not Found'); header('HTTP/1.0 404 Not Found'); $file_request = PATH_PAGES . 'site_no_found.php'; } else { if( $can_read ) { if( !$whxFileManager->isAccessible() || !$whxSettings->isAvalible() ) { $file_request = PATH_PAGES . 'site_unavalible.php'; } elseif( !file_exists( $file_request ) || !is_file( $file_request ) ) { if( $file_request != "" ) { // check if there was realy a request demand $file_request = PATH_PAGES . 'site_no_found.php'; } if( file_exists( PATH_PAGES . 'index.php' ) ) { $file_request = PATH_PAGES . 'index.php'; } else { $file_request = PATH_PAGES . 'site_error.php'; } } } else { $file_request = PATH_PAGES . 'site_no_view.php'; } } $searchword = ( isset($aInput['searchword']) ) ? $aInput['searchword'] : ''; //$curr_plz = ( isset($aInput['plz']) ) ? intval($aInput['plz']) : 0; //$curr_leistung = ( isset($aInput['lid']) ) ? intval($aInput['lid']) : 0; $curr_service = ( isset($aInput['sid']) ) ? intval($aInput['sid']) : 0; $curr_state_key = ( isset($aInput['state_key']) && strlen($aInput['state_key']) > 0 ) ? $aInput['state_key'] : null; $curr_city_key = ( isset($aInput['city_key']) && strlen($aInput['city_key']) > 0 ) ? $aInput['city_key'] : null; $curr_district_key = ( isset($aInput['bezirk_key']) && strlen($aInput['bezirk_key']) > 0 ) ? $aInput['bezirk_key'] : null; $curr_leistung_key = ( isset($aInput['lid']) ) ? $aInput['lid'] : null; $curr_service_key = ( isset($aInput['sid']) ) ? $aInput['sid'] : null; $curr_abfall_key = ( isset($aInput['abfall_key']) && strlen($aInput['abfall_key']) > 0 ) ? $aInput['abfall_key'] : NULL; $curr_produkt_id = ( isset($aInput['produkt_id']) && strlen($aInput['produkt_id']) > 0 ) ? $aInput['produkt_id'] : NULL; if( !is_null($curr_state_key) ) { $query = "SELECT * FROM whx_geo_states WHERE state_key='".$curr_state_key."'"; $res_state = $whxDB->query($query, __FILE__, __LINE__); if( mysqli_num_rows($res_state) == 0 ) { header('Status: 404 Not Found'); header('HTTP/1.0 404 Not Found'); $file_request = PATH_PAGES . 'site_no_found.php'; } else { $curr_state = mysqli_fetch_assoc($res_state); } } if( !is_null($curr_city_key) ) { $query = "SELECT * FROM whx_geo_cities WHERE city_key='".$curr_city_key."'"; $res_city = $whxDB->query($query, __FILE__, __LINE__); if( mysqli_num_rows($res_city) == 0 ) { header('Status: 404 Not Found'); header('HTTP/1.0 404 Not Found'); $file_request = PATH_PAGES . 'site_no_found.php'; } else { $curr_city = mysqli_fetch_assoc($res_city); } } if( !is_null($curr_district_key) ) { $query = "SELECT * FROM whx_geo_cities_districts WHERE district_key='".$curr_district_key."'"; $res_district = $whxDB->query($query, __FILE__, __LINE__); if( mysqli_num_rows($res_district) == 0 ) { header('Status: 404 Not Found'); header('HTTP/1.0 404 Not Found'); $file_request = PATH_PAGES . 'site_no_found.php'; } else { $curr_district = mysqli_fetch_assoc($res_district); } } if( !is_null($curr_abfall_key) ) { $query = "SELECT * FROM abfallarten_neu WHERE abfall_key='".$curr_abfall_key."'"; $res_abfallart = $whxDBExt2->query($query, __FILE__, __LINE__); if( mysqli_num_rows($res_abfallart) == 0 ) { header('Status: 404 Not Found'); header('HTTP/1.0 404 Not Found'); $file_request = PATH_PAGES . 'site_no_found.php'; } else { $curr_abfallart = mysqli_fetch_assoc($res_abfallart); } } if (!empty($curr_city) && !empty($curr_abfallart)) { $plist_title = 'Container für ' . $curr_abfallart['abfall_name'] . ' in ' . $curr_city['city_name'] . ' günstig bestellen'; $page_data = array($plist_title, $plist_title, ''); $whxPageHeader->setData($page_data); } if( !is_null($curr_produkt_id) ) { $query = "SELECT * FROM produkte WHERE produkt_id='".$curr_produkt_id."'"; $res_produkt = $whxDBExt2->query($query, __FILE__, __LINE__); if( mysqli_num_rows($res_produkt) == 0 ) { header('Status: 404 Not Found'); header('HTTP/1.0 404 Not Found'); $file_request = PATH_PAGES . 'site_no_found.php'; } else { $curr_produkt = mysqli_fetch_assoc($res_produkt); } } if( !is_null($curr_leistung_key) ) { $query = "SELECT t1.*, t2.entry_url FROM ent_leistungen as t1, whx_menu_entries as t2 WHERE t1.leistung_menu_id=t2.entry_id AND t2.entry_unique_name='".$curr_leistung_key."'"; $res_leistung = $whxDB->query($query, __FILE__, __LINE__); $curr_leistung = mysqli_fetch_assoc($res_leistung); $leistung_title = $curr_leistung['leistung_seo_title']; $leistung_desc = $curr_leistung['leistung_seo_description']; $leistung_keys = $curr_leistung['leistung_seo_keywords']; if( isset($curr_state) ) { $query = "SELECT leistung_info FROM ent_leistungen_states_infos WHERE state_id=".$curr_state['state_id']." AND leistung_id=".$curr_leistung['leistung_id']; $res = $whxDB->query($query, __FILE__, __LINE__); if( $res && $row = mysqli_fetch_assoc($res) ) { $leistung_title = $curr_leistung['leistung_name'].' entsorgen in '.$curr_state['state_name'].' | Entsorgung.de'; $leistung_desc = substr($bb_func->removeBBCode($row['leistung_info']),0,180).'...'; } } $page_data = array( $leistung_title, $leistung_desc, $leistung_keys ); $whxPageHeader->setData( $page_data ); } if( !is_null($curr_service_key) ) { $query = "SELECT t1.*, t2.entry_url FROM ent_services as t1, whx_menu_entries as t2 WHERE t1.service_menu_id=t2.entry_id AND t1.service_id='".$curr_service_key."'"; $res_service = $whxDB->query($query, __FILE__, __LINE__); $curr_service = mysqli_fetch_assoc($res_service); $service_title = $curr_service['service_seo_title']; $service_desc = $curr_service['service_seo_description']; $service_keys = $curr_service['service_seo_keywords']; if( isset($curr_state) ) { $query = "SELECT service_info FROM ent_services_states_infos WHERE state_id=".$curr_state['state_id']." AND service_id=".$curr_service['service_id']; $res = $whxDB->query($query, __FILE__, __LINE__); if( $res && $row = mysqli_fetch_assoc($res) ) { $service_title = $curr_service['service_name'].' in '.$curr_state['state_name'].' | Entsorgung.de'; $service_desc = substr($bb_func->removeBBCode($row['service_info']),0,180).'...'; } } $page_data = array( $service_title, $service_desc, $service_keys ); $whxPageHeader->setData( $page_data ); } if( $curr_menu->getID() == 187 ) { $query = "SELECT city_name FROM whx_geo_cities WHERE city_key='".$curr_city_key."'"; echo $query; $res_city = $whxDBExt2->query($query, __FILE__, __LINE__); if( $res_city && $row_city = mysqli_fetch_assoc($res_city) ) { $city_name = $row_city['city_name']; } else { $city_name = 'Bundesweit'; } $query = "SELECT offer_typ_id, offer_abfallart_frei, offer_menge, offer_abfallart_avv FROM prj_user_offers WHERE offer_abfallart_key='".$aInput['abfall_key']."'"; $res_abfallart = $partnerDB->query($query, __FILE__, __LINE__); $row_abfallart = mysqli_fetch_assoc($res_abfallart); $typ = ( $row_abfallart['offer_typ_id'] == 1 ) ? 'Ankauf' : 'Verkauf'; $typ2 = ( $row_abfallart['offer_typ_id'] == 2 ) ? 'Ankauf' : 'Verkauf'; $title = 'Abfallbörse - '.$typ.' von '.$row_abfallart['offer_abfallart_frei'].' in '.$city_name; $desc = 'Wir bieten Ihnen den '.$typ2.' von '.$row_abfallart['offer_menge'].' '.$row_abfallart['offer_abfallart_frei']; if( !is_null($row_abfallart['offer_abfallart_avv']) ) $desc .= ' (AVV:'.$row_abfallart['offer_abfallart_avv'].')'; $desc .= ' in '.$city_name.' an. '.$typ.' von '.$row_abfallart['offer_abfallart_frei'].' zur Entsorgung in '.$city_name; $keys = $typ.' '.$row_abfallart['offer_abfallart_frei'].' , '.$typ2.' '.$row_abfallart['offer_abfallart_frei'].' Entsorgungsangebote, '.$row_abfallart['offer_abfallart_frei'].' Abfallangebote, '.$row_abfallart['offer_abfallart_frei'].' anbieten, '.$row_abfallart['offer_abfallart_frei'].' Abfallverkauf, '.$row_abfallart['offer_abfallart_frei'].' verkaufen'; $page_data = array( $title, $desc, $keys ); $whxPageHeader->setData( $page_data ); } elseif( $curr_menu->getID() == 215 || $curr_menu->getParentId() == 215 ) { if( $curr_menu->getID() == 215 ) { $title = $curr_abfallart['abfall_name']." Container Preise in ".$curr_city['city_name']; $desc = "Alle Preise für ".$curr_abfallart['abfall_name']." Container in ".$curr_city['city_name'].". Preisliste für ".$curr_abfallart['abfall_name']." Container und Preisvergleich für die Entsorgung von ".$curr_abfallart['abfall_name']; $keys = $curr_abfallart['abfall_name']." Container ".$curr_city['city_name'].", ".$curr_abfallart['abfall_name']." Preise ".$curr_city['city_name'].", ".$curr_abfallart['abfall_name']." entsorgen ".$curr_city['city_name'].", ".$curr_abfallart['abfall_name']." Entsorgung ".$curr_city['city_name']; } else { $query = "SELECT DISTINCT t1.*, t2.kat_name, t2.kat_wert, t2.kat_einheit, t2.kat_wertproeinheit FROM produkte as t1, produkte_kategorien as t2 WHERE t1.produkt_deleted=0 AND t1.produkt_kat_id=t2.kat_id AND t1.produkt_id=".$curr_produkt_id; $res = $whxDBExt2->query($query, __FILE__, __LINE__); $prod = mysqli_fetch_assoc($res); $produkt_groesse = ($prod['kat_wertproeinheit'] == 1) ? 'pro '.$prod['kat_einheit'] : round($prod['kat_wert'],2).' '.$prod['kat_einheit'] ; $per_einheit = false; $menge = 1; if( $prod['kat_wertproeinheit'] == 1 ) { $per_einheit = true; $menge = ( $per_einheit && $prod['kat_einheit'] == 'm³') ? 11 : 1; } $title = $produkt_groesse." Container für ".$curr_abfallart['abfall_name']." in ".$curr_city['city_name']." bestellen"; $desc = "Containerbestellung für ".$produkt_groesse." ".$curr_abfallart['abfall_name']." Container zur Entsorgung von ".$curr_abfallart['abfall_name']." in ".$curr_city['city_name']; $keys = $produkt_groesse." Container ".$curr_city['city_name'].", ".$produkt_groesse." ".$curr_abfallart['abfall_name']." Container, ".$produkt_groesse." ".$curr_abfallart['abfall_name']." ".$curr_city['city_name'].", Containerbestellung ".$curr_city['city_name'].", Container mieten ".$curr_city['city_name']; } $page_data = array( $title, $desc, $keys ); $whxPageHeader->setData( $page_data ); } elseif( $curr_menu->getID() == 186 || $curr_menu->getParentId() == 186 ) { $kat = ( isset($aInput['kat']) ) ? ucfirst($aInput['kat']) : NULL; if( isset($aInput['filter']['ort']) || isset($aInput['city_key']) ) { $city_key = ( isset($aInput['filter']['ort']) ) ? $aInput['filter']['ort'] : $aInput['city_key']; $query = "SELECT city_name FROM whx_geo_cities WHERE city_key='".$city_key."'"; $res = $whxDBExt2->query($query, __FILE__, __LINE__); $row = mysqli_fetch_assoc($res); $city_name = $row['city_name']; } else { $city_name = NULL; } $abfall_name = NULL; if( isset($aInput['filter']['art']) || isset($aInput['abfall_key']) ) { $abfall_key = ( isset($aInput['filter']['art']) ) ? $aInput['filter']['art'] : $aInput['abfall_key']; $query = "SELECT offer_typ_id, offer_abfallart_frei, offer_menge, offer_abfallart_avv FROM prj_user_offers WHERE offer_abfallart_key='".$abfall_key."'"; $res_abfallart = $partnerDB->query($query, __FILE__, __LINE__); if( $res_abfallart && $row_abfallart = mysqli_fetch_assoc($res_abfallart) ) { $abfall_name = $row_abfallart['offer_abfallart_frei']; } else { $abfall_name = ( isset($aInput['filter']['art']) ) ? ucfirst($aInput['filter']['art']) : ucfirst($aInput['abfall_key']); } } $title = ''; $desc = ''; $keys = ''; if( is_null($kat) ) { if( is_null($city_name) && is_null($abfall_name) ) { $title = 'Abfalbörse - Angebote und Gesuche'; $desc = 'Ihre Abfallbörse mit Entsorgungsgesuchen und Entsorgungsangeboten - Abfälle anbieten oder suchen zur fachgerechten Abholung und Entsorgung bei zertifizierten Entsorgungsfachbetrieben'; $keys = 'Entsorgung, Abfallangebote, Abfallgesuche, Abfallbörse, Entsorgung Ausschreibungen, Abfälle Ankauf, Abfälle Verkauf, Abfall Markt, Abfälle Marktplatz, Abfallentsorgung, Entsorgungsfachbetriebe, Entsorger'; } else { if( !isset($aInput['offer']) ) { $title = 'Abfalbörse - Angebote und Gesuche für '.$abfall_name.' in '.$city_name; $desc = 'Gesuche und Angebote zur Entsorgung von '.$abfall_name.' in '.$city_name.' bei Ihrer Abfallbörse'; $keys = 'Ankauf '.$abfall_name.' '.$city_name.', Verkauf '.$abfall_name.' '.$city_name.', '.$abfall_name.' Entsorgung '.$city_name; } else { $query = "SELECT * FROM prj_user_offers WHERE offer_id=".$aInput['offer']; $res = $partnerDB->query($query, __FILE__, __LINE__); $row = mysqli_fetch_assoc($res); $title = 'Abfalbörse - '.(($row['offer_typ_id']==2)?'Angebote':'Gesuche').' für '.$abfall_name.' in '.$city_name; $desc = 'Wenn Sie Interesse am '.(($row['offer_typ_id']==2)?'Ankauf':'Verkauf').' von '.$row['offer_menge'].' - '.$abfall_name.' (AVV:'.$row['offer_abfallart_avv'].') in '.$city_name.' haben nehmen Sie bitte mit dem Bieter Kontakt auf.'; $keys = 'Ankauf '.$abfall_name.' '.$city_name.', Verkauf '.$abfall_name.' '.$city_name.', '.$abfall_name.' Entsorgung '.$city_name; } } } elseif( $kat == 'Ankauf' ) { if( !is_null($city_name) && is_null($abfall_name) ) { $title = 'Abfallbörse - Gesuche in '.$city_name; $desc = 'Ankauf von Abfällen in '.$city_name.' - Abfälle suchen und kaufen bei der Abfallbörse zur fachgerechten Entsorgung in '.$city_name; $keys = 'Abfälle Ankauf '.$city_name.', Entsorgungsgesuche '.$city_name.', Abfallgesuche '.$city_name.', Abfallankauf '.$city_name; } elseif( !is_null($city_name) && !is_null($abfall_name) ) { $title = 'Abfallbörse - Gesuche für '.$abfall_name.' in '.$city_name; $desc = 'Ankauf von '.$abfall_name.' in '.$city_name.' - '.$abfall_name.' suchen und kaufen bei der Abfallbörse zur fachgerechten Entsorgung'; $keys = $abfall_name.' Ankauf '.$city_name.', '.$abfall_name.' Gesuche '.$city_name.', '.$abfall_name.' entsorgen '.$city_name.', '.$abfall_name.' suchen '.$city_name; } elseif( is_null($city_name) && !is_null($abfall_name) ) { $title = 'Abfallbörse - Gesuche für '.$abfall_name; $desc = 'Ankauf von '.$abfall_name.' - Suchen und kaufen bei der Abfallbörse zur fachgerechten Entsorgung'; $keys = $abfall_name.' Ankauf, '.$abfall_name.' Gesuche, '.$abfall_name.' entsorgen, '.$abfall_name.' suchen'; } else { $title = 'Abfallbörse - Gesuche von Abfällen aller Art'; $desc = 'Ankauf von Abfällen aller Art - Abfälle suchen und kaufen bei der Abfallbörse zur fachgerechten Entsorgung'; $keys = 'Abfälle Ankauf, Entsorgungsgesuche, Abfallgesuche, Abfallankauf, Abfälle suchen, Abfälle kaufen'; } } elseif( $kat == 'Verkauf' ) { if( !is_null($city_name) && is_null($abfall_name) ) { $title = 'Abfallbörse - Angebote in '.$city_name; $desc = 'Verkauf von Abfällen in '.$city_name.' - Abfall anbieten und verkaufen zur umweltgerechten Entsorgung bei der Abfallbörse '.$city_name; $keys = 'Abfälle Verkauf '.$city_name.', Entsorgungsangebote '.$city_name.', Abfallangebote '.$city_name.', Abfallverkauf '.$city_name; } elseif( !is_null($city_name) && !is_null($abfall_name) ) { $title = 'Abfallbörse - Angebote für '.$abfall_name.' in '.$city_name; $desc = 'Verkauf von '.$abfall_name.' in '.$city_name.' - '.$abfall_name.' anbieten und verkaufen zur Entsorgung bei der Abfallbörse '.$city_name; $keys = $abfall_name.' Verkauf '.$city_name.', '.$abfall_name.' Angebote '.$city_name.', '.$abfall_name.' entsorgen '.$city_name.', '.$abfall_name.' anbieten '.$city_name; } elseif( is_null($city_name) && !is_null($abfall_name) ) { $title = 'Abfallbörse - Angebote für '.$abfall_name; $desc = 'Ankauf von '.$abfall_name.' - Suchen und kaufen bei der Abfallbörse zur fachgerechten Entsorgung'; $keys = $abfall_name.' Verkauf, '.$abfall_name.' Angebote, '.$abfall_name.' Abfallangebote, '.$abfall_name.' anbieten'; } else { $title = 'Abfallbörse - Angebote für Abfälle aller Art'; $desc = 'Verkauf von Abfällen aller Art - Abfälle anbieten und verkaufen bei der Abfallbörse zur fachgerechten Entsorgung'; $keys = 'Abfälle Verkauf, Entsorgungsangebote, Abfallangebote, Abfälle anbieten, Abfallverkauf, Abfälle verkaufen'; } } $page_data = array( $title, $desc, $keys ); $whxPageHeader->setData( $page_data ); } elseif( $curr_menu->getId() == 195 ) { $query = "SELECT key_info FROM abfallschluesselnummern WHERE key_id='".$aInput['key_id']."' OR key_id='".$aInput['key_id']."*'"; $res = $whxDBExt2->query($query, __FILE__, __LINE__); $row = mysqli_fetch_assoc($res); $title = 'Abfallschlüsselnummer AVV '.$aInput['key_id'].' | Abfallverzeichnis'; $desc = $row['key_info']; $keys = 'Abfallschlüsselnummer '.$aInput['key_id'].', AVV '.$aInput['key_id'].', '.$aInput['key_id'].' Abfallverzeichnis'; $page_data = array( $title, $desc, $keys ); $whxPageHeader->setData( $page_data ); } if( strlen($searchword) > 0 ) { $title = 'Entsorgung.de - Suchergebnisse zu '.htmlentities($searchword); $desc = 'Suchergebnisse zum Thema '.$searchword.' auf entsorgung.de Ihrer Seite für Abfall und Entsorgung bundesweit'; $keys = 'Suchergebnisse,'.$searchword; $page_data = array( $title, $desc, $keys ); $whxPageHeader->setData( $page_data ); } ob_start("ob_gzhandler"); // BUILD UP RESPONSE TO BROWSER // include HTML header require($file_header); // include HTML template require($file_template); $whxRuntimeAnalyse->stopScriptTimer(); if( $_ANALYSE ) $whxRuntimeAnalyse->saveLog(); // include DEBUG informations //if( $whxUser->hasAdminAccess() ) { if( $_DEBUG ) include (PATH_PAGES . 'site_debug.php'); if( $_ANALYSE ) include (PATH_PAGES . 'site_analyse.php'); //} // include HTML footer require($file_footer); ob_end_flush(); $whxDB->closeConn(); ?>