forked from dingproject/trampoline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
29 lines (22 loc) · 898 Bytes
/
index.php
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
<?php
/**
* Trampoline dispatcher
*/
// Load trampoline
require './trampoline.inc';
require './trampoline.drupal-default.inc';
require trampoline_files_path() . '/trampoline.config.inc';
// Load Drupal utility functions
require trampoline_base_path() . '/includes/common.inc';
// Load modified Drupal functions
require './trampoline.drupal-mod.inc';
chdir($_SERVER['DOCUMENT_ROOT']);
// Load custom cache handler if defined in $cache_inc from settings.php.
// Otherwise we use a Trampoline implementation using static variables.
//
// Note that custom cache handlers must handle all communication with the
// cache engine on it's own. Trampoline does not provide any default Drupal
// niceties such as a database connection and abstraction layer.
require variable_get('cache_inc', dirname(__FILE__) . '/trampoline.cache.inc');
// Execute trampoline
trampoline_run($trampoline_config);