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

Home » FUDforum Development » Plugins and Code Hacks » BUG & Fix: Cleaning up GLOBALS.php $INCLUDE remnants
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Unsubscribe from topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
BUG & Fix: Cleaning up GLOBALS.php $INCLUDE remnants [message #187772] Fri, 20 September 2019 17:20 Go to next message
BugLaden is currently offline  BugLaden   Canada
Messages: 216
Registered: February 2002
Location: Westminster, MD
Karma: 0
Senior Member
remove from buddy list
stop ignoring messages by this user
When requiring GLOBALS.php in external code to implement the API, this error is thrown:
Notice (8): Undefined variable: INCLUDE [ROOT/FUDforum/include/GLOBALS.php, line 117]

Line 12 in GLOBALS.php is:
$GLOBALS['INCLUDE']             = '/home2/bugladen/cake/tobacconerd/FUDforum/include/';

This seems to have replaced all older variables called $INCLUDE.

However, some instances were missed:

./include/GLOBALS.php   require($INCLUDE .'core.inc');
./include/glob.inc:     $stripped_globals = str_replace('require($INCLUDE .\'core.inc\');', '', $globals);
./src/post.php.t:                               $data = file_get_contents($INCLUDE .'theme/'. $usr->theme_name .'/usercp.inc');


Patch attached.


-=BugLaden

[Updated on: Fri, 20 September 2019 23:09]

Report message to a moderator

Re: BUG & Fix: Cleaning up GLOBALS.php $INCLUDE remnants [message #187773 is a reply to message #187772] Sat, 21 September 2019 04:17 Go to previous message
naudefj is currently offline  naudefj   United States
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Patch applied. Thank you again!

PS: We should probably start looking at a new release, as there's a lot of improvements in the repository.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Make the ยป in the Pager jump to the very end ?
Next Topic: FIX: FUDAPI niggles
Goto Forum:
  

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

Current Time: Thu Dec 12 05:06:59 EST 2024

Total time taken to generate the page: 0.04537 seconds