session_start();
if(isset($_SESSION['username'])){
header("Location: loguit.php");
}
else{
$login = false;
}
//Als je de cookie wilt verwijderen, doe dat
if(isset($_GET['delcookie']) && $_GET['delcookie'] == 1){
setcookie("cookienaam", "", time()-60*60*24*100, "/");
setcookie("cookieww", "", time()-60*60*24*100, "/");
echo "";
}
include "layout.php";
echo"".$begin;
?>
}else{?>}?>}else{?>}?>}else{?>}?>
"; } //Als de cookie bestaat, ... if(isset($_COOKIE['cookienaam']) && isset($_COOKIE['cookieww'])){ $gebnaam = $_COOKIE['cookienaam']; $wwoord = $_COOKIE['cookieww']; $koekje = true; } else{ $gebnaam = NULL; $wwoord = NULL; $koekje = false; } ?>