diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-17 08:07:25 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-17 08:07:25 +0000 |
commit | 35ad4f06a100ff23556f598c0fb51724b79f2bd0 (patch) | |
tree | 08347467670537000d727513f33309d394858856 /mod/exporttest | |
parent | 472aa15c24655c4d978019edaa4669700964325d (diff) | |
download | elgg-35ad4f06a100ff23556f598c0fb51724b79f2bd0.tar.gz elgg-35ad4f06a100ff23556f598c0fb51724b79f2bd0.tar.bz2 |
removed guid exporter, exporttest and apitest from core and put them into the plugins folder
git-svn-id: https://code.elgg.org/elgg/trunk@941 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/exporttest')
-rw-r--r-- | mod/exporttest/index.php | 40 | ||||
-rw-r--r-- | mod/exporttest/start.php | 24 | ||||
-rw-r--r-- | mod/exporttest/views/default/exporttest/main.php | 22 | ||||
-rw-r--r-- | mod/exporttest/views/default/exporttest/outputxml.php | 15 |
4 files changed, 0 insertions, 101 deletions
diff --git a/mod/exporttest/index.php b/mod/exporttest/index.php deleted file mode 100644 index f3010d971..000000000 --- a/mod/exporttest/index.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php - /** - * Elgg export test - * - * @package ElggDevTools - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Marcus Povey <marcus@marcus-povey.co.uk> - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ - - require_once("../../engine/start.php"); - - global $CONFIG; - - $guid = get_input("guid"); - $action = get_input("action"); - - // Get the user - $owner_id = page_owner(); - - if ($guid) - { - echo elgg_view_layout("one_column", elgg_view("exporttest/outputxml", array("xml" => export($guid)))); - } - else if ($action=='import') - { - $area1 = print_r(import(get_input('xml')), true); - $area1 .= elgg_view("exporttest/main", array("owner_id" => $owner_id)); - - $body = elgg_view_layout("one_column", $area1); - - page_draw("Import results",$body); - } - else - { - $body = elgg_view_layout("one_column", 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 3e1817878..000000000 --- a/mod/exporttest/start.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php - /** - * Elgg export test - * - * @package ElggDevTools - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Marcus Povey <marcus@marcus-povey.co.uk> - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ - - 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_elgg_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 ea338052b..000000000 --- a/mod/exporttest/views/default/exporttest/main.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - /** - * Elgg export test - * - * @package ElggDevTools - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Marcus Povey <marcus@marcus-povey.co.uk> - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ -?> - -<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" action="<?php echo $vars['url']; ?>action/import/odd"> - IMPORT : - <textarea name="data" 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 92c971ccd..000000000 --- a/mod/exporttest/views/default/exporttest/outputxml.php +++ /dev/null @@ -1,15 +0,0 @@ -<?php - /** - * Elgg export test - * - * @package ElggDevTools - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Marcus Povey <marcus@marcus-povey.co.uk> - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ - - header("Content-type: text/xml"); - - echo $vars['xml']; -?>
\ No newline at end of file |