<?php
define("DEBUG", true);
define("DEFAULT_CONTROLLER", "Dashboard");
define("DEFAULT_LAYOUT", "layout_main");
define("DEFAULT_ADMIN_LAYOUT", "layout_main");
define("PROOT", '/pacific_logistics/');
define("SITE_TITLE", "Pacific Logistics");
define("COMPANY_NAME", "Pacific Group Company Limited");
define("COMPANY_TAGLINE", "Fleet · Operations · Accounting");

define("DB_NAME", 'pacific_logistics');
define("DB_USER", 'root');
define("DB_PASSWORD", '');
define("DB_HOST", 'localhost');

define("LOGGED_TIME_OUT", 1800);

define("UPLOAD_PATH", ROOT . DS . 'uploads' . DS);
define("UPLOAD_URL", PROOT . 'uploads/');
define("MAX_UPLOAD_SIZE", 8 * 1024 * 1024);

define("ATTACH_PATH", ROOT . DS . 'attachments' . DS);
define("ATTACH_URL", PROOT . 'attachments/');

define("ROWS_PER_PAGE", 20);

define("BRAND_COLOR",  "#2626F5");
define("BRAND_ACCENT", "#F5F7FB");

define("APP_ENV", "dev");
define("DEFAULT_CURRENCY", "TZS");
define("DEFAULT_VAT_RATE", 18);
define("DEFAULT_TENANT_ID", 1);

define("CSRF_TOKEN_KEY", "pacific_csrf");
define("SESSION_NAME", "pacific_sess");

// GPS ingestion webhook auth token. Rotate on production install.
// Configure the Traccar bridge (or direct device) to POST to
//   /pacific_logistics/GpsIngest/webhook?token=<this-value>
define("GPS_INGEST_TOKEN", "pl_dev_gps_change_me_before_prod");

// Cron worker auth token. cPanel cron entry:
//   */5 * * * * curl -s "https://.../pacific_logistics/Cron/tick?token=<this>"
define("CRON_TOKEN",       "pl_dev_cron_change_me_before_prod");

// Beem Africa SMS gateway. Register at https://dashboard.beem.africa
define("BEEM_API_KEY",     "");
define("BEEM_SECRET_KEY",  "");
define("BEEM_SENDER_ID",   "PACIFIC");

// Outbound email (used by cron/tick.php dispatcher). Namecheap ships free SMTP
// with your domain — configure MX first, then set:
define("MAIL_FROM",        "no-reply@pacificgroup.co.tz");
define("MAIL_FROM_NAME",   "Pacific Logistics");
define("SMTP_HOST",        "");                    // e.g. mail.pacificgroup.co.tz
define("SMTP_PORT",        587);
define("SMTP_USER",        "");
define("SMTP_PASS",        "");
define("SMTP_SECURE",      "tls");                 // tls | ssl | '' for none
