From 6b491dc799e3fe1bfb3844bb12b9bb8a2bebb7cd Mon Sep 17 00:00:00 2001 From: eclipse Date: Sun, 16 Mar 2025 18:15:48 +0100 Subject: [PATCH] moved protool and domain from hardcoded to ini file --- content/php/functions.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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'];