/var/www/vhosts/m-auto.co/httpdocs/includes
NameSizeModeActions
7-6-2026.zip51450644editdlrm
config.php19370644editdlrm
db.php6940644editdlrm
db_production.php13010644editdlrm
footer.php66480644editdlrm
header.php97570644editdlrm
header.zip26560644editdlrm
odoo_api.php116220644editdlrm
odoo_config.php11500644editdlrm
permissions.php19270644editdlrm
Edit: /var/www/vhosts/m-auto.co/httpdocs/includes/db_production.php (1301B)
connect_error) { if (!$is_production) { die("Connection failed: " . $conn->connect_error); } else { // In production, log error instead of displaying it error_log("Database connection failed: " . $conn->connect_error); die("Database connection error. Please try again later."); } } // Set charset to utf8mb4 for full Arabic support $conn->set_charset(CHARSET); // Create database if it doesn't exist (only in development) if (!$is_production) { $sql = "CREATE DATABASE IF NOT EXISTS `" . DB_NAME . "` CHARACTER SET " . CHARSET . " COLLATE utf8mb4_general_ci"; if ($conn->query($sql) === TRUE) { // Database created or already exists } else { echo "Error creating database: " . $conn->error; } } // Select the database $conn->select_db(DB_NAME); // Function to safely close connection function closeConnection() { global $conn; if ($conn) { $conn->close(); } } // Register shutdown function to close connection register_shutdown_function('closeConnection'); ?>