Example #1
0
     $lang_set = $_SESSION['lang'];
 } else {
     $lang_set = 'en';
     if ($hotel->idiomaId) {
         $lang_set = getIdioma($hotel->idiomaId)->codigo;
     }
     $smarty->assign('lang', $lang_set);
     $_SESSION['lang'] = $lang_set;
 }
 $smarty->configLoad($lang_set . '.conf');
 setlocale(LC_ALL, Core_Util_General::getLocaleName($lang_set));
 if ($_REQUEST['a']) {
     $afiliado_id = urldecode(Encrypter::decrypt($_REQUEST['a'], 'afiliado'));
     if (is_numeric($afiliado_id)) {
         $month = 2592000 + time();
         setcookie('afiliado', $_REQUEST['a'], $month, "/", "." . $smarty->getConfigVariable('sistema_nombre_web'));
     }
 }
 /*
     if(isset($_REQUEST['m'])) {
         $smarty->assign('money', $_REQUEST['m']);
         $end_url .= '/m:' . $_REQUEST['m'];
         $smarty->assign('currency', getMonedaByCodigo($_REQUEST['m'])->simbolo);
         $money = $_REQUEST['m'];
     } else {
         $smarty->assign('money', 'EUR');
         $smarty->assign('currency', getMonedaByCodigo('EUR')->simbolo);
     }*/
 if ($hotel->precioMinimo) {
     $monedaPrecioMinimo = getMoneda($hotel->precioMinimo->monedaId);
     if ($money != $monedaPrecioMinimo->codigo) {