Mod Name / Version: Delete Orphan Attachments
Description: This script runs through the post database and selects all files in the attachments directory which are orphaned and can't find their home..
Working Under: UBB.Threads 6.5
Mod Status: Finished
Any pre-requisites: Author(s): Just Dave
Date: 10/25/04
Credits: Dave L, Joshpet, ExcelsiorDDZ, scroungr for updating it to 6.5
Files Altered: None
New Files: delorphanfiles.php
Database Altered: No
[:"red"] Warning: If you are storing user pictures in the same place as uploads... it gets rid of any file not associated with a post. Doing the photo uploads for user pictures to a separate directory is best.[/]
Info/Instructions: change the file extension to .php. upload this file into your admin directory and open it in a browser..
So be careful!
Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files. Inspired from a conversation in
this thread