Framework booting
At the top of the primary handlers, there is the following line:
require_once(dirname(dirname(__FILE__)) . "/start.php");
This loads the Elgg framework, which includes the following:
Loading the core libraries
Connecting to the database
Loading Elgg's configuration
Loading plugins
Loading language files
Initializing the user's session
Registering handlers and callbacks
When the boot process is completed, control is returned to the handler. Elgg's routing and page handling system handle booting the framework before a plugin is called.
Code location
Boot script: /engine/start.php