public function call_init_hook() { if (conf_has('db.init_hook')) { call_user_func(conf('db.init_hook'), $this); } }
if (!conf_has('mail.send')) { conf_set('mail.send', false); } if (!conf_has('mail.type')) { conf_set('mail.type', 'mail'); } if (!conf_has('mail.sendmail.path')) { conf_set('mail.sendmail.path', '/var/qmail/bin/sendmail'); } if (!conf_has('mail.smtp.port')) { conf_set('mail.smtp.port', 25); } if (!conf_has('mail.smtp.ssl')) { conf_set('mail.smtp.ssl', true); } if (!conf_has('mail.smtp.timeout')) { conf_set('mail.smtp.timeout', 30); } require_once S_BASE . 'core/functions.php'; $modules = conf('modules.autoload'); if (conf('use_cgi')) { require_once S_BASE . 'web/cgi.php'; SCGI::init(); } foreach ($modules as $name) { if (strpos($name, '/') !== false) { require_once S_BASE . $name . '.php'; } else { require_once S_BASE . $name . '/all.php'; } }