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

	session_start();
	
	//elseif(file_exists("./install")) {
	//	header("location: install/delete.php");
	//}

	// SourceID = 1	
	
	// Hauptkonfigurationsdatei
	include_once("../../conf/config.inc.php");
	include_once(DATEIPFAD . "conf/db.inc.php");
	include_once(DATEIPFAD . "includes/shopinitialize.inc.php");
	include_once(DATEIPFAD . "includes/functions.global.inc.php");
	include_once(DATEIPFAD . "includes/functions.artikel.inc.php");
	if(KUNDENGRUPPEN) {
		include_once(DATEIPFAD . "includes/functions.mod.kundengruppen.inc.php");
	} else {
		include_once(DATEIPFAD . "includes/functions.kundengruppen.inc.php");
	}
	include_once(DATEIPFAD . "includes/functions.kategorie.inc.php");
	include_once(DATEIPFAD . "includes/session_register.inc.php");
	include_once(DATEIPFAD . "includes/functions.newsletter.inc.php");
	if(file_exists(DATEIPFAD . 'includes/functions.mod.cms.inc.php')){
		include_once(DATEIPFAD . "includes/functions.mod.cms.inc.php");
	}	
	include_once(DATEIPFAD . "includes/functions.statistik.inc.php");
	// Spracheninclude
	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");
	}	
	// Header
	include_once(DATEIPFAD . "includes/header.inc.php");
	unset($_SESSION["kategorieid"]);

	
	
	//ContentFile
	if ($_GET["action"]=="del") {
		$contentFile = DATEIPFAD . "templates/" . $rowTemp->name . "/website/newsletter/delete.tpl";
	} else {
		$contentFile = DATEIPFAD . "templates/" . $rowTemp->name . "/website/newsletter/index.tpl";
	}
	
	
	
	
	// Letzte globale Zusammenfassung z.B. fuer Warenkorbanzeige, bevor das Template geladen wird.
	include_once(DATEIPFAD . "includes/footer.inc.php");


// Template	
include_once(DATEIPFAD . "templates/" . $rowTemp->name . "/website/index.tpl");

	
@mysql_close($db);
?>
