<?php
/* ============================================================
   config.php - EDIT THESE VALUES BEFORE UPLOADING TO YOUR SERVER
   ============================================================ */

// Must match LICENSE_API_KEY in src/main/licenseManager.js in the app
define('LICENSE_API_KEY', '123');

// Admin panel login
define('ADMIN_USERNAME', 'admin');
// Generate a new hash with: php -r "echo password_hash('yourpassword', PASSWORD_DEFAULT);"
define('ADMIN_PASSWORD_HASH', '$2b$10$UCMaTG6gp.dyRUl6tTIVuOsZfHrFXjhA7ULJS8oHcxzh1jjl1A0Xu'); // default password: "changeme123"

define('DB_PATH', __DIR__ . '/data/licenses.sqlite');
define('SESSION_NAME', 'license_admin_session');

// How many days before expiry the app should start showing a
// "your license is about to expire" notification (once per day).
define('EXPIRY_WARNING_DAYS', 7);

// Every lockable feature id used by the app - keep in sync with
// src/main/licenseManager.js ALL_FEATURES on the app side.
define('ALL_FEATURES', [
    'dashboard'   => 'Dashboard',
    'create'      => 'Create Content (AI posts)',
    'blogstudio'  => 'Blog Studio',
    'whatsapp'    => 'WhatsApp Bots',
    'gmap'        => 'Lead Finder (Google Maps scraper)',
    'backlink'    => 'Backlink Poster',
    'traffic'     => 'Traffic Bot',
    'emailsender' => 'Email Sender',
    'history'     => 'History',
    'favorites'   => 'Favorites',
    'templates'   => 'Templates',
    'models'      => 'AI Models',
    'settings'    => 'Settings',
]);
