FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
getting the GLOBALS needed for fudapi
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=35513&th=7543#msg_35513
Catch is: the variables exported don't cover all the ones needed by fudapi.inc.php.
For example, when fud_add_user() copies $vals['login'] to the alias, it relies on $GLOBALS['MAX_LOGIN_SHOW'] and will fail if that's not set, and the alias field will stay blank.
I searched fudapi for uses of globals and added these to be exported:
'SERVER_TZ', 'MAX_LOGIN_SHOW', 'POSTS_PER_PAGE',
'WWW_ROOT', 'LOGEDIN_TIMEOUT', 'TMP'
There may be other ones in code called from fudapi? For easier future integration, it'd be great if there was a fool-proof way to get all globals exported correctly.
Simply including GLOBALS.php at the top of fudapi.inc.php won't work for me because fudapi.inc.php is being included inside a function and I have no control over that.]]>maarten2007-01-17T19:40:13-00:00Re: getting the GLOBALS needed for fudapi
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=35520&th=7543#msg_35520
Ilia2007-01-18T00:05:37-00:00