Added the email for the owner and changed the admin123 for the login page

This commit is contained in:
2026-08-20 09:42:02 +01:00
parent 1ea31362c4
commit ee6c739305
6 changed files with 63 additions and 14 deletions
+2 -1
View File
@@ -33,7 +33,7 @@ $current_lang = get_current_lang();
$msg_error = "";
$msg_success = "";
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (($_SERVER['REQUEST_METHOD'] ?? '') === 'POST') {
$db_host = trim($_POST['db_host'] ?? 'localhost');
$db_name = trim($_POST['db_name'] ?? 'sld_blocknotes_db');
$db_user = trim($_POST['db_user'] ?? '');
@@ -92,6 +92,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// Insert site_settings default values
$conn->query("INSERT IGNORE INTO site_settings (setting_key, setting_value) VALUES ('site_title', 'sld-blocknotes')");
$conn->query("INSERT IGNORE INTO site_settings (setting_key, setting_value) VALUES ('site_favicon', 'assets/img/favicon.png')");
$conn->query("INSERT IGNORE INTO site_settings (setting_key, setting_value) VALUES ('admin_email', '[email protected]')");
// Create Owner account
$hash_owner = password_hash($owner_pass, PASSWORD_DEFAULT);