diff --git a/content/php/functions.php b/content/php/functions.php index 73609c8..ca70061 100644 --- a/content/php/functions.php +++ b/content/php/functions.php @@ -15,9 +15,6 @@ $ini = parse_ini_file($ini_file, TRUE); // general constants $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 'uniqueKey' => $ini['hash']['uniqueKey'], // works like password salt // file name of confirm script @@ -35,7 +32,7 @@ $general = [ 'notificationAddress' => 'webseite@tobias-radloff.de' ]; // complete site URL -$general['siteURL'] = 'https://' . $general['domain']; +$general['siteURL'] = $ini['general']['protocol'] . '://' . $ini['general']['domain']; $smtp = $ini['smtp']; $db = $ini['db'];