saved emails, gmail, hotmail start, home, landing etc

This commit is contained in:
Dr3amFury
2025-08-20 12:58:40 +02:00
parent 08a5cead74
commit 9ec1e0f9fe
17 changed files with 683 additions and 172 deletions

10
db.php
View File

@@ -1,10 +1,10 @@
<?php
function getConnection() {
$host = getenv('DB_HOST') ?: 'localhost';
$port = 3308; // ✅ using custom port
$db = getenv('DB_NAME') ?: 'ai_email';
$user = getenv('DB_USER') ?: 'root';
$pass = getenv('DB_PASS') ?: '';
$host = '127.0.0.1'; // Force TCP/IP, avoids socket issues
$port = 3306; // XAMPP default port
$db = 'ai_email';
$user = 'root';
$pass = ''; // XAMPP default has no password
$charset = 'utf8mb4';
$dsn = "mysql:host=$host;port=$port;dbname=$db;charset=$charset";