aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/savedraft.php
blob: fd8197abd6893e4b89ff82f58e49bda35cb5a6c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

	/**
	 * Elgg blog autosaver
	 * 
	 * @package ElggBlog
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Curverider Ltd <info@elgg.com>
	 * @copyright Curverider Ltd 2008-2010
	 * @link http://elgg.com/
	 */

	// Load engine
		require_once(dirname(dirname(dirname(__FILE__))) . '/engine/start.php');
		gatekeeper();
		
	// Get input data
		$title = $_POST['blogtitle'];
		$body = $_POST['blogbody'];
		$tags = $_POST['blogtags'];
	
		$_SESSION['user']->blogtitle = $title;
		$_SESSION['user']->blogbody = $body;
		$_SESSION['user']->blogtags = $tags;
		
?>