include ('config.php');
include ('includes/main.php');
ob_start();
// Check nach vorhandene Cookies
cookiecheck();
// Ckecken ob User eingeloggt ist
if(isset($_COOKIE["ava_username"])){
// Cookiedaten in Variablen übernehmen
$user = $_COOKIE['ava_username'];
$code = $_COOKIE['ava_code'];
$userid = $_COOKIE['ava_userid'];}
// Template einfügen
include ('.'.$template_url.'/index.php');
ob_end_flush();
?>