1 |
6657531f
|
Andreas Kohlbecker
|
<?php
|
2 |
|
|
//
|
3 |
|
|
// see README contained in this folder
|
4 |
|
|
|
5 |
|
|
//
|
6 |
|
|
|
7 |
|
|
// TestUtils.php must be included at the very first step
|
8 |
|
|
|
9 |
|
|
module_load_include('php', 'bootstrap', 'estUtils');
|
10 |
|
|
|
11 |
|
|
if (empty($_ENV['DRUPAL_ROOT'])) {
|
12 |
|
|
print('environment variable "DRUPAL_ROOT" mnust point to the root of the Drupal installation.');
|
13 |
|
|
exit(-1);
|
14 |
|
|
}
|
15 |
|
|
chdir($_ENV['DRUPAL_ROOT']); // cd to {DRUPAL_ROOT}
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
module_load_include('inc', 'bootstrap', 'bootstrap');
|
20 |
|
|
|
21 |
|
|
$_SERVER['HTTP_HOST'] = '127.0.0.1';
|
22 |
|
|
$_SERVER['REQUEST_METHOD'] = 'get';
|
23 |
|
|
//ip_address('127.0.0.1') ;
|
24 |
|
|
|
25 |
|
|
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
|
26 |
|
|
$_SERVER['PHP_SELF'] = $_SERVER['SITE_BASE_PATH'] . "/index.php";
|
27 |
|
|
//$_SERVER['REQUEST_URI'] = "http://" . $_SERVER['HTTP_HOST'] . "/" . "flora-malesiana/";
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
|
31 |
|
|
|
32 |
|
|
flush();
|