Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Delete behavior option  (Read 5979 times)

0 Members and 1 Guest are viewing this topic.

dbox

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Delete behavior option
« on: December 08, 2003, 06:45:15 pm »

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.
Logged

Nibbler

  • Guest
Delete behavior option
« Reply #1 on: December 08, 2003, 07:12:47 pm »

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:

Code: [Select]

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


Replace it with:

Code: [Select]

echo $green;
echo "</td>";
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.