<?php
////////////////////////////////////////////////////////////////////////
// Breeze Website Builder
// Copyright Silver Dolphin Solutions, LLC, Edward Lemmers, P.E.
// For licensing, see license.txt.
//
	include ("check_session.php");

	$event_id = $_REQUEST['event_id'];
//	$filter_city = $_REQUEST['filter_city'];
//	$filter_event_name = $_REQUEST['filter_event_name'];
//	$filter_location = $_REQUEST['filter_location'];
	$group_id = $_REQUEST['group_id'];
	
	$query = "DELETE FROM " . BWB_TABLE_PREFIX . "events WHERE event_id = '$event_id'";
	$cnt = $bwb_dbh->exec($query);
	
	if (isset($group_id) && ($group_id > 0))	{
		$query = "DELETE FROM " . BWB_TABLE_PREFIX . "events WHERE group_id = '$group_id'";
		$cnt = $bwb_dbh->exec($query);
	}
	
	echo 1;
	
//	header("Location: manage_events.php?deleted_event_id=$event_id&filter_city=$filter_city&filter_event_name=$filter_event_name&filter_location=$filter_location");
	
?>

