<?php

/////////////////////////////////////////////////////////////
// POSTBLOG: if set --> post pictures to remote blog 
// ($_SESSION['user'] and $_SESSION['pass'] must be set and 
//  must match the remote blog settings!)
//
// $POSTBLOG='http://www.host.net/blog';
/////////////////////////////////////////////////////////////

// Directory which contains the albums and pictures.
$album_directory = "albums";

// Directory where thumbnails are created/cached
// (check if the script has write-permission to this!)
$data_directory = "data";
	
// Size of the thumbnails (maximum values)
$thumb_width = 180;
$thumb_height = 130;
	
// Quality of the jpegs created for thumbnails
$thumb_quality = 75;

// Size of the thumbnail-table
//(not used anymore!)
$rows_per_page = 5;
$pics_per_row = 3;
	
// Maximum sizes of the pictures
$max_picture_width = 500;
$max_picture_height = 400;
	
// Generate scaled version on server if original is this much greater
$max_picture_scaling = 1.5;

// Quality of the jpegs created for server scaled images
$server_scaled_quality = 50;

// Cache scaled version of pictures
$server_scaled_caching = true;

// Used unless the browser requests a supported language
$language = "en";

// Only show the files that match this regular expression.
$pic_extentions = "/\.(jpg|jpeg|gif|png)$/i"; 
$other_extentions = "/\.(mov|wmv|avi|asx|mp3|wma|wav|ogg|ra|ram|mid|midi|tif|tiff|bmp|swf)$/i";	// ones we can't generate thumbnails for

// Show filenames under each thumbnail
// (not used anymore)
$show_filenames_with_thumbnails = true;

// select which version of GD is enabled on your web server:
// 0: no GD at all; No thumbnails are created. 
//    You have to create them by yourself...
// 1: GD 1.x; Not so nice thumbnails 
//            (don't use this if you have GD 2.x, really ugly thumbs!)
// 2: GD 2.x; Nice looking thumbnails (default)
$gd_available = 2;
	
// default thumbnails if custom thumbnails can't be created
$thumb_map = array(
 'default'                             => 'interface/gallery/default_unknown.gif',
 '/\.(jpg|jpeg|gif|png|bmp|tif|tiff)$/i'=> 'interface/gallery/default_photo.gif',
 '/\.(mov|wmv|avi|mpeg|asx|swf)$/i'	       => 'interface/gallery/default_video.gif',
 '/\.(mp3|wma|wav|mp3|ogg|ra|ram|mid|midi)$/i'=>'interface/gallery/default_audio.gif',
 );

$gallery_style = '
<style type="text/css">	
.thumbnail {
  padding: 5px;
}
.picture_description {
  text-align: center;
  width: 80%;
}
.selected img
{ 
  opacity: .5;
  filter: alpha(opacity=50);
  border: 2px solid #888;
 }
</style>
';

?>
