Please apply the following code changes and report if it works as expected.
1. Open upload.php, find
set_js_var('max_upl_size', $CONFIG['max_upl_size']);
and below, add
set_js_var('timestamp', time());
2. Open js/setup_swf_upload.js, find
window.location = js_vars.site_url + '/editpics.php?album=' + $("select[name='album']").val();
and replace with
window.location = js_vars.site_url + '/editpics.php?album=' + $("select[name='album']").val() + '&newer_than=' + js_vars.timestamp;
3. Open editpics.php, find
$result = cpg_db_query($sql . $owner_str);
and above, add
// 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')."'";
}
find
$next_target = $CPG_PHP_SELF . '?album=' . $album_id . '&start=' . ($start + $count) . '&count=' . $count . (UPLOAD_APPROVAL_MODE ? '&mode=upload_approval' : '');
$prev_target = $CPG_PHP_SELF . '?album=' . $album_id . '&start=' . max(0, $start - $count) . '&count=' . $count . (UPLOAD_APPROVAL_MODE ? '&mode=upload_approval' : '');
and replace with
$newer_than = $superCage->get->keyExists('newer_than') ? "&newer_than=".$superCage->get->getInt('newer_than') : '';
$next_target = $CPG_PHP_SELF . '?album=' . $album_id . '&start=' . ($start + $count) . '&count=' . $count . (UPLOAD_APPROVAL_MODE ? '&mode=upload_approval' : '') . $newer_than;
$prev_target = $CPG_PHP_SELF . '?album=' . $album_id . '&start=' . max(0, $start - $count) . '&count=' . $count . (UPLOAD_APPROVAL_MODE ? '&mode=upload_approval' : '') . $newer_than;
find
$form_target = $CPG_PHP_SELF . '?album=' . $album_id . '&start=' . $start . '&count=' . $count;
and replace with
$form_target = $CPG_PHP_SELF . '?album=' . $album_id . '&start=' . $start . '&count=' . $count . $newer_than;
find
<select onchange="if(this.options[this.selectedIndex].value) window.location.href='{$CPG_PHP_SELF}?album=$album_id$mode&start=$start&count='+this.options[this.selectedIndex].value;" name="count" class="listbox">
and replace with
<select onchange="if(this.options[this.selectedIndex].value) window.location.href='{$CPG_PHP_SELF}?album=$album_id$mode&start=$start&count='+this.options[this.selectedIndex].value+'$newer_than'" name="count" class="listbox">
Imo we should add this feature to the core code if it works as expected (even to the cpg1.5.x branch).