<?php
return [
    'app' => ['name' => 'WebShop Infranet', 'environment' => 'production', 'mu_adapter' => 'muemu', 'base_url' => ''],
    'mssql' => ['host' => '127.0.0.1', 'port' => '1433', 'instance' => '', 'database' => 'MuOnline', 'username' => 'sa', 'password' => '', 'driver' => 'sqlsrv', 'encrypt' => false, 'trust_server_certificate' => true, 'login_timeout' => 3],
    'mysql' => ['host' => '127.0.0.1', 'port' => '3306', 'database' => 'mu_web', 'username' => 'root', 'password' => '', 'charset' => 'utf8mb4'],
    'pricing' => ['variants' => ['enabled' => true, 'per_level' => 10, 'per_option_code' => 20, 'luck' => 50, 'skill' => 50, 'excellent_per_option' => 120, 'ancient_5' => 150, 'ancient_10' => 300, 'socket_per_slot' => 150, 'harmony' => 100]],
    'adapters' => [
        'common' => [
            'account' => ['table' => 'MEMB_INFO', 'username_column' => 'memb___id', 'password_column' => 'memb__pwd', 'password_mode' => 'plain', 'extra_select' => ''],
            'character' => ['table' => 'Character', 'name_column' => 'Name', 'account_column' => 'AccountID', 'level_column' => 'cLevel', 'class_column' => 'Class', 'reset_column' => 'ResetCount'],
            'credits' => ['table' => 'CashShopData', 'account_column' => 'AccountID', 'default_currency' => 'WCoinC', 'currencies' => ['WCoinC' => 'WCoinC', 'WCoinP' => 'WCoinP', 'GoblinPoint' => 'GoblinPoint', 'Ruud' => 'Ruud']],
            'online' => ['table' => 'MEMB_STAT', 'account_column' => 'memb___id', 'status_column' => 'ConnectStat', 'online_value' => 1],
            'delivery' => ['mode' => 'warehouse_hex', 'warehouse' => ['table' => 'warehouse', 'account_column' => 'AccountID', 'items_column' => 'Items', 'bytes' => 1920, 'item_hex_length' => 32, 'serial_procedure' => 'WZ_GetItemSerial']],
        ],
        'muemu' => ['account' => ['password_mode' => 'plain'], 'credits' => ['table' => 'CashShopData'], 'delivery' => ['mode' => 'warehouse_hex']],
    ],
    'license' => [
        'enabled' => true,
        'product_id' => 'infranet-web-v1',
        'version' => '1.0.0',
        'vendor_api' => 'https://servers-infranet.com/api',
        'public_key_file' => BASE_PATH . '/storage/license/public_key.pem',
        'license_file' => BASE_PATH . '/storage/license/license.json',
        'cache_file' => BASE_PATH . '/storage/cache/license_state.json',
        'cache_hours' => 12,
        'grace_days' => 7,
    ],
];
