From d01e50a07bbb167f102205b66f0bac54d4b4e7b4 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Tue, 19 Dec 2023 16:41:04 +0330 Subject: [PATCH] Update data.php --- install/data.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/data.php b/install/data.php index 679b3e1..6b0c810 100644 --- a/install/data.php +++ b/install/data.php @@ -39,7 +39,7 @@ $newFileContent = preg_replace($patternuser, '$usernamedb = "'.$form_data['dbuser'].'";', $newFileContent); // تغییر مقدار $dbdbpassword $patternpass = '/\$passworddb\s*=\s*".*?";/'; -$newFileContent = preg_replace($patternpass, '$passworddb = "'.$form_data['passworddb'].'";', $newFileContent); +$newFileContent = preg_replace($patternpass, '$passworddb = "'.$form_data['dbpassword'].'";', $newFileContent); // تغییر مقدار $API_KEY $patterntoken = '/\$APIKEY\s*=\s*".*?";/'; @@ -50,7 +50,7 @@ $newFileContent = preg_replace($patternidadmin, '$adminnumber = "'.$form_data['idadmin'].'";', $newFileContent); try { - $connect = new mysqli('localhost', $form_data['dbuser'], $$form_data['dbpassword'], $$form_data['dbname']); + $connect = new mysqli('localhost', $form_data['dbuser'], $form_data['dbpassword'], $$form_data['dbname']); if ($connect->connect_errno) { $textdatabase = 'خطا در اتصال به پایگاه داده: ' . $connect->connect_error;