<?php
	//  Copyright (c) 2004-2007 randshop
	//  http://www.randshop.com
	//
	//  Unter Lizenz von randshop
	//	
	//	Letzte Bearbeitung: 11.07.2007

	session_start(); 

	// PHP-Includes
	include_once("../../conf/config.inc.php");
	include_once("../../conf/db.inc.php");
	include_once(DATEIPFAD . "includes/shopinitialize.inc.php");
	include_once(DATEIPFAD . "includes/functions.kunden.inc.php");
	include_once(DATEIPFAD . "includes/functions.land.inc.php");
	include_once(DATEIPFAD . "includes/functions.kategorie.inc.php");
	include_once(DATEIPFAD . "includes/functions.global.inc.php");
	include_once(DATEIPFAD . "includes/session_register.inc.php");

	if (@fopen(DATEIPFAD . "includes/language/langu_" . $_SESSION["languageisocode"] . ".inc.php",r)) {
		include_once(DATEIPFAD . "includes/language/langu_" . $_SESSION["languageisocode"] . ".inc.php");
	} else {
		include_once(DATEIPFAD . "includes/language/langu_de.inc.php");
	}	
	
	if (KUNDENGRUPPEN) {
		include_once(DATEIPFAD . "includes/functions.mod.kundengruppen.inc.php");
	} else {
		include_once(DATEIPFAD . "includes/functions.kundengruppen.inc.php");
	}
	
	
	// Kunde einlesen
	$KundenObject = GetKundenDetail($_SESSION["mail"]);
	
	$tpl_titel = $KundenObject->titel;
	$tpl_anrede = $KundenObject->anrede;
	$tpl_vorname = $KundenObject->vorname;
	$tpl_nachname = $KundenObject->nachname;
	
	
	// Header
	include_once(DATEIPFAD . "includes/header.inc.php");
	
	// Letzte globale Zusammenfassung z.B. fuer Warenkorbanzeige, bevor das Template geladen wird.
	include_once(DATEIPFAD . "includes/footer.inc.php");
	
	
	$contentFile = DATEIPFAD . "templates/" . $rowTemp->name . "/website/user/registrieren_danke.tpl";
	
	// Template
	include_once(DATEIPFAD . "templates/" . $rowTemp->name . "/website/index.tpl");
	
	@mysql_close($db);

?>
