Stray files in the ...
 
Notifications
Clear all

[Closed] Stray files in the root of the site

2 Posts
2 Users
2 Reactions
557 Views
dimalifragis
Posts: 2615
Topic starter
(@dimalifragis)
Famed Member
Joined: 4 years ago

Hi,

I almost had a heart attack. You create files in the root of the site and it took me hours to find the cause. 3 files.

Usergroups.php - 21.117 bytes - 14.09.23 at 19:38 - \Wp-content\Plugins\Wpforo\Classes\
17.580 file_put_contents(ABSPATH . '/logggging-UR.txt', print_r($usergroupid_role, true) . "\r\n", FILE_APPEND);

For god's sake guys ...

1 Reply
Robert
Posts: 10549
Admin
(@robert)
Support Team
Joined: 8 years ago

Hi @dimalifragis,

Great finding! No worries it'll be removed in the next update. At the moment you can remove the line manually.

File: /wpforo/classes/UserGroups.php

Remove the following lines:

file_put_contents(ABSPATH . '/logggging-R.txt', print_r($ugids, true) . "\r\n", FILE_APPEND);
file_put_contents(ABSPATH . '/logggging-UR.txt', print_r($usergroupid_role, true) . "\r\n", FILE_APPEND);
file_put_contents(ABSPATH . '/logggging-RL.txt', print_r($role, true) . "\r\n", FILE_APPEND);