Location: PHPKode > projects > Freeway > freeway_1_5_Alpha/events_unsubscribe.php
<?php
/*
	osCommRes, Services Oline 
	http://www.oscommres.com 
	Copyright (c) 2005 osCommRes 
	
	Freeway eCommerce 
	http://www.openfreeway.org
	Copyright (c) 2007 ZacWare

	Released under the GNU General Public License
*/


// Set flag that this is a parent file
	define( '_FEXEC', 1 );
	

	require('includes/application_top.php');
	if ($FREQUEST->getvalue('cID')!='' && is_numeric($FREQUEST->getvalue('cID')))
	{
		$customers_id=$FREQUEST->getvalue('cID','int');
		tep_db_query("UPDATE " . TABLE_CUSTOMERS . " set customers_reserve_newsletter='0' where customers_id='" . tep_db_input($customers_id) . "'");
		$messageStack->add_session('account', 'Unsubscribtion to notifications of reservations,waiting lists is success', 'success');
	}
	tep_redirect(tep_href_link(FILENAME_ACCOUNT,'','SSL'));
?>
Return current item: Freeway