⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
china-democracyparty.com
/
2
/
config
/
View File Name :
sql.php
<?php // config/sql.php // Database connection using MySQLi with error handling. // Update these credentials for your environment. $DB_HOST = getenv('DB_HOST') ?: '127.0.0.1'; $DB_USER = getenv('DB_USER') ?: 'china-democracyparty'; $DB_PASS = getenv('DB_PASS') ?: 'china-democracyparty001'; $DB_NAME = getenv('DB_NAME') ?: 'china-democracyparty'; $conn = new mysqli($DB_HOST, $DB_USER, $DB_PASS, $DB_NAME); if ($conn->connect_errno) { http_response_code(500); die('Database connection failed: ' . htmlspecialchars($conn->connect_error)); } $conn->set_charset('utf8mb4'); ?>