session_start(); header('Cache-control: private'); // IE 6 FIX if(isSet($_GET['lang'])) { $lang = $_GET['lang']; // register the session and set the cookie $_SESSION['lang'] = $lang; setcookie('lang', $lang, time() + (3600 * 24 * 30)); } else if(isSet($_SESSION['lang'])) { $lang = $_SESSION['lang']; } else if(isSet($_COOKIE['lang'])) { $lang = $_COOKIE['lang']; } else { $lang = 'ca'; } switch ($lang) { case 'ca': $lang_file = 'catala.php'; break; case 'es': $lang_file = 'castellano.php'; break; case 'en': $lang_file = 'english.php'; break; default: $lang_file = 'catala.php'; } $selected_lang = $lang; include_once 'languages/'.$lang_file; ?>
1 2 3 4 5

360º

Carrer dels Boters, 4 08002
Barcelona Tel.: +34 93 301 13 25
e-Mail: art@montfalcon.com