|
Functions
Photo album
- Display photo with comments in each page
- Select photo from option menu
- Next photo, previous photo link
- Easy update by editting a list file
- Can be browse without list file
- Easy set up by a setup page
- Fast image display by photo preload function
- Easy mode allows to use without any setting
- There is a SSI version of Album and more high functional Album 3
Installation
- Put album2.cgi and cgi-lib.pl into a CGI executable and writable directory.
- Modify the Perl path of the first line in the album2.cgi to match your server environment.
- Modify permission of the album2.cgi properly.
- Open album2.cgi on your browser.
- Set admin password when the CGI asks it.
- Click the setup link and set each items properly and click setup. This contents will be saved into album_set.pl. This page can be open by album2.cgi?mode=setup.
- Put image files into the directory you set in the setup page.
- If necessary, create a file album.lst and put it in the directory you set in the setup page.
- Now you can use it as album2.cgi.
Easy mode
album2.cgi works when you put image files into the same directory where you put the album2.cgi. You do not need to have cgi-bin.pl, password or environment setup. If you put cgi-lib.pl into the same directory as album2.cgi exists, it works as normal mode and you need password.
Easy mode intallation
- Put album2.cgi into a CGI executable directory.
- Modify permission of the album2.cgi properly.
- Put image files into the directory you set in the setup page.
- Open album2.cgi on your browser.
Sample of easy mode
CGI and Source
About the list file
The list file(default is album.lst) is a normal text file and file name, title and comment are separated by a comma and put them each line
There is no limitation of photo image number. You can put as you like.
There is no limitation of title or comment length.
In default, you can use the CGI without a list file. In this case, the images in the image direcotry(the same directory as there CGI located in the easy mode) will be displayed alphabetical order and title will be the file name of the image file.
If you specify file names only in the list file and you do not specify title nor comments, the CGI works and the file name of the photo will be shown as the title of the photo image.B
'#' in the head of a line will be a comment.
Environement and operation will be as show below
| Environment |
album2.cgi |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
| cgi-lib.pl |
No |
Yes |
No |
No |
No |
Yes |
Yes |
Yes |
| album.lst |
No |
No |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
| album.lst file name |
- |
- |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
| album.lst Title |
- |
- |
No |
Yes |
Yes |
No |
Yes |
Yes |
| album.lst Comment |
- |
- |
No |
No |
Yes |
No |
No |
Yes |
| Operation |
Admin password |
No |
Yes |
No |
No |
No |
Yes |
Yes |
Yes |
| Setup |
No |
Yes |
No |
No |
No |
Yes |
Yes |
Yes |
| Back link |
No |
Yes |
No |
No |
No |
Yes |
Yes |
Yes |
| Title is file name |
Yes |
Yes |
Yes |
No |
No |
Yes |
No |
No |
| Specified title |
No |
No |
No |
Yes |
Yes |
No |
Yes |
Yes |
Revision history
- 2.017 : 10/2/05 : Added a link to copyright
- 2.016 : 9/7/05 : Modified crypt
- 2.015 : 8/15/05 : Modified easy mode and list file processing
- 2.014 : 8/12/05 : Added easy mode
- 2.013 : 7/31/05 : Modified to work without a list file
- 2.012 : 7/24/05 : Modified to go to next photo when clicking a photo
- 2.011 : 2/21/05 : Fixed a bug to miss admin password
- 2.01 : 1/22/05 : Modified to not preload if there is no next photo
- 2.0 : 5/27/04 : Modified from album.cgi
|