Sindbad~EG File Manager

Current Path : /home/u625735752/domains/floralwhite-woodpecker-723030.hostingersite.com/public_html/1.11/
Upload File :
Current File : /home/u625735752/domains/floralwhite-woodpecker-723030.hostingersite.com/public_html/1.11/conn.php

<?php
// Detect the current hostname
$hostName = $_SERVER['HTTP_HOST'];

// Default values (local)
$host = 'localhost';
$dbname = 'balancee-fm';
$username = 'root';
$password = '';

// Check if the hostname is not localhost (production)
if ($hostName !== 'localhost') {
    $host = 'localhost'; // still usually 'localhost' on most shared hosting
    $dbname = 'u625735752_balanceefm';
    $username = 'u625735752_balanceefm';
    $password = '7;bgoL9$GwqH';
}

// Connect
$mysqli = new mysqli($host, $username, $password, $dbname);

// Error handling
if ($mysqli->connect_error) {
    die("Connection failed: " . $mysqli->connect_error);
}

$mysqli->set_charset('utf8mb4');
?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists