Commit 0a2600a1 authored by Michael Stucki's avatar Michael Stucki
Browse files

t3a-members.php: Update database credentials

parent f48b4dd9
......@@ -4,30 +4,11 @@ error_reporting(E_ALL & ~E_NOTICE);
require('api-keys.php');
define(
'PATH_THISSCRIPT',
str_replace(
'//',
'/',
str_replace(
'\\',
'/',
(PHP_SAPI === 'fpm-fcgi' || PHP_SAPI === 'cgi' || PHP_SAPI === 'isapi' || PHP_SAPI === 'cgi-fcgi') &&
(!empty($_SERVER['ORIG_PATH_TRANSLATED']) ? $_SERVER['ORIG_PATH_TRANSLATED'] : $_SERVER['PATH_TRANSLATED']) ?
(!empty($_SERVER['ORIG_PATH_TRANSLATED']) ? $_SERVER['ORIG_PATH_TRANSLATED'] : $_SERVER['PATH_TRANSLATED']) :
(!empty($_SERVER['ORIG_SCRIPT_FILENAME']) ? $_SERVER['ORIG_SCRIPT_FILENAME'] : $_SERVER['SCRIPT_FILENAME'])
)
)
);
define('PATH_SITE', dirname(PATH_THISSCRIPT) . '/');
// db connection
require(PATH_SITE . '../../private/typo3conf/AdditionalConfiguration.php');
define('TYPO3_DB_NAME', $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['dbname']);
define('TYPO3_DB_HOST', $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['host']);
define('TYPO3_DB_USERNAME', $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['user']);
define('TYPO3_DB_PASSWORD', $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['password']);
define('TYPO3_DB_NAME', getenv('DB_NAME'));
define('TYPO3_DB_HOST', getenv('DB_HOST'));
define('TYPO3_DB_USERNAME', getenv('DB_USERNAME'));
define('TYPO3_DB_PASSWORD', getenv('DB_PASSWORD'));
// no user serviceable parts below...
if (empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && empty($_SERVER['HTTPS'])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment