if ($config['environment']['configured'] == 0) { $translation->load_trans('xml', 'install'); // Filemode on Installation ### Prepare install // Force installwizard if LS not configured $_GET['mod'] = 'install'; $_GET['action'] = 'wizard'; // Silent connect $db->connect(1); $IsAboutToInstall = 1; // Force Adminrights for installing User $auth["type"] = 3; $auth["login"] = 1; // Load DB-Data after installwizard step 3 if ($_GET["action"] == "wizard" and $_GET["step"] > 3) { $cfg = $func->read_db_config(); // read Configtable } } else { ### Normal auth cycle and Database-init $db->connect(0); $IsAboutToInstall = 0; $translation->load_trans('db', $_GET['mod']); // DB-Mode on Running System // FIX : Add function to scan DB for correkt config and Tables (prefix etc.) // Reset DB-Success in Setup if no Adm.-Account was found, because a connection could work, but prefix is wrong if (!$func->admin_exists() and ($_GET["action"] == "wizard" and $_GET["step"] <= 3 or $_GET["action"] == "ls_conf")) { $db->success = 0; } $cfg = $func->read_db_config(); // Config-Tabelle aulesen