Added the email for the owner and changed the admin123 for the login page
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user