moved protool and domain from hardcoded to ini file

This commit is contained in:
eclipse 2025-03-16 18:15:48 +01:00
parent 1d93d44ab1
commit 6b491dc799

View File

@ -15,9 +15,6 @@ $ini = parse_ini_file($ini_file, TRUE);
// general constants // general constants
$general = [ $general = [
// site domain (used for building confirmation links)
/* 'domain' => 'tobias-radloff.de', */
'domain' => 'localhost',
// string concatenated with email address to create a non-recreatable md5 hash // string concatenated with email address to create a non-recreatable md5 hash
'uniqueKey' => $ini['hash']['uniqueKey'], // works like password salt 'uniqueKey' => $ini['hash']['uniqueKey'], // works like password salt
// file name of confirm script // file name of confirm script
@ -35,7 +32,7 @@ $general = [
'notificationAddress' => 'webseite@tobias-radloff.de' 'notificationAddress' => 'webseite@tobias-radloff.de'
]; ];
// complete site URL // complete site URL
$general['siteURL'] = 'https://' . $general['domain']; $general['siteURL'] = $ini['general']['protocol'] . '://' . $ini['general']['domain'];
$smtp = $ini['smtp']; $smtp = $ini['smtp'];
$db = $ini['db']; $db = $ini['db'];