WARNING: This legacy page is obsolete, kept for historical purposes only.
My version of PHPgraphy
- linux-only (it forks a shell script)
- with only french & english texts
- browse the sources on my hg repository, see what I modified
- and download it from there (gz link)
- or apply it as a patch file phpgraphy-colas-v2.patch to your phpgraphy 0.9.13b sources
Implementation details
- a new link download the whole album is added to the links at the top righ. This link text is the string
$txt['download_album']
that I provided in engish and french but could be added for the other languages - this calls a shell script,
cgi/zipdir
that will create a zip file (with thezip
command that must exist on the system) with no compression of all the.jpg
and.jpeg
files at the top level of the album (does not recurse in sub dirs) that the browser will download. The zip file be cached after the download. This script only works on unix, to do thinks properly for the official phpgraphy release would means recoding it in php.- You may want to clean old cache files by a crontab entry like:
00 06 * * * find _your-phpgraphy-dir_/tmp -type f -mtime +30 -exec rm {} \;
the above removing cached zips older than 30 days
- You may want to clean old cache files by a crontab entry like:
- I also added som BR tags after A links in the links at the top right for a better layout
- and replaced some space by non-breaking spaces in English & French texts for a better layout
History
- 2008-08-18 caches the zip files
- 2008-08-16 first version, was generating the zip files on the fly each time