function _radioactivity_require_bootstrapping in Radioactivity 7.2
Do a light boostrap
2 calls to _radioactivity_require_bootstrapping()
- emit.php in ./
emit.php - _radioactivity_light_initialization in ./
radioactivity-bootstrap.inc - Do a light system initialization
File
- ./
radioactivity-bootstrap.inc, line 79
Code
function _radioactivity_require_bootstrapping() {
// use the VERSION to figure out if we've done bootstrapping already
if (!defined("VERSION")) {
include "radioactivity.module";
if (defined("VAR_RADIOACTIVITY_DRUPAL_ROOT")) {
define('DRUPAL_ROOT', VAR_RADIOACTIVITY_DRUPAL_ROOT);
chdir(DRUPAL_ROOT);
}
else {
// Look up Drupal root directory.
$depth = 0;
do {
chdir('../');
if (file_exists('./includes/bootstrap.inc')) {
define('DRUPAL_ROOT', getcwd());
break;
}
$depth++;
} while ($depth < VAR_RADIOACTIVITY_DRUPAL_ROOT_DEPTH_LIMIT);
}
if (!file_exists('./includes/bootstrap.inc')) {
die("Unable to figure out bootstrapping directory!");
}
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
if (!variable_get('radioactivity_bootstrap_warning')) {
variable_set("radioactivity_bootstrap_warning", TRUE);
}
}
}