Sindbad~EG File Manager
<?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