<?php
/**
 * PKO @ 50 : configuration.
 * Edit the database values after creating the database in cPanel.
 */

// ---- Database (cPanel) -----------------------------------------------------
define('DB_HOST', 'localhost');
define('DB_NAME', 'CHANGE_ME_dbname');   // ex: pkouser_pko50
define('DB_USER', 'CHANGE_ME_dbuser');   // ex: pkouser_pko
define('DB_PASS', 'CHANGE_ME_dbpass');
define('DB_CHARSET', 'utf8mb4');

// ---- Admin account ---------------------------------------------------------
define('ADMIN_USER', 'birthday');
// Password: Oct@08
// To change it, run: php -r 'echo password_hash("NEW PASSWORD", PASSWORD_BCRYPT);'
// and paste the result below.
define('ADMIN_PASS_HASH', '$2y$12$F3rBU.E.i9ftBmOlmUTyb.jCHoaP2Iicpshg3JBisZsmCrD/NWkeG');

// ---- Event -----------------------------------------------------------------
define('EVENT_TITLE',    'PKO @ 50 : 50 Shades of Love');
define('EVENT_DATE_ISO', '2026-10-08');
define('EVENT_START',    '20261008T180000');
define('EVENT_END',      '20261008T230000');
define('EVENT_VENUE',    'Christ Embassy Togo');
define('EVENT_PHONE_1',  '+22892675220');
define('EVENT_PHONE_2',  '+22890088935');

// ---- Behaviour -------------------------------------------------------------
// Several guests can share one connection (church wifi, a family hotspot),
// so we allow a burst per address instead of a hard cooldown.
define('SUBMIT_WINDOW_SECONDS', 600);
define('SUBMIT_MAX_PER_WINDOW', 15);
// How long the poster stays alone on screen before the page glides down to the
// form, in milliseconds. 3000 is three seconds. Set it to 0 to switch the
// automatic scroll off completely.
define('AUTOSCROLL_DELAY_MS', 3000);

// How long the glide itself takes, in milliseconds. Higher is slower and
// gentler. 2200 is a little over two seconds. Below about 800 it starts to
// feel like a jump rather than a movement.
define('AUTOSCROLL_DURATION_MS', 2200);

define('LOGIN_MAX_ATTEMPTS', 5);
define('LOGIN_LOCK_MINUTES', 15);
define('APP_TIMEZONE', 'Africa/Lome');

date_default_timezone_set(APP_TIMEZONE);
