blob: ae8dc5e517c51c8313275ad118761d2c01306c2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
<?php
/**
* Elgg index page for web-based applications
*
* @package Elgg
* @subpackage Core
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Curverider Ltd
* @copyright Curverider Ltd 2008
* @link http://elgg.org/
*/
/**
* Start the Elgg engine
*/
require_once(dirname(__FILE__) . "/engine/start.php");
/**
* Load the front page
*/
echo page_draw(null, elgg_view("homepage"));
get_objects(3,"blog","mammals","are lovely", 7, 2, 1);
$obj = new stdClass;
$obj->id = 3;
// Testing ///////
// Create / load a site
$site = get_site(1);
if (!$site)
{
$site = new ElggSite();
$site->title = "Test title";
$site->description = "Test description";
$site->url = "http://dushka/~icewing/Workingdirectory/elggnew/";
$site->owner_id = 1;
$site->access_id = 0;
error_log("LOADED NEW SITE: Saving");
$site->save();
}
else
$site = new ElggSite($site);
// annotate site
// add meta data
// get site
// get site metadata
// change site metadata
// get site metadata
// get site annotations
?>
|