From f03e2094165956c6be6b035417f06bcf49bade09 Mon Sep 17 00:00:00 2001 From: Ahyan Z Date: Fri, 26 Jun 2026 18:00:11 +0100 Subject: [PATCH] Update Comments --- config.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config.php b/config.php index 3ab757c..75e37e6 100644 --- a/config.php +++ b/config.php @@ -5,7 +5,7 @@ // Set time zone and ensure clean error reporting for debugging development builds date_default_timezone_set('UTC'); error_reporting(E_ALL); -ini_set('display_errors', 0); // Keep disabled in production so errors don't corrupt JSON payloads +ini_set('display_errors', 0); // Disabled in production builds so errors don't corrupt JSON payloads // ==================================================================== // 2. DATABASE CONFIGURATION (Aiven Cloud Connection Matrix) @@ -18,7 +18,7 @@ $db_pass = getenv('DB_PASS') ?: ''; $db_name = 'defaultdb'; try { - // Open a secure database link using the fast, modern PHP Data Objects (PDO) framework + // Open a secure database link using the PHP Data Objects (PDO) framework $pdo = new PDO( "mysql:host=$db_host;port=$db_port;dbname=$db_name;charset=utf8mb4", $db_user, @@ -32,7 +32,6 @@ try { ); } catch (PDOException $e) { // If the database connection drops, immediately return a clean JSON error response - // so the patched Instagram 6.20.2 client app doesn't crash or hang. header('Content-Type: application/json'); http_response_code(500); echo json_encode([ @@ -45,7 +44,7 @@ try { // ==================================================================== // 3. MEDIA UPLOAD & STORAGE CONFIGURATION (Cloudinary) // ==================================================================== -// Pull your raw cloudinary:// URL string directly from Vercel's Environment Variables +// Pull raw cloudinary:// URL string directly from Vercel's Environment Variables $cloudinary_env = getenv('CLOUDINARY_URL') ?: 'cloudinary://LOCAL_MOCK_KEY_FOR_TESTING'; // Define it as a global constant so your existing media/upload scripts run unchanged