aboutsummaryrefslogtreecommitdiff
path: root/mod/guidbrowser/index.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-03 13:52:16 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-03 13:52:16 +0000
commita210d4401a00ab875bf29aa189735525551ab7eb (patch)
treebaec0df92793f3369c028ce6a6d466f601fa976d /mod/guidbrowser/index.php
parent7bd568ce9ab0754df711f7b5b6fc3281e14cdfeb (diff)
downloadelgg-a210d4401a00ab875bf29aa189735525551ab7eb.tar.gz
elgg-a210d4401a00ab875bf29aa189735525551ab7eb.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Basic guid browser git-svn-id: https://code.elgg.org/elgg/trunk@391 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/guidbrowser/index.php')
-rw-r--r--mod/guidbrowser/index.php35
1 files changed, 33 insertions, 2 deletions
diff --git a/mod/guidbrowser/index.php b/mod/guidbrowser/index.php
index 71b852bb6..5b0a8c09d 100644
--- a/mod/guidbrowser/index.php
+++ b/mod/guidbrowser/index.php
@@ -9,12 +9,43 @@
* @link http://elgg.com/
*/
- // Load Elgg engine
- require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+ require_once("../../engine/start.php");
+
+ $_SESSION['guid'] = 2;
+ $_SESSION['id'] = 2;
+
+ $eguid = get_input('eguid');
+ $limit = get_input('limit', 10);
+ $offset = get_input('offset');
+ $type = get_input('type');
+ $subtype = get_input('subtype');
+
+ $action = get_input('subtype');
+ $key = get_input('key');
+ $value = get_input('value');
+
+ echo "ACTION $callaction";
+
+
+ switch ($callaction)
+ {
+ case 'metadata' : echo "META";
+ if (!create_metadata($eguid, $key, $value))
+ echo "Could not create metadata with $guid:$key:$value";
+ break;
+
+ case 'annotations' : echo "ANNO";
+ if (!create_annotation($eguid, $key, $value))
+ echo "Could not create metadata with $guid:$key:$value";
+ break;
+ }
// Get the current page's owner
$page_owner = page_owner_entity();
+ // Display
+ $body = guidbrowser_display($offset, $limit, $type, $subtype);
+
// Display page
page_draw(elgg_echo("guidbrowser"), $body);
?> \ No newline at end of file