libroot)) $globals->libroot = $globals->root."/lib"; // connect to database $globals->dbconnect(); // read extra options from database $globals->readOptions(); // set up the plugin holder $globals->plugins = new Diogenes_Plugins($globals->db, $globals->root . "/plugins", $globals->spoolroot . "/diogenes_c"); // set up the icons $globals->icons = new Diogenes_Icons(); // do we want to debug database calls ? if ($globals->debugdatabase) $globals->db->trace_on(); // environment variable for gettext bindtextdomain("diogenes", "{$globals->root}/locale"); textdomain("diogenes"); if (isset($_COOKIE['lang'])) { putenv("LANG={$_COOKIE['lang']}"); setlocale(LC_ALL,$_COOKIE['lang']); } ?>