define( '_VALID_AEZ', 1 ); header("Content-type: text/html; charset=utf-8"); include 'admin/includes/config.inc.php'; include 'admin/includes/functions.inc.php'; define("GLB_Root", $_SERVER["DOCUMENT_ROOT"]); define("GLB_Website", "http://".$_SERVER["HTTP_HOST"]."/"); define("GLB_RootDir", $_SERVER["DOCUMENT_ROOT"]."/".""); session_start(); session_register('winkelwagen'); session_register('dag'); session_register('maand'); session_register('jaar'); session_register('kaart'); session_register('brief'); if (isset($_POST['soort'])) { //echo $_POST['soort']; $_SESSION["SES_Soort"] = $_POST['soort']; $_SESSION["SES_Land"] = $_POST['land']; $_SESSION["SES_Prijsklasse"] = $_POST['prijsklasse']; $_SESSION["SES_Action"] = $_POST['action']; echo ""; exit(); } if ($_SESSION["SES_Action"] != 'filter' or $_GET["subpage"] != "zoeken") { $_SESSION["SES_Soort"] = ""; $_SESSION["SES_Land"] = ""; $_SESSION["SES_Prijsklasse"] = ""; } if(!empty($_POST['my_url'])){ die('Have a nice day elsewhere.'); } if ($_POST['kaartcheck'] == 'checkbox') { $_SESSION['kaart'] = $_POST['kaart']; } if ($_POST['briefcheck'] == 'checkbox') { $target_path = "uploaded_letter/"; $target_path = $target_path . basename( $_FILES['brief']['name']); if(move_uploaded_file($_FILES['brief']['tmp_name'], $target_path)) { $_SESSION['brief'] = basename( $_FILES['brief']['name']); } } if (isset($_POST['maand'])) { $_SESSION['maand'] = $_POST['maand']; } if (isset($_POST['jaar'])) { $_SESSION['jaar'] = $_POST['jaar']; } if (isset($_POST['dag'])) { $_SESSION['dag'] = $_POST['dag']; } if ($_GET['action'] == 'filter') { $_SESSION['SES_Action'] = 'filter'; $_SESSION['SES_Soort'] = $_GET['soort']; } if ($_SESSION['SES_Soort'] == 'Geschenken') { header('Location: http://www.drankenland.nl/shop/geschenken/'); } $allowed_pages = array('home', 'wie-zijn-wij', 'klantenservice', 'nieuws', 'contact', 'leveringsvoorwaarden', 'algemene-voorwaarden', 'shop', 'vraag-en-antwoord', 'nieuws-en-tips', 'tell-a-friend'); if ($_GET['page'] == 'shop' AND $_GET['subpage'] == 'logout') { setcookie("pwdfront","",time() -86400,"/",""); setcookie("userfront","",time() -86400,"/",""); } if ($_GET['page'] == 'shop' AND $_POST['submitaction'] == 'new_account_add') { setcookie("pwdfront",$_POST['password'],0,"/",""); setcookie("userfront",$_POST['email'],0,"/",""); } if (empty($_GET['page'])) { $_GET['page'] = 'home'; $controle_page = 'home'; } elseif (!in_array($_GET['page'], $allowed_pages)) { header("HTTP/1.0 404 Not Found"); exit; } //TELL A FRIEND if ($_SESSION['SES_Action'] == 'tellafriend') { $name = $_POST['uw_naam']; $afzender = $_POST['uw_email']; $bcc = "verkoop@drankenland.nl, robin@drankenland.nl"; $onderwerp = "Maak kennis met Drankenland.nl\n"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "From: ". $name . " <" . $afzender . ">\n"; $headers .= "BCC: ".$bcc."\n"; $content_mail = '