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

Today's Messages (off)  | Unread Messages (on) | Subscribed Forums (off) | Subscribed Topics (off) | Unanswered Messages (off)

Forum: Plugins and Code Hacks
 Topic: BUG & Fix: Cleaning up GLOBALS.php $INCLUDE remnants
BUG & Fix: Cleaning up GLOBALS.php $INCLUDE remnants [message #187772] Fri, 20 September 2019 17:20
BugLaden is currently offline  BugLaden   Canada
Messages: 212
Registered: February 2002
Location: Westminster, MD
Karma:
Senior Member
add to buddy list
ignore all 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
naudefj is currently offline  naudefj   United States
Messages: 3695
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
remove from 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.
[more unread messages]



Current Time: Sat Sep 21 17:45:43 EDT 2019

Total time taken to generate the page: 0.00616 seconds