+
+if (!file_exists($path_to_root . "/installed_extensions.php")) {
+ $next_extension_id = 1;
+ write_extensions(array());
+ write_extensions(array(),0);
+}
+if (!file_exists($path_to_root . "/lang/installed_languages.inc")) {
+ $installed_languages = array (
+ 0 => array ('code' => 'en_GB', 'name' => 'English', 'encoding' => 'iso-8859-1'));
+ $dflt_lang = 'en_GB';
+ write_lang();
+}
+
+if (file_exists($path_to_root . "/config_db.php"))
+ include_once($path_to_root . "/config_db.php");
+ else
+{
+ $def_coy = 0;
+ $tb_pref_counter = 0;
+ $db_connections = array ();
+}