Skip to content

Commit

Permalink
Update data.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdiMGF2 authored Dec 19, 2023
1 parent f30d17d commit d01e50a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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*".*?";/';
Expand All @@ -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;
Expand Down

0 comments on commit d01e50a

Please sign in to comment.