aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/savedraft.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/savedraft.php')
-rw-r--r--mod/blog/savedraft.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/mod/blog/savedraft.php b/mod/blog/savedraft.php
new file mode 100644
index 000000000..fd8197abd
--- /dev/null
+++ b/mod/blog/savedraft.php
@@ -0,0 +1,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;
+
+?> \ No newline at end of file