hp // ============================================================ // ScholarVualt , Configuration // Copy this file as config.php and set your values // NEVER commit real credentials to version control // ============================================================ define('DB_HOST', 'localhost'); define('DB_NAME', 'shhdupsh_scholarvault'); // ← CHANGE THIS (full name from cPanel) define('DB_USER', 'shhdupsh_svuser'); // ← CHANGE THIS (full user from cPanel) define('DB_PASS', 'Ayoola23401@'); // ← CHANGE THIS define('DB_CHARSET', 'utf8mb4'); // ── App ──────────────────────────────────────────────────── define('APP_NAME', 'ScholarVualt'); define('JOURNAL_SUBMIT_FEE', 10000); // ₦ to list a research journal define('JOURNAL_PASS_FEE', 5000); // ₦ one-time download access, valid 30 days define('JOURNAL_PASS_DAYS', 30); define('PLATFORM_COMMISSION_PERCENT', 30); // % kept by platform on creator downloads define('APP_URL', 'https://scholarvault.ng'); // live domain — no trailing slash define('APP_ENV', 'production'); // 'development' | 'production' // ── Paystack ─────────────────────────────────────────────── define('PAYSTACK_PUBLIC_KEY', 'pk_live_xxxxxxxxxxxxxxxxxxxx'); define('PAYSTACK_SECRET_KEY', 'sk_live_xxxxxxxxxxxxxxxxxxxx'); define('PAYSTACK_CALLBACK_URL', APP_URL . '/pages/payment-callback.php'); // ── Security ─────────────────────────────────────────────── define('APP_KEY', '7f3a9c2e8b1d4f6a0e5c9b7d2a8f1e3c'); // used for CSRF tokens define('COOKIE_SECURE', true); // preferred when site is on HTTPS define('COOKIE_SECURE_AUTO', true); // if true, secure flag follows actual HTTPS (fixes login on HTTP/misconfig) define('SESSION_LIFETIME', 7200); // seconds // ── File Uploads ─────────────────────────────────────────── define('UPLOAD_DIR', __DIR__ . '/uploads/projects/'); define('MAX_UPLOAD_MB', 50); // ── Google AdSense ───────────────────────────────────────── define('ADSENSE_CLIENT', ''); // e.g. ca-pub-xxxxxxxxxxxxxxxx define('ADSENSE_SLOT_SIDEBAR', ''); // sidebar ad unit slot id define('ADSENSE_ENABLED', false); // set true when client + slot are filled // ── Cookies ──────────────────────────────────────────────── define('COOKIE_CONSENT_NAME', 'sv_cookie_consent'); define('COOKIE_POLICY_URL', APP_URL . '/pages/privacy.php'); // ── Email (optional SMTP for notifications) ──────────────── define('MAIL_FROM', 'noreply@scholarvault.ng'); define('MAIL_FROM_NAME', APP_NAME); // Add PHPMailer config here if needed // ── Social Login (OAuth) ─────────────────────────────────── // Get credentials from Google Cloud Console / Facebook Developers define('GOOGLE_CLIENT_ID', ''); // e.g. xxxxx.apps.googleusercontent.com define('GOOGLE_CLIENT_SECRET', ''); define('GOOGLE_REDIRECT_URI', APP_URL . '/pages/oauth-callback.php?provider=google'); define('FACEBOOK_APP_ID', ''); define('FACEBOOK_APP_SECRET', ''); define('FACEBOOK_REDIRECT_URI', APP_URL . '/pages/oauth-callback.php?provider=facebook'); // ── Social Media Links (footer + Open Graph) ─────────────── define('SOCIAL_TWITTER', 'https://twitter.com/scholarvault'); // X / Twitter define('SOCIAL_FACEBOOK', 'https://facebook.com/scholarvault'); define('SOCIAL_INSTAGRAM', 'https://instagram.com/scholarvault'); define('SOCIAL_LINKEDIN', 'https://linkedin.com/company/scholarvault'); define('SOCIAL_YOUTUBE', 'https://youtube.com/@scholarvault'); define('SOCIAL_TIKTOK', 'https://tiktok.com/@scholarvault'); // ── SEO defaults ─────────────────────────────────────────── define('SEO_DEFAULT_DESCRIPTION', 'Browse and download premium academic research projects, dissertations, and theses across all disciplines. Instant download after secure payment on ScholarVualt.'); define('SEO_DEFAULT_KEYWORDS', 'academic research, final year project, dissertation, thesis, research papers, Nigeria, undergraduate project, ScholarVualt, SPSS analysis, topic consultation'); define('SEO_OG_IMAGE', APP_URL . '/assets/img/og-default.png'); // 1200x630 recommended // ── Paystack security ────────────────────────────────────── // Optional comma-separated IPs allowed to hit the webhook (leave empty to allow signature-only) define('PAYSTACK_WEBHOOK_IPS', ''); // ── WhatsApp Business Cloud API ──────────────────────────── // Meta Developers → My Apps → WhatsApp → API Setup // https://developers.facebook.com/docs/whatsapp/cloud-api define('WHATSAPP_TOKEN', ''); // System user permanent token define('WHATSAPP_PHONE_NUMBER_ID', ''); // Phone number ID (not the display number) define('WHATSAPP_BUSINESS_ACCOUNT_ID', ''); // WABA ID (optional) define('WHATSAPP_APP_SECRET', ''); // App Secret for X-Hub-Signature-256 define('WHATSAPP_VERIFY_TOKEN', 'scholarvault_wa_verify_change_me'); // webhook verify define('WHATSAPP_API_VERSION', 'v21.0'); define('WHATSAPP_BUSINESS_NUMBER', ''); // Display number e.g. 2348012345678 (wa.me + FAB) define('WHATSAPP_NOTIFY_NUMBER', ''); // Owner phone for human-handoff alerts // Optional template name for outbound notifications (must be approved in Meta) define('WHATSAPP_TEMPLATE_HELLO', 'hello_world'); // Optional: OpenAI-compatible API for smarter agent replies define('AI_API_KEY', ''); define('AI_API_URL', 'https://api.openai.com/v1/chat/completions'); define('AI_MODEL', 'gpt-4o-mini'); // ── Google Analytics (GA4) ───────────────────────────────── // Leave empty to disable. Example: G-XXXXXXXXXX define('GA_MEASUREMENT_ID', ''); // ── Error display ────────────────────────────────────────── if (APP_ENV === 'development') { ini_set('display_errors', 1); error_reporting(E_ALL); } else { ini_set('display_errors', 0); error_reporting(0); }