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.
[Updated on: Sat, 21 September 2019 03:09]
Report message to a moderator