<?php
// ============================================================
// config.php — Central Configuration for GRAY HACKER SECURITY Bot
// ============================================================

// ── Telegram Bot ─────────────────────────────────────────────
define('BOT_TOKEN',   '8497137425:AAE0A1aL7i7pO44Up4G8h03jvI-7V3rLdEo');
define('BOT_API',     'https://api.telegram.org/bot' . BOT_TOKEN);

// ── Protection Server Credentials ──────────────────────────────
define('DEX_BASE',    'https://dexshellx.com');
define('DEX_USER',    'slex');
define('DEX_PASS',    'pppp0000');

// ── Owner Telegram ID (only this person is the OWNER) ────────
// Set your Telegram numeric user ID here
define('OWNER_ID',    7554081592);

// ── Points System ────────────────────────────────────────────
define('POINTS_PER_JOB',    200);   // Points deducted per successful APK
define('JOB_TIMEOUT_MIN',   30);    // Refund if APK not ready in 30 minutes

// ── Default Filter ───────────────────────────────────────────
define('DEFAULT_FILTER_TEXT', <<<EOT
!/
com/
_COROUTINE/
teacher/**
EOT
);

// ── Database ─────────────────────────────────────────────────
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_NAME', 'dexprotect_bot');

// ── Paths ────────────────────────────────────────────────────
define('BASE_DIR',   __DIR__);
define('FONTS_DIR',  __DIR__ . '/fonts');
define('TEMP_DIR',   __DIR__ . '/temp');

// ── Pre-loaded Top 10 Fonts (filename => display name) ───────
define('DEFAULT_FONTS', serialize([
    'Roboto-Bold.ttf'           => 'Roboto Bold',
    'Roboto-BoldItalic.ttf'     => 'Roboto Bold Italic',
    'OpenSans-Bold.ttf'         => 'Open Sans Bold',
    'OpenSans-BoldItalic.ttf'   => 'Open Sans Bold Italic',
    'Montserrat-Bold.ttf'       => 'Montserrat Bold',
    'Montserrat-BoldItalic.ttf' => 'Montserrat Bold Italic',
    'Lato-Bold.ttf'             => 'Lato Bold',
    'Lato-BoldItalic.ttf'       => 'Lato Bold Italic',
    'Poppins-Bold.ttf'          => 'Poppins Bold',
    'Poppins-BoldItalic.ttf'    => 'Poppins Bold Italic',
]));

// Create required directories if missing
foreach ([FONTS_DIR, TEMP_DIR] as $dir) {
    if (!is_dir($dir)) mkdir($dir, 0755, true);
}
