<?php
/****************************************************************/
/* ATutor														*/
/****************************************************************/
/* Copyright (c) 2002-2009										*/
/* Inclusive Design Institute                                   */
/* http://atutor.ca												*/
/*                                                              */
/* This program is free software. You can redistribute it and/or*/
/* modify it under the terms of the GNU General Public License  */
/* as published by the Free Software Foundation.				*/
/****************************************************************/
// $Id$

define('AT_INCLUDE_PATH', '../../../include/');
require(AT_INCLUDE_PATH.'vitals.inc.php');

global $db;

if (trim($_POST['field']) <> "" && trim($_POST['value']) <> "")
{
	$fields = explode('-', $_POST['field']);
	$content_id = intval($fields[1]);
	
	if ($content_id > 0)
	{
		
		$sql	= "UPDATE %scontent SET title='%s' WHERE content_id=%d";
		$row = queryDB($sql, array(TABLE_PREFIX, $_POST['value'], $content_id));
	}
}
?>