Centralize database configuration for _website folder

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-10-22 01:14:18 +00:00
parent b52f1960f6
commit 490b35c556
3 changed files with 52 additions and 4 deletions

View file

@ -1,10 +1,14 @@
text/x-generic _db.php ( PHP script, ASCII text, with CRLF line terminators )
<?php
$servername = "panel.iaregamer.com";
$username = "remoteuser";
$password = "Pkloyn7yvpht!";
$dbname = "panel";
// Include the centralized database configuration
require_once(__DIR__ . '/includes/config.inc.php');
// Use the configuration variables from config.inc.php
$servername = $db_host;
$username = $db_user;
$password = $db_pass;
$dbname = $db_name;
// Create connection
$db = mysqli_connect($servername, $username, $password, $dbname);