FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » fud_sql_error_handler() not defined for FUDAPI calls
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: fud_sql_error_handler() not defined for forum_login.php calls [message #29598 is a reply to message #29592] Mon, 02 January 2006 19:13 Go to previous messageGo to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
Thank you for the reply and sorry for the confusing subject - s/FUDAPI/forum_login.php/g.

As you can see from the code below, forum_login.php loads the required settings from GLOBALS.php by itself:

        /* load forum config */
        $data = file_get_contents($GLOBALS['PATH_TO_FUD_FORUM_GLOBALS_PHP']);
        eval(str_replace('<?php', '', substr_replace($data, '', strpos($data, 'require'))));

        /* db.inc needs certain vars inside the global scope to work, so we export them */
        foreach (array('COOKIE_DOMAIN','COOKIE_NAME','COOKIE_TIMEOUT','COOKIE_PATH','FUD_OPT_1', 'FUD_OPT_3', 'FUD_OPT_2', 'DBHOST', 'DBHOST_USER', 'DBHOST_PASSWORD', 'DBHOST_DBNAME','DATA_DIR','INCLUDE') as $v) {
                $GLOBALS[$v] = $$v;
        }


Best regards.

Frank
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Enable forum always back to "No"
Next Topic: Slow to start a new thread, replies are fast
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 10:46:10 GMT 2024

Total time taken to generate the page: 0.06391 seconds