include ROSTER_LIB . 'roster_error.php'; $roster->error =& new roster_error(); /** * Load the dbal */ $roster->load_dbal(); unset($db_config); /** * Include cache class */ require_once ROSTER_LIB . 'cache.php'; $roster->cache = new RosterCache(); /** * Load the config */ $roster->load_config(); /** * Inject some different locale setting if the locale url switch is set */ $locale = isset($_GET['locale']) ? $_GET['locale'] : isset($_POST['locale']) ? $_POST['locale'] : ''; if ($locale != '') { $_SESSION['locale'] = $locale; $roster->config['locale'] = $locale; } unset($locale); /** * Include linking file */ require_once ROSTER_LIB . 'cmslink.lib.php'; /** * Load the Template Parser