Downloads:Cleanup Script - Gallery Codex
Personal tools

Downloads:Cleanup Script

From Gallery Codex


Bharat's Cleanup Script

Author: Bharat Mediratta

Description

This script allows you to change the permissions on old album or g2data directories so that you can delete them.

Compatibility

Gallery 1, Gallery 2 and Gallery 3

Usage

Because Gallery runs as part of the webserver, any files it creates are owned by the webserver process. If you want to modify those files yourself, you need to get the webserver to change the permissions on them so that you have access. That's what this script is for.

Download this file, unzip it and put it on your webserver as cleanup.php
Open it in your browser, and enter the path to your albums directory and this script will make every file in that path (that it can access) writable by everybody.

After that, you should be able to delete the files manually via your FTP client or via the shell.

Download

Download Cleanup-1.1.zip