<?php
// RBE V1 handover configuration.
// Supply environment variables or replace CHANGE_ME_* placeholders in the destination environment.

if (!defined('RBE_DB_HOST')) define('RBE_DB_HOST', getenv('RBE_DB_HOST') ?: 'CHANGE_ME_DB_HOST');
if (!defined('RBE_DB_NAME')) define('RBE_DB_NAME', getenv('RBE_DB_NAME') ?: 'CHANGE_ME_DB_NAME');
if (!defined('RBE_DB_USER')) define('RBE_DB_USER', getenv('RBE_DB_USER') ?: 'CHANGE_ME_DB_USER');
if (!defined('RBE_DB_PASS')) define('RBE_DB_PASS', getenv('RBE_DB_PASS') ?: 'CHANGE_ME_DB_PASSWORD');
if (!defined('RBE_DB_CHARSET')) define('RBE_DB_CHARSET', 'utf8mb4');

if (!defined('RBE_V1_BASE_URL')) define('RBE_V1_BASE_URL', rtrim(getenv('RBE_V1_BASE_URL') ?: 'https://CHANGE_ME_V1_HOST', '/'));
if (!defined('RBE_V2_BASE_URL')) define('RBE_V2_BASE_URL', rtrim(getenv('RBE_V2_BASE_URL') ?: 'https://CHANGE_ME_V2_HOST', '/'));

if (!defined('RBE_IAMMETER_TOKEN')) define('RBE_IAMMETER_TOKEN', getenv('RBE_IAMMETER_TOKEN') ?: 'CHANGE_ME_IAMMETER_TOKEN');
if (!defined('RBE_FLECTO_WATER_TOKEN')) define('RBE_FLECTO_WATER_TOKEN', getenv('RBE_FLECTO_WATER_TOKEN') ?: 'CHANGE_ME_FLECTO_WATER_TOKEN');
if (!defined('RBE_FLECTO_ELECTRIC_API_URL')) define('RBE_FLECTO_ELECTRIC_API_URL', getenv('RBE_FLECTO_ELECTRIC_API_URL') ?: 'https://api.flecto.xyz/flecto_tl_v1.6.php');
if (!defined('RBE_FLECTO_WATER_API_URL')) define('RBE_FLECTO_WATER_API_URL', getenv('RBE_FLECTO_WATER_API_URL') ?: 'https://api.flecto.xyz/flecto_v4.3.php');

if (!defined('RBE_SMTP_HOST')) define('RBE_SMTP_HOST', getenv('RBE_SMTP_HOST') ?: 'CHANGE_ME_SMTP_HOST');
if (!defined('RBE_SMTP_PORT')) define('RBE_SMTP_PORT', (int)(getenv('RBE_SMTP_PORT') ?: 587));
if (!defined('RBE_SMTP_USER')) define('RBE_SMTP_USER', getenv('RBE_SMTP_USER') ?: 'CHANGE_ME_SMTP_USERNAME');
if (!defined('RBE_SMTP_PASS')) define('RBE_SMTP_PASS', getenv('RBE_SMTP_PASS') ?: 'CHANGE_ME_SMTP_PASSWORD');
if (!defined('RBE_MAIL_FROM')) define('RBE_MAIL_FROM', getenv('RBE_MAIL_FROM') ?: 'CHANGE_ME_FROM_EMAIL');
if (!defined('RBE_MAIL_FROM_NAME')) define('RBE_MAIL_FROM_NAME', getenv('RBE_MAIL_FROM_NAME') ?: 'RBE Utilities');
