Need Help with Upload Display Need Help with Upload Display
 

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

Need Help with Upload Display

Started by Gillie, October 28, 2012, 08:34:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gillie

I found this post http://forum.coppermine-gallery.net/index.php/topic,74682.0.html that might clarify what the problem is on our board.

Your post says that cpg1.5.20 includes fixes for the following non-security related issues:
--display only the uploaded files from the last queue after flash upload


We want the display to show all the previous uploads. 

It used to work that way.

Can we change it back?

Αndré

You can find the corresponding code changes here: http://forum.coppermine-gallery.net/index.php/topic,73826.msg356029.html#msg356029

You don't need to undo all of them, it should be enough to remove e.g.
    // Display only the files from the last queue after flash upload
    if ($superCage->get->keyExists('newer_than')) {
        $owner_str .= " AND ctime > '".$superCage->get->getInt('newer_than')."'";
    }

from editpics.php.


To make it more upgrade-friendly, we can add a hidden config option to cpg1.5.22 which looks like:
    // Display only the files from the last queue after flash upload
    if ($superCage->get->keyExists('newer_than') && $CONFIG['editpics_ignore_newer_than'] != 1) {
        $owner_str .= " AND ctime > '".$superCage->get->getInt('newer_than')."'";
    }


This way, you can add a new row to your database's config table and don't need to re-apply this mod on each upgrade. Please let me know your decision.

evabuick


Αndré

Committed code change in SVN revision 8515.

Αndré

Added missing database records and config option (cpg1.6.x only) in SVN revision 8649.