29 register_shutdown_function(
function () {
32 if (function_exists(
'_elgg_shutdown_hook')) {
51 if (!isset($CONFIG)) {
52 $CONFIG = new \stdClass;
54 $CONFIG->boot_complete =
false;
59 if (!is_file(
"$engine_dir/settings.php")) {
60 header(
"Location: install.php");
64 if (!is_readable(
"$engine_dir/settings.php")) {
65 echo "The Elgg settings file exists but the web server doesn't have read permission to it.";
69 require_once
"$engine_dir/settings.php";
72 $CONFIG->default_limit = 10;
74 require_once
"$engine_dir/load.php";
97 $CONFIG->boot_complete =
true;
elgg_is_registered_viewtype($viewtype)
Checks if $viewtype is registered.
_elgg_load_plugins()
Loads all active plugins in the order specified in the tool admin panel.
_elgg_shutdown_hook()
Emits a shutdown:system event upon PHP shutdown, but before database connections are dropped...
elgg_set_viewtype($viewtype="")
Manually set the viewtype.
elgg_get_viewtype()
Return the current view type.
elgg echo
Translates a string.
global $START_MICROTIME
The time with microseconds when the Elgg engine was started.
elgg global
Pointer to the global context.
global $CONFIG
Configuration values.
clearfix elgg elgg elgg elgg page header
elgg_trigger_event($event, $object_type, $object=null)