How to automatically delete pics(or albuns) with date. How to automatically delete pics(or albuns) with date.
 

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

How to automatically delete pics(or albuns) with date.

Started by evildance, June 08, 2005, 10:43:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

evildance

How to automatically delete pics(or albuns) with date.
Ex: 7 days later automatically delete.
Please teach me how to do.
Thanks!

Abbas Ali

You will have to create a cron script for this which automatically gets executed once daily. This script will search for the pics that are older than 7 days and then delete them. It is not an easy job to create such a script and will require certain skills. You can ask if anybody is willing to do so for you.
Chief Geek at Ranium Systems

Joachim Müller

on most shared/virtual host (i.e. when webhosted) you're not allowed to run cron jobs anyway. There could be another method of triggering the delete script, which is on access over http: you would have to add some if/then switch to a coppermine page that performs the check if the auto-delete script has been run on this day already; if not, execute it. However, you would still have to come up with this code on your own - coppermine doesn't come with this sort of script out-of-the-box.

Nibbler

There are functions in delete.php that can handle pic and album deletions cleanly. You'll just need a way to trigger the update as described above and select the appropriate pics based on their ctime.