Everything is fully automatic.
Basicly I have 3 xml files: "
NewPhotos.xml", "
NewComments.xml", "
NewRates.xml".
I've changed
indexController.php file, so when I do some operations on files in admin panel (uploading files, mooving files, renaming files, deleting files, etc...) my xml files are always updated by script.
The xml's tree looks for example like this:
<images>
<image name="Pic1.jpg" path="/conjtent/gallery/" info="11.10.2011" id="1" />
<image name="Pic2.jpg" path="/conjtent/gallery2/" info="20.10.2011" id="2" />
<image name="Pic3.jpg" path="/conjtent/gallery3/" info="22.10.2011" id="3" />
</images>
When uploading photos, script automatically create next
<image/> section in "
NewPhotos.xml" file, with all informations about it (file name, path, info...)
If for example I move "
Pic1.jpg", from folder "
gallery" to "
gallery2", then script in
indexController.php, read my xml files and if found image with "
path" same as old path (there, where picture is currently), then change "
path" to new one (there where I moved "
Pic1.jpg").
The same situation is with deleting images, if script found that deleted file informations is stored in my xml files, then automatically remove them.
Script also check if the folder where I currently upload photos is hidden, or protected by password, if so, this picture will not be saved in "
NewPhotos.xml" file.
The thumbnails are "extracted" in flash module, just flash script merge
path + "
tn_" +
image name and load them.
There you have more informations about script I use.