aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-19 13:07:16 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-19 13:07:16 +0000
commit1810fa9e2beeaf5b5bcb0dde80c610fafd3cfa21 (patch)
tree353902f8acd4849865e7830eef1622065bdb1272 /index.php
parente1bf2f649ba080d331103fbebb4d093ef76382eb (diff)
downloadelgg-1810fa9e2beeaf5b5bcb0dde80c610fafd3cfa21.tar.gz
elgg-1810fa9e2beeaf5b5bcb0dde80c610fafd3cfa21.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* API now uses PAM git-svn-id: https://code.elgg.org/elgg/trunk@249 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'index.php')
-rw-r--r--index.php26
1 files changed, 20 insertions, 6 deletions
diff --git a/index.php b/index.php
index a96f35df3..2c7d2810f 100644
--- a/index.php
+++ b/index.php
@@ -14,8 +14,15 @@
/**
* Start the Elgg engine
*/
- require_once(dirname(__FILE__) . "/engine/start.php");
-
+ require_once(dirname(__FILE__) . "/engine/start.php");
+
+
+
+ // Testing ///////
+ if ($_SESSION['id']==-1) $_SESSION['id'] = 1;
+
+
+
/**
* Check to see if user is logged in, if not display login form
**/
@@ -89,7 +96,7 @@ error_log("GETTIGN SITE ".$_SESSION['id']. " " . print_r($site, true));
// get site metadata
error_log("SITE Metadata : " . print_r($site->getMetadata("Metaname"), true));
*/
-
+/*
// get site annotations
$site = get_site_by_url("http://localhost/");
error_log("GETTIGN SITE ".$_SESSION['id']. " " . print_r($site, true));
@@ -128,10 +135,17 @@ error_log("GETTIGN SITE ".$_SESSION['id']. " " . print_r($site, true));
error_log("SITE Metadata : " . print_r(get_entities_from_metadata("Metaname","","site"), true));
+ $site->metatwo = "a different way";
- // Get objects belonging to a site
-
- // get objects of type
+ // annotate site
+ $site->annotate("Test","TestValue");
+
+
+ // get site annotations
+ error_log("SITE Annotations : " . print_r($site->getAnnotations("Test"), true));
+
+ */
+