public function set_database($name)
 {
     $this->database = expand_tilde($name);
     $this->db = new SQLiteDatabase($this->database);
 }
if (!conf_has('log_errors')) {
    conf_set('log_errors', false);
}
if (!conf_has('log_debug_info')) {
    conf_set('log_debug_info', false);
}
if (!conf_has('show_debug_info')) {
    conf_set('show_debug_info', true);
}
if (!conf_has('modules.autoload')) {
    conf_set('modules.autoload', array());
}
if (!conf_has('log.path')) {
    conf_set('log.path', '~cache/debug.log');
}
conf_set('log.path', expand_tilde(conf('log.path')));
define('DEBUG', conf('debug'));
define('LOG_ERRORS', conf('log_errors'));
define('LOG_DEBUG_INFO', conf('log_debug_info'));
define('SHOW_DEBUG_INFO', conf('show_debug_info'));
if (!conf_has('use_cgi')) {
    conf_set('use_cgi', true);
}
if (!conf_has('http.port')) {
    conf_set('http.port', 80);
}
if (!conf_has('ssl.port')) {
    conf_set('ssl.port', 443);
}
if (!conf_has('ssl.root')) {
    conf_set('ssl.root', conf('http.root'));