include_once $Gdn_Path; } // Include the application's hooks. $Hooks_Path = PATH_APPLICATIONS . "/{$ApplicationFolder}/settings/class.hooks.php"; if (file_exists($Hooks_Path)) { include_once $Hooks_Path; } } unset($Gdn_Path); unset($Hooks_Path); // Themes startup Gdn::ThemeManager()->Start(); Gdn_Autoloader::Attach(Gdn_Autoloader::CONTEXT_THEME); // Plugins startup Gdn::PluginManager()->Start(); Gdn_Autoloader::Attach(Gdn_Autoloader::CONTEXT_PLUGIN); /** * Locales * * Install any custom locales provided by applications and plugins, and set up * the locale management system. */ // Load the Garden locale system $Gdn_Locale = new Gdn_Locale(C('Garden.Locale', 'en-CA'), Gdn::ApplicationManager()->EnabledApplicationFolders(), Gdn::PluginManager()->EnabledPluginFolders()); Gdn::FactoryInstall(Gdn::AliasLocale, 'Gdn_Locale', NULL, Gdn::FactorySingleton, $Gdn_Locale); unset($Gdn_Locale); require_once PATH_LIBRARY_CORE . '/functions.validation.php'; // Start Authenticators Gdn::Authenticator()->StartAuthenticator(); /** * Bootstrap After