We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bien este error me lo viene tirando Visual Code como warning "Expected type 'string'. Found 'resource'."
// check if something was created and delete it if (file_exists($config_file)) { unlink($config_file); }
Cambie todo el codigo por este y no tira mas el error verifique la instalación y funciono
$config_file = fopen(XGP_ROOT . CONFIGS_PATH . 'config.php', 'w'); if (!$config_file) { return false; } $data = "<?php\n"; $data .= "defined('DB_HOST') ? null : define('DB_HOST', '" . $this->db_host . "');\n"; $data .= "defined('DB_USER') ? null : define('DB_USER', '" . $this->db_user . "');\n"; $data .= "defined('DB_PASS') ? null : define('DB_PASS', '" . $this->db_password . "');\n"; $data .= "defined('DB_NAME') ? null : define('DB_NAME', '" . $this->db_name . "');\n"; $data .= "defined('DB_PREFIX') ? null : define('DB_PREFIX', '" . $this->db_prefix . "');\n"; $data .= "defined('SECRETWORD') ? null : define('SECRETWORD', 'xgp-" . StringsHelper::randomString(16) . "');\n"; $data .= '?>'; // create the new file if (fwrite($config_file, $data)) { fclose($config_file); return true; } // check if something was created and delete it if (file_exists(XGP_ROOT . CONFIGS_PATH . 'config.php')) { unlink(XGP_ROOT . CONFIGS_PATH . 'config.php'); } return false;
The text was updated successfully, but these errors were encountered:
fix #547 by @FGServers
1505733
LucasKovacs
No branches or pull requests
Bien este error me lo viene tirando Visual Code como warning "Expected type 'string'. Found 'resource'."
Cambie todo el codigo por este y no tira mas el error verifique la instalación y funciono
The text was updated successfully, but these errors were encountered: