<?php
////////////////////////////////////////////////////////////////////////
// Breeze Website Builder
// Copyright Silver Dolphin Solutions, LLC, Edward Lemmers, P.E.
// For licensing, see license.txt.
// Created: 2/17/2015	ELL


	include ("check_session.php");
	
	$page_name = $_REQUEST['page_name'];
	$use_table_structure = (isset($_REQUEST['use_table_structure']) ? 1 : 0);
	$use_table_structure_mobile = (isset($_REQUEST['use_table_structure_mobile']) ? 1 : 0);
	$disable_site_styles = (isset($_REQUEST['disable_site_styles']) ? 1 : 0);
	$body_onload = (isset($_REQUEST['body_onload']) ? 1 : 0);
	
	$query = "UPDATE " . BWB_TABLE_PREFIX . "page_data SET use_table_structure = '$use_table_structure', use_table_structure_mobile = '$use_table_structure_mobile', disable_site_styles = '$disable_site_styles', body_onload = '$body_onload' WHERE page_name = '$page_name'";
	$result = $bwb_dbh->query($query);
	
	$_SESSION['last_page_edited'] = $page_name;
	echo 1;
?>