Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
catch (e) {
}
accConfig[acc][split[1]] = value;
}
});
AppProperties.set("LOGIN_ACCOUNTS_CONFIG", accConfig);
}
//cache configs
AppProperties.set("GLOBAL_CACHE_STORE", props["global.cache.store"]);
AppProperties.set("DEFAULT_CACHE_EXPIRE", eval(props["default.cache.expire"])); //evals the string to int
AppProperties.set("DB_CACHE_STORE", props["db.cache.store"]);
AppProperties.set("BOTTOM_SCRIPTS_CACHE_STORE", props["bottom.scripts.cache.store"]);
AppProperties.set("TMPL_CACHE_STORE", props["tmpl.cache.store"]);
AppProperties.set("CACHE_REDIS_HOST", props["cache.redis.host"]);
AppProperties.set("CACHE_REDIS_PORT", props["cache.redis.port"]);
props["show.plugin.view.permission.error"] &&
AppProperties.set("SHOW_PLUGIN_VIEW_PERMISSION_ERR", JSON.parse(props["show.plugin.view.permission.error"]));
//error templates
AppProperties.set("APP_404_ERROR_TMPL", props["app.404.error.tmpl"]);
AppProperties.set("APP_500_ERROR_TMPL", props["app.500.error.tmpl"]);
AppProperties.set("APP_401_ERROR_TMPL", props["app.401.error.tmpl"]);
AppProperties.set("PLUGIN_ERROR_TMPL", props["plugin.error.tmpl"]);
}