<?php
// Load shared .env so credentials stay out of version control
call_user_func(function () {
    $p = __DIR__ . '/../internal/.env';
    if (!is_readable($p)) return;
    foreach (file($p, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) as $line) {
        if ($line === '' || $line[0] === '#' || !str_contains($line, '=')) continue;
        [$k, $v] = explode('=', $line, 2);
        $k = trim($k); $v = trim($v, " \t\"'");
        if ($k !== '' && getenv($k) === false) putenv("$k=$v");
    }
});

return [
	'dev_name'        	=> 'Benjamin Harris',
	'dev_company'       => 'Modulos Design',
    'dev_email'        	=> 'ben@modulos.com.au',
	'dev_phone'         => '0417 728 061',
	'dev_address'       => '34 Coplestone Street, Scottsdale, Tas 7260',
    'from_address'     	=> 'drafting@modulosdesign.com.au',

	'loa_secret'       => getenv('LOA_TOKEN_SECRET') ?: '',
	
	'host'				=> 'mail.smtp2go.com',
	'username'			=> 'drafting@modulosdesign.com.au',
	'password'         => getenv('CONTRACTS_SMTP2GO_PASS') ?: '',
	'port'				=> '465',

	'smtp_host'			=> 'mail.modulosdesign.com.au',
	'smtp_username'		=> 'drafting@modulosdesign.com.au',
	'smtp_password'    => getenv('CONTRACTS_SMTP_PASS') ?: '',
	'smtp_port'			=> '465',
	
	'db_host'          => getenv('DB_HOST') ?: 'localhost',
	'db_name'          => getenv('DB_NAME') ?: '',
	'db_username'      => getenv('DB_USER') ?: '',
	'db_password'   => getenv('DB_PASS') ?: '',

	'admin_user'       => getenv('CONTRACTS_ADMIN_USER') ?: '',
	'admin_pass'       => getenv('CONTRACTS_ADMIN_PASS') ?: '',

	'dev_signature'		=> 'data:image/png;base64,[encoded data, 193604 characters]',
	
	'dark_logo'			=> 'data:image/png;base64,[encoded data, 69536 characters]',
	'medium_logo'		=> 'data:image/png;base64,[encoded data, 69072 characters]',
	'light_logo'		=> 'data:image/png;base64,[encoded data, 68764 characters]'
];
