(function(w){ ENV = function(){ this._config = {}; this._config.link_default = { search: '/zoeken/', favorite: '/favorieten/', cart: '/winkelmand/', checkout: '/bestellen/', orderconfirmation: '/bedankt/', account: '/account/', }; this._config.environment = { language: 'NL', reff: 'http://www.procasting.nl/partner-shop/environment.js' }, this._config.software_default = { version: "1.9.6.226",version_dev: "1.9.6.226",version_debug: "1.9.6.226",debug_mode: "OFF", } this._config.route_default = { path: "/backend", } this._config.route_front = { path: "", tmpl_app: "core_application_application_application", module: "dashboard", controller: "dashboard", action: "dashboard", } return this; } ENV.prototype.get = function(param, type) { if(!type) type = "default"; if(this._config[param + "_" + type]) return this._config[param + "_" + type]; return false; } ENV.prototype.getLanguage = function() { if(this._config.environment.language) return this._config.environment.language; if(w.application.auth && w.application.auth.settings) return w.application.auth.settings().language; return false; } w.env = new ENV(); })(window);