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 picture but keep original  (Read 4319 times)

0 Members and 1 Guest are viewing this topic.

Antax

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Delete picture but keep original
« on: May 05, 2006, 05:07:17 pm »

Is there a way to have Coppermine delete the thumb_ and normal_ but leave the original picture if it is deleted?
« Last Edit: May 05, 2006, 09:17:30 pm by GauGau »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Delete picture but keep original
« Reply #1 on: May 05, 2006, 06:02:49 pm »

in delete.php find
Code: [Select]
    $files = array($dir . $file, $dir . $CONFIG['normal_pfx'] . $file, $dir . $CONFIG['thumb_pfx'] . $file);
and replace with
Code: [Select]
    $files = array($dir . $CONFIG['normal_pfx'] . $file, $dir . $CONFIG['thumb_pfx'] . $file);

Antax

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Delete picture but keep original
« Reply #2 on: May 05, 2006, 06:46:04 pm »

Thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.