<?php

	//  Copyright (c) 2004 randshop
	//  http://www.randshop.com
	//
	//  Unter Lizenz von randshop
	//	
	//	Letzte Bearbeitung: 25.10.2004

	session_start();

	// PHP-Includes
	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.artikel.inc.php");
	include_once(DATEIPFAD . "includes/functions.shopeinstellung.inc.php");
	include_once(DATEIPFAD . "includes/session_register.inc.php");
	include_once(DATEIPFAD . "includes/functions.global.inc.php");
	include_once(DATEIPFAD . "includes/functions.lieferstatus.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");

    $_SESSION["cs_referer"] = $_SERVER["HTTP_REFERER"];
	
	
	// ********************************************************************************
	// ** Lieferstatus einlesen
	// ********************************************************************************

	$tpl_lieferstatusarray = GetLieferstatusDataArray("", "", TABLE_LIEFERSTATUS . ".sort", "ASC", $_SESSION["languageid"]);

	// Template
	$contentFile = DATEIPFAD . "templates/" . $rowTemp->name . "/website/artikel/lieferstatus.tpl";

	// Letzte globale Zusammenfassung z.B. fuer Warenkorbanzeige, bevor das Template geladen wird.
	include_once(DATEIPFAD . "includes/footer.inc.php");

	// Template
    if($mobilestyle) {
        include_once(DATEIPFAD . "templates/" . $rowTemp->name . "/mobile/layout.phtml");
    } else {
        include_once(DATEIPFAD . "templates/" . $rowTemp->name . "/website/index.tpl");
    }
	
	@mysql_close($db);

?>
