2 /****************************************************************/
\r
4 /****************************************************************/
\r
5 /* Copyright (c) 2002-2009 */
\r
6 /* Inclusive Design Institute */
\r
7 /* http://atutor.ca */
\r
9 /* This program is free software. You can redistribute it and/or*/
\r
10 /* modify it under the terms of the GNU General Public License */
\r
11 /* as published by the Free Software Foundation. */
\r
12 /****************************************************************/
\r
15 define('AT_INCLUDE_PATH', '../../../include/');
\r
16 require(AT_INCLUDE_PATH.'vitals.inc.php');
\r
20 if (trim($_POST['field']) <> "" && trim($_POST['value']) <> "")
\r
22 $fields = explode('-', $_POST['field']);
\r
23 $content_id = intval($fields[1]);
\r
25 if ($content_id > 0)
\r
27 $sql = "UPDATE ".TABLE_PREFIX."content SET title='".$addslashes($_POST['value'])."' WHERE content_id=$content_id";
\r
28 $result = mysql_query($sql, $db);
\r
29 $row = mysql_fetch_array($result);
\r