if (session_id() == '') {
error_reporting(0);
session_start();
}
define('LANGUAGE_GERMAN', 1);
define('LANGUAGE_SPANISH', 2);
$id=$_GET['id'];
$setlanguage=$_GET['setlanguage'];
if (!isset($_SESSION['language'])) {
$_SESSION['language'] = LANGUAGE_GERMAN;
}
if (isset($setlanguage)) {
if ($setlanguage == LANGUAGE_GERMAN) {
$_SESSION['language'] = LANGUAGE_GERMAN;
}
if ($setlanguage == LANGUAGE_SPANISH) {
$_SESSION['language'] = LANGUAGE_SPANISH;
}
}
$_SESSION['currentid'] = $id;
switch ($_SESSION['language']) {
case 1 : $languagepath = 'german';break;
case 2 : $languagepath = 'spanish';break;
default : $languagepath = 'german';break;
}
switch ($id) {
case '1' : include("./php/$languagepath/home.php");break;
case '2' : include("./php/$languagepath/unterricht.php");break;
case '3' : include("./php/$languagepath/schnupperkurse.php");break;
case '4' : include("./php/$languagepath/aktuelles.php");break;
case '5' : include("./php/$languagepath/lehrer.php");break;
case '6' : include("./php/$languagepath/studio.php");break;
case '7' : include("./php/$languagepath/videos.php");break;
case '8' : include("./php/$languagepath/galerie.php");break;
case '9' : include("./php/$languagepath/partner.php");break;
case '10' : include("./php/$languagepath/anmeldungen.php");break;
case '11' : include("./php/$languagepath/kontakt.php");break;
case '12' : include("./php/$languagepath/newsletter.php");break;
case '13' : include("./php/$languagepath/kroatien.php");break;
case '14' : include("./php/$languagepath/impressum.php");break;
case '15' : include("./php/$languagepath/newuser.php");break;
case '16' : include("./php/$languagepath/offeneklassen.php");break;
case '17' : include("./php/$languagepath/tangotanztechnik.php");break;
case '18' : include("./php/$languagepath/commeilfaut.php");break;
case '19' : include("./php/$languagepath/ausstellungen.php");break;
case '20' : include("./php/$languagepath/intercambio.php");break;
case '21' : include("./php/$languagepath/links.php");break;
case '22' : include("./php/$languagepath/milongaklasse.php");break;
case '23' : include("./php/$languagepath/preise.php");break;
default : include("./php/$languagepath/home.php");break;
}
?>