0 && is_numeric($_GET['id']) ) { include_once ("lib/centrumProducts.php"); $mycart = new centrumProducts(); $lookup = $mycart->addProductToCart(addslashes($_GET['id']), addslashes($_GET['c'])); //remove echo $mycart->lookupCartItems(); exit; } if ( isset($_GET['c']) && $_GET['c']=='orders' && check_user_logged_in()<>0 ) { $nu_body = page_main_centrum_newme_offer(check_user_logged_in()); include_once ("lib/centrumProducts.php"); $mycart = new centrumProducts(); $my_body = $mycart->page_members_homepage_orders((int)(check_user_logged_in())); } else if ( isset($_GET['c']) && $_GET['c']=='order' && isset($_GET['id']) && check_user_logged_in()<>0 ) { include_once ("lib/centrumProducts.php"); $mycart = new centrumProducts(); $my_body = $mycart->page_members_homepage_order((int)(check_user_logged_in()), $_GET['id']); } else { $my_body = resp_page_members_logout('/shop/orders'); $my_body_centrum = ''; } break; case 'sitemap-news' : echo sitemap_xml_news(); exit; break; case 'sitemap-centrum' : echo sitemap_xml_centrum(); exit; break; case 'sitemap-kezdiinfo' : echo sitemap_xml_kezdiinfo(); exit; break; case 'm' : header("Location: /home"); //include("lib/m/index.php"); exit; break; case 'mnews' : header("Location: /home"); //include("lib/m/index.php"); exit; break; case 'logout' : $my_body = resp_page_members_logout(); $my_body_centrum = ''; break; case 'newsletters' : include("lib/page_newsletter.php"); $my_body = page_newsletter(); break; case 'register': $my_body = resp_page_members_register(''); $my_body_centrum = ''; break; //case 'registerbusiness': if (page_members_register_business('')<>'ok') {$my_body = page_members_register_business('');} else {$my_body = do_registration_business();} ; $my_body_centrum = page_homepage_cover(); break; case 'validate': $my_body = page_members_validateaccount(); $my_body_centrum = page_homepage_cover(); break; case 'unsubscribenewsletter': $my_body = page_members_newsletter(); $my_body_centrum = page_homepage_cover(); break; case 'passwordreminder' : $my_body = page_members_passwordreminder(); $my_body_centrum = page_homepage_cover(); break; //case 'myprofile': if (page_members_profile('')<>'ok') {$my_body = page_members_profile('');} else {$my_body = do_members_profile_update();}; break; case 'myprofile': if (check_user_logged_in()<>0) { if ($_GET['p']=='myprofile' && is_numeric(check_user_logged_in())) { centrum_log($_GET['c'], 'p'); if ($_GET['c'] == '9') { $nu_body_profile = page_members_homepage_profile_offer((int)(check_user_logged_in())); $nu_body = page_main_centrum_newme_offer(check_user_logged_in()); } else { $nu_body_profile = page_members_homepage_profile((int)(check_user_logged_in())); $nu_body = page_main_centrum_newme_offer(check_user_logged_in()); } } } else { header("Location: /logout");} break; case 'login' : if (check_user_logged_in()<>0) { header("Location: /myprofile"); } else { $my_body = resp_page_members_logout(); $my_body_centrum = ''; } break; case 'fbterkep' : echo page_centrum_map_fb(); exit; break; case 'frontstoreadmin' : if (check_user_logged_in() == 5 || check_user_logged_in() == 1 || check_user_logged_in() == 84) { $my_body = list_centrum_events($_GET['id']); $my_body_centrum = ''; //list_centrum_events('xxx'); //page_homepage_cover(); } break; case 'karacsony' : $my_body = page_main_page_karacsony(); break; case 'husvet' : $my_body = page_main_page_karacsony(); break; case 'centrumadmin' : if (check_user_logged_in() == 5 || check_user_logged_in() == 1 || check_user_logged_in() == 84) { $my_body = list_centrum_pages($_GET['id']); $my_body_centrum = list_centrum_pages('xxx'); //page_homepage_cover(); } break; case 'centrummembers' : if (check_user_logged_in() == 5 || check_user_logged_in() == 1 || check_user_logged_in() == 84) { $my_body_centrum = centrumMembers(); $my_body = centrumMemberDetails(intval($_GET['id'])); } break; case 'member' : if (isset($_GET['id']) && is_numeric($_GET['id'])) { centrum_log($_GET['id'], 'm'); $my_body_centrum = resp_page_main_centrum_profile_cover($_GET['id'], 'm'); $my_body = resp_page_main_centrum_profile_news(); } break; case 'nagyvilag' : $my_body = page_main_centrum(); break; case 'notfound' : case '404': $my_body = coverpage_404(); break; case 'parking' : case 'centrum' : if (in_array($_GET['c'], centrum_page_slug()) || $_GET['c']=='partnerek' || $_GET['c']=='dental' ) { $my_body = centrum_by_tags($_GET['c']); $my_body_centrum = page_centrumpage_cover($_GET['c']); $my_body = resp_page_centrumpage_cover($_GET['c']); $my_body_centrum = resp_page_centrum_pages($_GET['c']); //resp_list_link_categories(); break; } if ($_GET['c']=="utcak") { if (isset($_GET['id'])) { $my_body = page_centrum_streets(''); }//$my_body = page_centrum_street($_GET['id']);} else { $my_body = page_centrum_streets('');} } elseif ($_GET['c']=="terkep") { $my_body = page_centrum_map(); } elseif ($_GET['c'] == 'places') { if ( isset($_GET['id']) ) { $my_body = centrum_terkep_places(intval($_GET['id']), $zoom=16); } else { header('Location: /centrum'); } break; } if ($_GET['c']=="katalogus") { if (centrum_account_check($_GET['id'])==1) { centrum_log(intval($_GET['id']), 'c'); $my_body = resp_page_main_centrum_profile_cover(); //str_replace('&#245;', 'õ', resp_page_news()); $my_body_centrum = resp_page_main_centrum_profile_news(); //resp_page_main_centrum_new_news(); $pageId = "news".$_GET['id']; // $my_body = page_main_centrum_new(); } } else {$my_body = page_main_centrum();} if (!isset($_GET['c'])) { $my_body = page_main_centrum(); } //if (!isset($_GET['id'])) {$my_body = page_members_logout();} break; case 'news' : $my_body = str_replace('&#245;', 'õ', resp_page_news()); //$my_body = resp_page_news(); $my_body_centrum = latest_info_utils().lastactivities(); //resp_page_main_centrum_new_news(); $pageId = "news".$_GET['id']; centrum_log($_GET['id'], 'n'); break; case 'sound' : $my_body = str_replace('&#245;', 'õ', resp_page_news('sound')); echo html_entity_decode(mb_convert_encoding($my_body, "UTF-8", "Windows-1252")); exit(); break; case 'images' : $my_body = resp_page_main_centrum_imagegallery_nu(); $my_body_centrum = resp_page_images(); break; //page_main_centrum_imagegallery_nu(); case 'links' : $my_body = resp_page_links(); $my_body_centrum = resp_list_link_categories(); break; case 'contact' : $my_body = resp_page_contact(); break; case 'search' : $my_body = resp_page_centrumpage_cover($_GET['c']); $my_body_centrum = resp_page_search(); break; case 'ajanlat' : case 'offer' : $my_body = resp_page_centrumpage_offer(); //resp_page_centrumpage_cover($_GET['c']); $my_body_centrum = resp_page_centrumpage_offer(); break; case '2-procent-2015' : case '2-procent-2016' : case '2-procent-2017' : case '2-procent' : $my_body = page_2_procent(); $my_body_centrum = page_homepage_cover(); break; case 'event' : if (isset($_GET['date']) && is_numeric(str_replace('-','',$_GET['date']))) { $my_body = resp_page_wall_events_by_date($_GET['date']); $my_body_centrum = resp_page_homepage_cover(); } else { $my_body = resp_page_event(); //$my_body_centrum = page_homepage_cover(); } break; case 'idojaras' : case 'meteo' : $my_body = resp_meteo_forcast_now(); $my_body_centrum = ''; break; case 'events' : $my_body = resp_page_wall_events_by_date(date('Y-m-d',strtotime(date('Y-m-d H:i:s'))+10800)); //resp_coverpage_homepage_newswall(); //; $my_body_centrum = resp_page_homepage_cover(); break; case 'kalendarium' : if (isset($_GET['year']) && is_numeric(str_replace('-','',$_GET['year']))) { $kalendariumDate = $_GET['year']; } else { $kalendariumDate = date('Y-m-d',strtotime(date('Y-m-d H:i:s'))+10800);} $my_body = resp_page_wall_events_by_date($kalendariumDate); $my_body_centrum = resp_page_homepage_calendar(); break; case 'nucentrum' : $my_body = page_homepage_cover();break; default: //check again mobile //if (check_mobile()) { // include("lib/m/index.php"); exit; //} else { //$my_body = str_replace('&#245;', 'õ', page_news()); $my_body = resp_page_homepage_cover(); //} } //SEO if ($myPageTitle == '') {$myPageTitle = "Kézdivásárhely Infó Centrum";} /*» Kézdivásárhely - Felsőháromszék közösségének szolgálatában | Kézdi.infó*/ if ($myPageDescription == '') {$myPageDescription = "Kézdivásárhely Infó Centrum - Kézdi.infó (www.kezdi.info) Kézdivásárhely, Felsőháromszék közösségének szolgálatában.";} if ($myFacebookOgTags == '') { $myFacebookOgTags = ' ';} if ($myPageAuthor == '') { $myPageAuthor = ''; } ?> <?=$myPageTitle;?> // // if (isset($_GET['p']) && ($_GET['p']<>'myprofile' && $_GET['p']<>'nucentrum' && $_GET['p']<>'meteo' && $_GET['p']<>'news' && $_GET['p']<>'images' && $_GET['p']<>'frontstoreadmin' && $_GET['p']<>'centrumadmin' && $_GET['p']<>'event' && $_GET['p']<>'newmember' && $_GET['p']<>'events' && $_GET['p']<>'nagyvilag' && $_GET['p']<>'parking' && $_GET['p']<>'links' && $_GET['p']<>'centrum' && $_GET['p']<>'member' && $_GET['p']<>'contact' && $_GET['p']<>'passwordreminder' && $_GET['p']<>'login' && $_GET['p']<>'logout')) // // // // ?> '; } if (check_user_logged_in()!=='1') { if (($_GET['p']=='centrum' && $_GET['c']=='katalogus' && is_numeric($_GET['id'])) || $_GET['p']=='centrummembers' || $_GET['p']=='myprofile' || !isset($_GET['p']) || $_GET['p']=='centrum' || $_GET['p']=='nagyvilag' || $_GET['p']=='frontstoreadmin' || $_GET['p']=='centrumadmin' || $_GET['p']=='contact' || $_GET['p']=='member' || $_GET['p']=='news' || $_GET['p']=='passwordreminder' || $_GET['p']=='logout' || $_GET['p']=='l') { echo ''; } } if ( (isset($myMapLocation) && $_GET['p']=='myprofile' && ($_GET['c']=='6')) || ($_GET['p']=='myprofile' && $_GET['c']=='12')) { if (!isset($myMapLocation)) {$myMapLocation = $config['mapPosition'];} echo ' '; } //($_GET['p']=='centrum' && $_GET['c']=='katalogus' && is_numeric($_GET['id'])) || if (($_GET['p']=='centrummembers' || $_GET['p']=='myprofile' || $_GET['p']=='member' || $_GET['p']=='news') && $_GET['c']!='6' && $_GET['c']!='12') { echo ''; } ?> >
coverPageCarousel(); ?>
'; echo '
'.$my_body_centrum."
"; echo '
'.$my_body."
"; //page_members_homepage_centrum((int)($_GET['id'])); } elseif ( isset($_GET['p']) && ($_GET['p']=='login' || $_GET['p']=='logout' || $_GET['p']=='l' || $_GET['p']=='register' || $_GET['p']=='validate' || $_GET['p']=='passwordreminder' || $_GET['p']=='event' || $_GET['p']=='contact' || ($_GET['p']=='shop' && ($_GET['c']=='orders' || $_GET['c']=='order' ) )) ) { echo '
'; if ($_GET['p']!='event' && $_GET['p']!='contact' ) { echo '

» Kézdi.Infó felhasználói felület

'; } echo $my_body."
"; } elseif ($_GET['p']=='meteo' || $_GET['p']=='idojaras') { echo '
'; echo $my_body."
"; } elseif ($_GET['p']=='offer' || $_GET['p']=='ajanlat') { echo '
'; echo $my_body."
"; } elseif ($_GET['p']=='news') { echo '
'.$my_body."
"; echo '
'.$my_body_centrum."
"; } elseif ($_GET['p']=='events') { echo '
'.$my_body."
"; echo '
'.$my_body_centrum."
"; } elseif ($_GET['p']=='kalendarium') { echo '
'.$my_body."
"; echo '
'.$my_body_centrum."
"; } elseif ($_GET['p']=='centrummembers') { echo '
'.$my_body."
"; echo '
'.$my_body_centrum."
"; } elseif ($_GET['p']=='links') { echo '
'.$my_body."
"; echo '
'.$my_body_centrum."
"; } elseif ($_GET['p']=='centrum' && ($_GET['c']=='places' || $_GET['c']=='terkep' || $_GET['c']=='parking') ) { echo '
'.$my_body."
"; } elseif ($_GET['p']=='centrum') { if (centrum_account_check($_GET['id'])==1) { echo '
'.$my_body."
"; echo '
'.$my_body_centrum."
"; //page_members_homepage_centrum((int)($_GET['id']))echo page_members_homepage_centrum((int)($_GET['id'])); } else { echo '

Az kért oldal nem létezik vagy jelenleg nem elérhető. Kérjük látogasson vissza később.

'; } } elseif ((($_GET['p']=='karacsony' || $_GET['p']=='centrum' || $_GET['p']=='parking') && !isset($_GET['c']) && !isset($_GET['id'])) || $_GET['p']=='nagyvilag') { if ($_GET['p']=='karacsony') { echo $my_body; } else if ($_GET['p']=='nagyvilag') { echo page_main_centrum_wordwide(); } else { echo page_main_centrum(); } } elseif ( $_GET['p']=='myprofile' && is_numeric(check_user_logged_in()) ) { //echo $nu_body; //echo $nu_body_profile; echo '
'.$nu_body."
"; echo '
'.$nu_body_profile."
"; //page_members_homepage_centrum((int)($_GET['id'])); } elseif ($_GET['p']=='member') { echo $my_body; echo page_members_homepage_centrum((int)($_GET['p'])); } elseif (!isset($_GET['p'])) { echo '
'.$my_body."
"; echo '
'.resp_coverpage_homepage_newswall()."
"; } else { echo '
'.coverpage_404().'
'; } ?> ?>