<?php
////////////////////////////////////////////////////////////////////////
// Breeze Website Builder
// Copyright Silver Dolphin Solutions, LLC, Edward Lemmers, P.E.
// For licensing, see license.txt.
// Revised: 11/9/2016	ELL
// Revised: 2/28/2018	ELL
// Converted from each style sheet using individual classes and css tables to using site_classes and site_css tables.
//
	include ("check_session.php");

	$name = $_REQUEST['name'];
	
	$query = "DELETE FROM `" . BWB_TABLE_PREFIX . "style_sheets` WHERE `name` = '$name'";
	$cnt = $bwb_dbh->exec($query);
	
	$query = "DELETE FROM `" . BWB_TABLE_PREFIX . "site_classes` WHERE style_sheet = '" . $name . "'";
	$cnt = $cnt + $bwb_dbh->exec($query);
	
	$query = "DELETE FROM `" . BWB_TABLE_PREFIX . "site_css` WHERE style_sheet = '" . $name . "'";
	$cnt = $cnt + $bwb_dbh->exec($query);
	
	echo $cnt;
?>
