Parameter Missing") );
PageCode();
exit;
}
if(!filter_var($mememail, FILTER_VALIDATE_EMAIL))
{
$_page['name_index'] = 0;
$_page_cont[0]['page_main_code'] = MsgBox( _t("Invalid Email Address") );
PageCode();
exit;
}
$checkemail = db_arr("SELECT `Email` FROM `Profiles` WHERE `ID` = '$memid'");
$checkemail = $checkemail['Email'];
if ($checkemail == $mememail)
{
$_page['name_index'] = 0;
$_page_cont[0]['page_main_code'] = MsgBox( _t("You will no longer receive notification emails") );
db_res( "UPDATE `Profiles` SET `EmailNotify` = '0' WHERE `ID` = '$memid'");
PageCode();
exit;
}
else
{
$_page['name_index'] = 0;
$_page_cont[0]['page_main_code'] = MsgBox( _t("Member number does not match email address") );
PageCode();
exit;
}
PageCode();
// --------------- page components functions
/**
* page code function
*/
function PageCompMainCode()
{
global $oTemplConfig;
}
?>