https://www.icyphoenix.com/viewtopic.php?f=35&t=9378&p=59974#p59974
-----------------------------------
LordPsyan
Tue 06 Jan, 2015 16:12

Cms_config_vars
-----------------------------------
Why does this function return nothing? if I change $authdb=$cms_config_vars['rs_config_adb'][$block_id]; to $authdb="auth"; it returns auth and works perfectly... except I want to be able to change that via cms block edit, instead of modifying the file every time. This code I have placed in usercp_register.php (I am trying to add username\pass\email to another database during registration. everything works perfectly if I hard code the database name, but I want it pulled from cms_config_vars)

[code linenumbers=false]
			function get_authdb($authdb)
			{
				global $cms_config_vars, $block_id;
				$authdb=$cms_config_vars['rs_config_adb'][$block_id];
				return $authdb;
			}
[/code]

Thanks.


