1
I am working on a Sprint Tool as module for use with XOOPS. The tool has a config file with the following information:
$GLOBALS['Database User'] = 'username';
$GLOBALS['Database Password'] = 'password';
$GLOBALS['Database Database'] = 'dbname';
$GLOBALS['URL Base'] = 'module_url';
$GLOBALS['Phone Data URL'] = 'phonedata_url';
$GLOBALS['Admin Email'] =
'admin@domainname.com';
I want to do something like this:
$GLOBALS['Database User'] = XOOPS_DB_USER;
$GLOBALS['Database Password'] = XOOPS_DB_PASS;
$GLOBALS['Database Database'] = XOOPS_DB_NAME;
But that doesn't work. Is there another way?