From 12d286988dbcdff5aad3620838e7ab777ac67a92 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 14 Oct 2009 20:41:19 +0000 Subject: Standardized actions/* git-svn-id: http://code.elgg.org/elgg/trunk@3542 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/import/opendd.php | 56 +++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'actions/import/opendd.php') diff --git a/actions/import/opendd.php b/actions/import/opendd.php index 9f01c879d..b91a38dc4 100644 --- a/actions/import/opendd.php +++ b/actions/import/opendd.php @@ -1,30 +1,30 @@ \ No newline at end of file +// Safety +admin_gatekeeper(); +action_gatekeeper(); + +// Get input +$data = get_input('data', '', false); + +// Import +$return = import($data); + +if ($return) { + system_message(elgg_echo('importsuccess')); +} else { + register_error(elgg_echo('importfail')); +} + +forward($_SERVER['HTTP_REFERER']); \ No newline at end of file -- cgit v1.2.3