diff options
Diffstat (limited to 'mod/exporttest')
| -rw-r--r-- | mod/exporttest/index.php | 27 | ||||
| -rw-r--r-- | mod/exporttest/start.php | 15 | ||||
| -rw-r--r-- | mod/exporttest/views/default/exporttest/main.php | 12 | ||||
| -rw-r--r-- | mod/exporttest/views/default/exporttest/outputxml.php | 5 |
4 files changed, 0 insertions, 59 deletions
diff --git a/mod/exporttest/index.php b/mod/exporttest/index.php deleted file mode 100644 index e057ab094..000000000 --- a/mod/exporttest/index.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php - require_once("../../engine/start.php"); - - global $CONFIG; - - $guid = get_input("guid"); - $_SESSION['id'] = 2; - - // Get the user - $owner_id = page_owner(); - - if ($guid) - { - 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)); - page_draw("Export a GUID",$body); - } -?>
\ No newline at end of file diff --git a/mod/exporttest/start.php b/mod/exporttest/start.php deleted file mode 100644 index d25e5c06d..000000000 --- a/mod/exporttest/start.php +++ /dev/null @@ -1,15 +0,0 @@ -<?php - - function exporttest_init($event, $object_type, $object = null) { - - global $CONFIG; - - add_menu("Export GUID",$CONFIG->wwwroot . "mod/exporttest/",array( - menu_item("The GUID Exporter",$CONFIG->wwwroot."mod/exporttest/"), - )); - } - - - // Make sure test_init is called on initialisation - register_event_handler('init','system','exporttest_init'); -?>
\ No newline at end of file diff --git a/mod/exporttest/views/default/exporttest/main.php b/mod/exporttest/views/default/exporttest/main.php deleted file mode 100644 index d209b71a7..000000000 --- a/mod/exporttest/views/default/exporttest/main.php +++ /dev/null @@ -1,12 +0,0 @@ -<form> - <input type="hidden" name="owner_id" value="<?php echo $vars['owner_id']; ?>" /> - GUID : <input type="text" value="" name="guid" /> <input type="submit" name="export" value="export" /> -</form> - -<form method="post"> - <input type="hidden" name="owner_id" value="<?php echo $vars['owner_id']; ?>" /> - <input type="hidden" name="action" value="import" /> - IMPORT : - <textarea name="xml" cols="50" rows="10"></textarea> - <input type="submit" name="import" value="import" /> -</form>
\ No newline at end of file diff --git a/mod/exporttest/views/default/exporttest/outputxml.php b/mod/exporttest/views/default/exporttest/outputxml.php deleted file mode 100644 index 1442aa3f1..000000000 --- a/mod/exporttest/views/default/exporttest/outputxml.php +++ /dev/null @@ -1,5 +0,0 @@ -<?php - header("Content-type: text/xml"); - - echo $vars['xml']; -?>
\ No newline at end of file |
