示例#1
0
}
if (!defined('ROSTER_INSTALLED')) {
    require ROSTER_BASE . 'install.php';
    die;
}
include ROSTER_LIB . 'roster.php';
$roster = new roster();
/**
 * Roster Error Handler
 */
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 != '') {