hotel_id = 256; $api->xmlrpc_key = "5addd825848525af47bab3bb88629fe9"; $api->lang = $_lang; ////////////////////////////////// switch($_GET[c_id]) { case 9: session_start(); include(PATH_INC."captcha.inc.php"); if($_POST[action]=='guestbook_new') { $api->name = $_POST[name]; $api->email = $_POST[email]; $api->nachricht = $_POST[nachricht]; $api->ip = $REMOTE_ADDR; if ( !check_word()) { $smarty->assign("error",$hash[l_captcha_wrongword]); } else { $return =$api->set_hotelguestbook(); if ($return[error]) { $smarty->assign("error",$return[error]); $_GET["new"] = 1; $smarty->assign("_GET",$_GET); } else header("Location:?c_id=$_GET[c_id]"); } } if(!$_GET["new"]) { $api->number_of_entrys = 10; $api->start = $_GET[start]; $smarty->assign("guestbook",$api->get_hotelguestbook()); } $_site = "hotelguide_guestbook"; break; case 10: $smarty->assign("news",$api->get_hotelnewsonly()); $_site = "hotelguide_news"; break; case 2: $smarty->assign("offers",$api->get_hoteloffersonly()); $_site = "hotelguide_offers"; break; case 11: $smarty->assign("gallery",$api->get_hotelgallery()); $_site = "hotelguide_gallery"; break; case 7: if($_POST) include(PATH_ROOT."inc/formmailer.php"); # $smarty->assign("module_link","http://www.hotel-guide.it/remote/modules/request.php?id=256&checksum=3160320&lang=de&show[]=1','request', 'width=500,height=275,scrollbars=yes"); # $smarty->assign("module_height",1000); # $_site = "hotelguide_iframe"; # break; default : $_site = $_GET[c_id]."_".$_GET[sc_id]; break; } if($hash["l_nav_".$_GET[c_id]."_".$_GET[sc_id]]) $sub_html_title = $hash["l_nav_".$_GET[c_id]."_".$_GET[sc_id]]." - "; $smarty->assign("html_title",$sub_html_title.$hash["l_nav_".$_GET[c_id]]." - ".$hash[l_html_title]); if($hash["l_nav_".$_GET[c_id]."_".$_GET[sc_id]]) $h1_title = $hash["l_nav_".$_GET[c_id]."_".$_GET[sc_id]]; else $h1_title = $hash["l_nav_".$_GET[c_id]]; $smarty->assign("h1_title",$h1_title); if(file_exists(PATH_ROOT.$_lang."/content_$_site.tpl")) $content= $smarty->fetch(PATH_ROOT.$_lang."/content_$_site.tpl"); if(file_exists(TEMPLATE_DIR."inc/$_site.tpl")) $content= $smarty->fetch(TEMPLATE_DIR."inc/$_site.tpl"); $smarty->assign("_content",$content); $smarty->display("site.tpl"); // initialize easy2edit include(PATH_ROOT . "easy2edit/index.php"); ?>