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 ++++++ mod/exporttest/views/default/exporttest/main.php | 8 ++++++++ 2 files changed, 14 insertions(+) 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)); diff --git a/mod/exporttest/views/default/exporttest/main.php b/mod/exporttest/views/default/exporttest/main.php index 0d24df3fe..01b5adac4 100644 --- a/mod/exporttest/views/default/exporttest/main.php +++ b/mod/exporttest/views/default/exporttest/main.php @@ -1,4 +1,12 @@
GUID : +
+ +
+ + + IMPORT : + +
\ No newline at end of file -- cgit v1.2.3