aboutsummaryrefslogtreecommitdiff
path: root/www/inc/config.inc.php
blob: 1f0bbd378d606c1c7cf6f2f7304dc4fdc535e923 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
#base dirname
   //dirname("__FILE__/..")
   eregi("^(.*)/[^/]*$", $ScriptFileName, $x);
   $root = $x[1];
# ===========================================================================
# dir index
	 $sortinmonth = 0;// 1 - alphabetically
	 								  // 0 - by date (reverse)

# ===========================================================================
# default languages
# use UA's accept language
require_once("$root/inc/l10nget.inc.php"); //get from UA
if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) {
	$sclang = get_lang_from_agent($_SERVER["HTTP_ACCEPT_LANGUAGE"]);
} else {
	$sclang = "en";
}
l10n::set("$root/l10n/".$GLOBALS['sclang']."/exif.lang");

# ===========================================================================
#Name to dsplay on the gallery
$scnamegallery = "Photo Gallery Index";


# ===========================================================================
# albums to show
   $yearsince = 1999;
   $yearto = 2005;
#images FIXME - this is stylesheet's job
   $img["left"] = "left.png";
   $img["right"] = "right.png";
   $img["top"] = "top.png";
# ===========================================================================
#thumbnail behaviour
   //keep this unset for dynamic thumbnail size
   //$thumbsize = "fixed";
   //How the previous and Next thumbnails should be scaled
   // 1 is 1:1, >1 is smaller, <1 is bigger
   $PNthumbScale = 1.5;
# Photos Copyright
#	CHANGE THIS! I am not trying to take over the world ;)
	 $copy = "Copyright &copy; 1999-2005 Jakub Steiner";
#app info
   $app["name"] = "Original"; // opensource remote image gallery,
                              // initialy not as lovely 
   $app["url"] = "http://jimmac.musichall.cz/original.php3";
   $app["version"] = "0.11";
# ===========================================================================
# EXIF metadata app path (helper app for php3 and older php4)
# uncomment the method you want to use if you want EXIF data reported
# ---------------------------------------------------------------------------
## use internal function of PHP 4:
   $exif_prog = "php4";
   $exif_show = array("DateTime"=>__("Time Taken"), 
	 						"Make"=>__("Camera Manufacturer"), 
	 						"Model"=>__("Camera Model"), 
							"FocalLength"=>__("Real Focal Length"), 
	 						"FocalLengthIn35mmFilm"=>__("Focal Length Relative to 35mm Film"),
	 						"FNumber"=>__("F Stop"), 
							"ExposureTime"=>__("Time of Exposure"), 
							"ISOSpeedRatings"=>__("Film/Chip Sensitivity"),
							"Flash"=>__("Flash"));
# ---------------------------------------------------------------------------
## use metacam (give absolute path to the binary on the server):
#   $exif_prog = "/usr/local/bin/metacam";
## what EXIF data to show (if unset, all will be shown)
## some example fields for metacam:
#   $exif_show = array("Image Capture Date", "Make", "Model",
#                "Exposure Program", "Exposure Mode",
#                "Focal Length", "Exposure Time",
#                "Aperture Value", "ISO Speed Rating", "White Balance",
#                "Flash", "Scene Capture Type",
#                "Metering Mode", "Max Aperture Value", "Shutter Speed Value"
#                );
# ---------------------------------------------------------------------------
## use jhead (give absolute path to the binary on the server):
#  $exif_prog = "/usr/local/bin/jhead";
## what EXIF data to show (if unset, all will be shown)
## some example fields for jhead:
# $exif_show = array(
#                    "Date/Time",
#                    "Camera make",
#                    "Camera model",
#                    "Focal length",
#                    "Exposure time",
#                    "Aperture Value",
#                    "ISO equiv.",
#                    "Exposure",
#                  );
# ===========================================================================
## Gallery Directory
# This is a path relative to the directory where original is installed
# eg. it can be "../galleries" to use a galleries dir above the original dir.
  $gallery_dir="../galleries";

# This controls wheather web visitors will be able to post
# comments to images
$comments = 1;

# Access Log/Counter
# $log_access = 0; // no access logging
# $log_access = 1; // simple counter
# $log_access = 2; // detailed log FIXME: TODO (not sure about doing this, as 
									 // it duplicates server's access log and tends to grow large
$log_access = 1; 

#css styles
   $themes = array(
               "dark" => "inc/styles/dark/dark.css",
               "classic" => "inc/styles/classic/classic.css",
               "gorilla" => "inc/styles/gorilla/gorilla.css"
   );




?>