<?php
////////////////////////////////////////////////////////////////////////
// Breeze Website Builder
// Copyright Silver Dolphin Solutions, LLC, Edward Lemmers, P.E.
// For licensing, see license.txt.
// Created: 6/3/2009
// Revised: 2/7/2012	ELL
// Added reference to user files folder constant.
// Revised: 10/2/2015	ELL
// Modified from assigning new head by parsing page template file to updating head name in page data table.
	
	include ("check_session.php");
	
	$page_name = $_REQUEST['page_name'];
	$head_name = $_REQUEST['head_name'];
	
	$query = "UPDATE " . BWB_TABLE_PREFIX . "page_data SET head_name='$head_name' WHERE page_name='$page_name'";
	$cnt = $bwb_dbh->exec($query);

	echo $cnt . "@@@@@" .  $head_name . "@@@@@" . $page_name;
?>