<?php
/*This is the configuration file for SIPAG
SIPAG uses php and javascript to generate beautifull photo albums 
for your jpg files
Put your photos (.jpg) in a directory eg. ~/public_html/my_photos/
Put the thubnails of the photos in a subdirectory of the above directory
eg. ~/public_html/my_photos/thubs/
Thubnails mast have the same name as the photos' files, or at list follow
the same alphabetical order.
eg. If you have the photos me1.jpg, me2.jpg, me3.jpg you can name the thubs with the same names or me_th1.jpg, me_th2.jpg, me_th3.jpg or even 1.jpg, 2.jpg,3jpg.At the above example me_th1.jpg or 1.jpg is the thubnail of me1.jpg, me_th2.jpg or 2.jpg is the thubnail of m2.jpg and so on. 
If you want each of your photos to be commented by a short description
write in a text file the descriptions each per line. 
The descriptions mast be sorted by the alphabetical order of the filenames of the photos files.
In the previous exaple the first line of desc.txt is the description for me1.jpg, the second is the description of me2.jpg and the third is the description of m3.jpg
*/
/*IMPORTANT!! When editting this file be sure not to remove ";" from the end of the lines*/

/*$pictures_root: This is the (relative to the location of sipag.php) path to the directory that contains all the subdirectories that contain your albums' jpgs. By specifying such a directory you can call sipag giving only the relative to $pictures_root path to the directory where are the jpgs
eg. If you specify $pictures_root='../../images/photos/test/'; then you can call sipag with "sipag.php?pdir=album1/&tpr=3&title=My+Album" to build an album from the jpgs being in ../../images/photos/test/album1/ . 
*/

$pictures_root='../../images/photos/test/';


/*$thubs_dir: This is the (relative to the photos' directory) name of the subdirectory in wich the thubnails are put. The thubnail files mast have a one-to-one correspodence with the photo files and mast follow the same aplphabetical order. The photos and the corespoding thubnails must be in JPG format*/

$thubs_dir='thubs/';


/*$desc_file: This is the (relative to the photos' directory) name of the text file in which the descriptions of the photos are put. The format of the file mast be the following:
- Each description occupies a single line in the file (A new line is created for each description)
- The descriptions mast be sorted by the alphabetical order of the filenames of the correspoding photos (The first line is the description for the first jpg, the second for the second,...)
*/

$desc_file='desc.txt';


/*$stylesheet: This is the (relative to the location of sipag.php) path to the StyleSheet file for the album*/

$stylesheet='sipag.css';


/*$popup_desc: If it is 1 the description of each photo will be popped up with a java-script when you put your mouse pointer on its thubnail (The descriptions must be at the $desc_file)
If it is 0 the description is not popped up even if the file defined from $desc_file exists and contains the decriptions of the photos
*/

$popup_desc=1;


/*$default_desc: When the file specified in $desc_file does not exist and $popup_desc if set to 1 a default description can be popped up when the mouse pointer is put over each thubnail. That description will contain the conten of $default_desc followed by the order number of the photo.
If $default_desc is set to '' no popup is generated*/

$default_desc='Photo ';


/*$sub_desc: The content of $sub_desc will be appended after each description when the mouse pointer is put over a thubnail. eg. To have "Click Here" following each description make $sub_desc='Click Here'*/

$sub_desc='';


/*$close_button: If it is set to 1 a button that closes the window of the album is generated at the end of the page. It's caption is specified at $close_button_caption bellow.
If $close_button is set to 0 no button is created
*/

$close_button=1;


/*$close_button_caption: The caption of the close button defined above by $close_button. It can be plain text, or html tag (eg. a graphical button)*/

$close_button_caption='Close Album';


/*Do not change this*/
$thubs_per_row=$tpr;

?>
