function _radioactivity_light_initialization in Radioactivity 7.2
Do a light system initialization
1 call to _radioactivity_light_initialization()
File
- ./
radioactivity-bootstrap.inc, line 41
Code
function _radioactivity_light_initialization() {
if (!defined("RADIOACTIVITY_BOOTSTRAPPED")) {
$config_file = _radioactivity_get_config_file_path();
if (file_exists($config_file)) {
include $config_file;
}
else {
_radioactivity_require_bootstrapping();
// Grab the checksum variable
$var = variable_get('radioactivity_checksum_salt', 'undefined');
define("VAR_RADIOACTIVITY_CHECKSUM_SALT", $var);
define("VAR_RADIOACTIVITY_TEMP_DIR", variable_get('radioactivity_temp_dir', sys_get_temp_dir()));
if (!variable_get('radioactivity_config_warning')) {
variable_set("radioactivity_config_warning", TRUE);
}
if (class_exists('Memcache') || class_exists("Memcached")) {
define("VAR_RADIOACTIVITY_MEMCACHED_HOST", variable_get("radioactivity_memcached_host", "localhost"));
define("VAR_RADIOACTIVITY_MEMCACHED_PORT", variable_get("radioactivity_memcached_port", "11211"));
define("VAR_RADIOACTIVITY_MEMCACHED_PREFIX", variable_get("radioactivity_memcached_prefix", ""));
}
if (class_exists("Redis")) {
define("VAR_RADIOACTIVITY_REDIS_HOST", variable_get("radioactivity_redis_host", "localhost"));
define("VAR_RADIOACTIVITY_REDIS_PORT", variable_get("radioactivity_redis_port", "6379"));
}
}
define("RADIOACTIVITY_BOOTSTRAPPED", TRUE);
}
}