Autoindex of new photos Autoindex of new photos
 

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

Autoindex of new photos

Started by maverik-svao, March 23, 2011, 01:12:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

maverik-svao

Hello!
I have written a script, which can place new photos from the other site to the coppermine folder in automatic mode.
But I need a script to put this photos into a base.
So I give to this script folder name and album name (id) and it returns pids of placed images.
I tried to create it from searchnew.php, but I can't understand exactly the code of this file.
On the other hand I tried to search something close to this script in this forum, but nothing found...
Thank you for your help!

P.S. Excuse me, if my english is bad. I'm russian...

Αndré

I'm not sure if I understodd you correctly. You created a script that copies files from somewhere to Coppermine's albums directory and now you want to know how you can assign those files to an album?

maverik-svao

Yes!
I'm looking for a script which can assign photos to albums.
Like searchnew.php, but fully automatically.

Αndré

I think your script has to do the following:
1. Scan your directory and determine which files are new and which are already assigned to albums
2. POST the needed data to searchnew.php

maverik-svao

Yes! Should I write it myself, or there is anything already wrote?

Αndré

Afaik such a script doesn't exist yet.

maverik-svao

Thank you!
I'll write it myself!