forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 plugins => Topic started by: Sweetener on November 30, 2019, 01:13:48 am

Title: Check Files plugin table breaking the theme
Post by: Sweetener on November 30, 2019, 01:13:48 am
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?
Title: Re: Check Files plugin table breaking the theme
Post by: 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.
Title: Re: Check Files plugin table breaking the theme
Post by: Sweetener on November 30, 2019, 03:27:18 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
Title: Re: Check Files plugin table breaking the theme
Post by: Sweetener on November 30, 2019, 01:01:32 pm
I fixed it, I there was a missing endtable();


So you have to find this in missing_files.php and additional_files.php
Code: [Select]
EOT;
    pagefooter();
    die();
}

and add the mising endtable();

Code: [Select]
EOT;
    endtable();
    pagefooter();
    die();
}
Title: Re: Check Files plugin table breaking the theme
Post by: ron4mac on November 30, 2019, 02:19:18 pm
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.