user_info['user_id']; if(isset($_POST["optout"])) { $sql="UPDATE `se_users` SET `se_users`.`user_pdp_optout` = ".$_POST["optout"]." WHERE `se_users`.`user_id` = ".$uid; $query=$database->database_query($sql) or $em=$em.$database->database_error(); if($em==""){ $user->user_info['user_pdp_optout']=$_POST["optout"]; if($_POST["optout"]==1) { $frmsubmsg='
You have successfully opted-out of receiving this type of email.
'; } if($_POST["optout"]==0) { $frmsubmsg= 'You have successfully opted-in to receiving this type of email.
'; } } else{$em='We were unable to complete your request. Please resubmit the form.';} } // ASSIGN VARIABLES AND INCLUDE FOOTER $smarty->assign('thetitle', 'BateWorld Email Subscriptions'); $smarty->assign('thedescription','Bateworld is concern about spam and privacy. Use this page to opt-in and opt-put of important emails.'); $smarty->assign('thekeywords','bateworld, men\'s masturbation'); $smarty->assign('msize', $msize); $smarty->assign('em', $em); $smarty->assign('frmsubmsg', $frmsubmsg); include_once "/home/thebate/public_html/include/analytics/email_subscriptions_stats.php"; include "footer.php"; ?>