From b8c26d7300e672f90cc1c1a62e4a1ea0c67e4a09 Mon Sep 17 00:00:00 2001 From: icewing Date: Tue, 1 Apr 2008 14:10:19 +0000 Subject: Marcus Povey * Added import block git-svn-id: https://code.elgg.org/elgg/trunk@306 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/exporttest/index.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/exporttest/index.php') diff --git a/mod/exporttest/index.php b/mod/exporttest/index.php index 0a4aea8cd..e057ab094 100644 --- a/mod/exporttest/index.php +++ b/mod/exporttest/index.php @@ -13,6 +13,12 @@ { echo elgg_view("exporttest/outputxml", array("xml" => export($guid))); } + else if ($action=='import') + { + $body = import(get_input('xml')); + $body .= elgg_view("exporttest/main", array("owner_id" => $owner_id)); + page_draw("Import results",$body); + } else { $body = elgg_view("exporttest/main", array("owner_id" => $owner_id)); -- cgit v1.2.3