Delete behavior option Delete behavior option
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Delete behavior option

Started by dbox, December 08, 2003, 06:45:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dbox

It would be nice to have a config option to control the behavior
of deleting a photo.

Right now, the photo is deleted from the album (database entries)
and the original photo jpgs are deleted.  It would be nice to be able
to just delete the photo from an album without deleting the jpg.
This would be really useful for those of us using Coppermine
to provide access to a long-term photo archive.

Nibbler

I've already done this at my gallery, here is how to alter the code if you want to remove user deletions yourself:

Open delete.php, look for:


if (is_file($currFile)) {
            if (@unlink($currFile))
                echo $green;
            else
                echo $red;
        } else
            echo " ";
        echo "</td>";


Replace it with:


echo $green;
echo "</td>";