aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-28 19:18:55 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-28 19:18:55 +0000
commit6441a960edc875a0c33fa8bbd735fd1faebaa552 (patch)
tree4127ac318d37bf0c36b454d1918dadce5e1343d2 /index.php
parent5aa0bbb5bef7265fb570b400f7966b8411295f9e (diff)
downloadelgg-6441a960edc875a0c33fa8bbd735fd1faebaa552.tar.gz
elgg-6441a960edc875a0c33fa8bbd735fd1faebaa552.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Metadata and Annotations now exported. git-svn-id: https://code.elgg.org/elgg/trunk@291 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'index.php')
-rw-r--r--index.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/index.php b/index.php
index 2c7d2810f..bf55b4c43 100644
--- a/index.php
+++ b/index.php
@@ -19,7 +19,7 @@
// Testing ///////
- if ($_SESSION['id']==-1) $_SESSION['id'] = 1;
+ if ($_SESSION['id']==-1) $_SESSION['id'] = 2;
@@ -43,7 +43,7 @@
// Testing ///////
- if ($_SESSION['id']==-1) $_SESSION['id'] = 1;
+ if ($_SESSION['id']==-1) $_SESSION['id'] = 2;
// Create / load a site
/* $site = get_site(1);
@@ -96,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));
*/
-/*
+$CONFIG->debug = true;
// get site annotations
$site = get_site_by_url("http://localhost/");
error_log("GETTIGN SITE ".$_SESSION['id']. " " . print_r($site, true));
@@ -108,7 +108,7 @@ error_log("GETTIGN SITE ".$_SESSION['id']. " " . print_r($site, true));
$site->name = "Test title";
$site->description = "Test description";
$site->url = "http://localhost/";
- $site->owner_guid = 1;
+ $site->owner_guid = 2;
$site->access_guid = 0;
error_log("LOADED NEW SITE: Saving" . print_r($site,true));
@@ -127,8 +127,10 @@ error_log("GETTIGN SITE ".$_SESSION['id']. " " . print_r($site, true));
// add meta data
$site->setMetadata("Metaname", "Value");
+
+ print_r(get_metadata(9));
-
+/*
// change site metadata
$site->setMetadata("Metaname", "Value2");
@@ -144,8 +146,8 @@ error_log("GETTIGN SITE ".$_SESSION['id']. " " . print_r($site, true));
// get site annotations
error_log("SITE Annotations : " . print_r($site->getAnnotations("Test"), true));
- */
-
+
+ */