/** * Enable app lEdit */ $App = new \Lobby\Apps("ledit"); $App->enableApp(); echo sss("Success", "Database Tables and <b>config.php</b> file was successfully created."); echo '<cl/><a href="?step=4' . CSRF::getParam() . '" class="btn">Proceed</a>'; } else { echo ser("Unable To Create Database Tables", "Are there any tables with the same name ? Or Does the user have the permissions to create tables ? Error :<blockquote>" . \Lobby\Install::$error . "</blockquote>" . \Lobby::l("/admin/install.php?step=2" . CSRF::getParam(), "Try Again", "class='btn'")); } } } } } else { $db_loc = $_POST['db_location']; $db_create = \Lobby\Install::createSQLiteDB($db_loc); /** * Prefix is "l_" and can't be changed */ if ($db_create && \Lobby\Install::makeDatabase("l_", "sqlite")) { /** * We give the database config to the Install Class */ \Lobby\Install::dbConfig(array("path" => str_replace(L_DIR, "", $db_loc), "prefix" => "l_")); /** * Make the Config File */ \Lobby\Install::makeConfigFile("sqlite"); /** * Enable app lEdit */