<?php
/**
 * =====================================================================
 * Nadiplayer  -  cPanel PHP backend  -  Configuration
 * =====================================================================
 * Author     : Nadifi abdessamad  <nadiplayer@nadi.kr>
 * Website    : https://nadi.kr
 * Copyright  : (c) 2026 Nadi Player. All rights reserved.
 * Repository : https://github.com/ghizlanefit-cell/Nadiplayer-v1.2.5-ads
 * =====================================================================
 * Proprietary and confidential. Do NOT commit this file to a public
 * repo — it contains real database credentials.
 * =====================================================================
 */

// ── MySQL ────────────────────────────────────────────────────────
define('DB_HOST', 'localhost');
define('DB_PORT', 3306);
define('DB_NAME', 'koreama_nadiplayer');
define('DB_USER', 'koreama_nadiplayer');
define('DB_PASS', 'NadiPlayer2026');

// ── JWT secret  (used to sign auth tokens) ───────────────────────
define('JWT_SECRET', 'YTObHcKYKI4UNlB2OZLPoJdIoQphTdUh5qDDGR2fRzh');
define('JWT_TTL_SECONDS', 60 * 60 * 24); // 24h

// ── Admin seed (auto-created/re-synced on every request) ─────────
define('ADMIN_USERNAME', 'nadinadi');
define('ADMIN_PASSWORD', '0644782611');

// ── Misc ─────────────────────────────────────────────────────────
date_default_timezone_set('UTC');
ini_set('display_errors', '0');         // never leak errors to JSON callers
error_reporting(E_ALL);
@ini_set('log_errors', '1');
@ini_set('error_log', __DIR__ . '/error.log');

// ── Build version (matches frontend/package.json + build.gradle) ─
define('NADIPLAY_BUILD_VERSION', '1.3.0');

// ── Payment provider credentials ─────────────────────────────────
// Stripe (get keys at https://dashboard.stripe.com/apikeys)
// Leave as '' to disable Stripe on /subscription page.
define('STRIPE_API_KEY', '');
// Optional: webhook secret (whsec_...) if you set up /api/payments/webhook/stripe
define('STRIPE_WEBHOOK_SECRET', '');

// PayPal (get keys at https://developer.paypal.com/dashboard/applications)
// PAYPAL_MODE: 'sandbox' for testing, 'live' for production.
define('PAYPAL_MODE', 'sandbox');
define('PAYPAL_CLIENT_ID', '');
define('PAYPAL_CLIENT_SECRET', '');

