Sorry for the late response
Code: Select all
/************************************************/
function configFileName() {
$tenantId = Authentication::tenantIdPadded();
return __DIR__ . "/config{$tenantId}.php";
}
function default_config() {
return [
'dbServer' => '',
'dbUsername' => '',
'dbPassword' => '',
'dbDatabase' => '',
'dbPort' => '',
'appURI' => '',
'host' => (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] == '80' || $_SERVER['SERVER_PORT'] == '443' ? '' : ":{$_SERVER['SERVER_PORT']}")),
'adminConfig' => [
'adminUsername' => '',
'adminPassword' => '',
'notifyAdminNewMembers' => false,
'defaultSignUp' => 1,
'anonymousGroup' => 'anonymous',
'anonymousMember' => 'guest',
'groupsPerPage' => 10,
'membersPerPage' => 10,
'recordsPerPage' => 10,
'custom1' => 'Full Name',
'custom2' => 'Address',
'custom3' => 'City',
'custom4' => 'State',
'MySQLDateFormat' => '%d-%m-%Y',
'PHPDateFormat' => 'j-n-Y',
'PHPDateTimeFormat' => 'd-m-Y, h:i a',
'senderName' => 'Membership management',
'senderEmail' => '',
'approvalSubject' => 'Your membership is now approved',
'approvalMessage' => "Dear member,\n\nYour membership is now approved by the admin. You can log in to your account here:\nhttp://{$_SERVER['HTTP_HOST']}" . rtrim(dirname($_SERVER['PHP_SELF']), '/\\') . "\n\nRegards,\nAdmin",
'hide_twitter_feed' => false,
'maintenance_mode_message' => '<b>Our website is currently down for maintenance</b><br>\r\nWe expect to be back in a couple hours. Thanks for your patience.',
'mail_function' => 'mail',
'smtp_server' => '',
'smtp_encryption' => '',
'smtp_port' => 25,
'smtp_user' => '',
'smtp_pass' => '',
'googleAPIKey' => '',
'baseUploadPath' => 'images',
'dbBackupCommand' => DB_BACKUP_COMMAND,
'dbRestoreCommand' => DB_RESTORE_COMMAND,
]
];
}
Ron