<?php
if ( isset($_GET['opt']) && $_GET['opt']=='out'){
    $value = 1;
    setcookie("bx_optout", $value, time()+157680000);  /* expire in 5 years */
}else if ( isset($_GET['opt']) && $_GET['opt']=='in') {
    setcookie("bx_optout", "", time()-3600);
}
header("Location: https://betweendigital.com/opt-out");
exit();
?>
