Check Files plugin table breaking the theme Check Files plugin table breaking the theme
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Check Files plugin table breaking the theme

Started by Sweetener, November 30, 2019, 01:13:48 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Sweetener

Hi, so basically this plugin when it shows the options to see the last results it puts the table before the </body> tag and breaks the theme. The first picture (1.png) is how it looks, and the second picture (2.png) is the fixed vers with inspect element. Is there anyway to fix this or nah?

ron4mac

If you don't see the same behavior with another theme (curve), the issue is likely with your theme, not with the plugin.

Sweetener

Quote from: ron4mac on November 30, 2019, 03:23:11 AM
If you don't see the same behavior with another theme (curve), the issue is likely with your theme, not with the plugin.

I tried with all curve and I got the same problem

Sweetener

I fixed it, I there was a missing endtable();


So you have to find this in missing_files.php and additional_files.php
EOT;
    pagefooter();
    die();
}


and add the mising endtable();

EOT;
    endtable();
    pagefooter();
    die();
}

ron4mac

Thanks for your effort in finding that.  I see no need for the die() statement so I am removing that and will post the updated plugin to the 1.6 plugins area.

Just so you know, this plugin is not effective in guarding your site against hacking. For that, you need something that checks all files for modifications or additions. I use a PHP script (not connected to CPG) to do that. It can be used with a cron job to check your installation and email you the findings. If interested, I can post that here.