moved protool and domain from hardcoded to ini file
This commit is contained in:
parent
1d93d44ab1
commit
6b491dc799
@ -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'];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user