Révision 4fcec884 www/inc/config.inc.php
www/inc/config.inc.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
#base dirname
|
|
3 |
$root = dirname(dirname(__FILE__) . "../");
|
|
4 |
# ===========================================================================
|
|
5 |
# dir index
|
|
6 |
$sortinmonth = 0;// 1 - alphabetically
|
|
7 |
// 0 - by date (reverse)
|
|
2 |
//base dirname
|
|
3 |
$root = dirname(dirname(__FILE__) . "../"); |
|
4 |
// ===========================================================================
|
|
5 |
// dir index
|
|
6 |
$sortinmonth = 0;// 1 - alphabetically |
|
7 |
// 0 - by date (reverse) |
|
8 | 8 |
|
9 |
# ===========================================================================
|
|
10 |
# default languages
|
|
11 |
# use UA's accept language
|
|
9 |
// ===========================================================================
|
|
10 |
// default languages
|
|
11 |
// use UA's accept language
|
|
12 | 12 |
require_once("$root/inc/l10nget.inc.php"); //get from UA |
13 | 13 |
if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) { |
14 |
$sclang = get_lang_from_agent($_SERVER["HTTP_ACCEPT_LANGUAGE"]);
|
|
15 |
} else { |
|
16 |
$sclang = "en";
|
|
14 |
$sclang = get_lang_from_agent($_SERVER["HTTP_ACCEPT_LANGUAGE"]);
|
|
15 |
} else {
|
|
16 |
$sclang = "fr";
|
|
17 | 17 |
} |
18 | 18 |
l10n::set("$root/l10n/".$GLOBALS['sclang']."/exif.lang"); |
19 | 19 |
|
20 |
# ===========================================================================
|
|
21 |
#Name to dsplay on the gallery
|
|
22 |
$scnamegallery = "Photo Gallery Index";
|
|
20 |
// ===========================================================================
|
|
21 |
//Name to dsplay on the gallery
|
|
22 |
$scnamegallery = "Album photo";
|
|
23 | 23 |
|
24 |
// =========================================================================== |
|
25 |
// albums to show |
|
26 |
$yearsince = 2009; |
|
27 |
//images FIXME - this is stylesheet's job |
|
28 |
$img["left"] = "left.png"; |
|
29 |
$img["right"] = "right.png"; |
|
30 |
$img["top"] = "top.png"; |
|
31 |
// =========================================================================== |
|
32 |
//thumbnail behaviour |
|
33 |
//keep this unset for dynamic thumbnail size |
|
34 |
//$thumbsize = "fixed"; |
|
35 |
//How the previous and Next thumbnails should be scaled |
|
36 |
// 1 is 1:1, >1 is smaller, <1 is bigger |
|
37 |
$PNthumbScale = 1.5; |
|
38 |
// Photos Copyright |
|
39 |
// CHANGE THIS! I am not trying to take over the world ;) |
|
40 |
$copy = "Software : GNU/GPL <a href=\"http://jimmac.musichall.cz/original.php\">Original</a> Copyright © 1999-2005 Jakub Steiner - End user interface <a href=\"http://www.ryxeo.com/WebPhotoAlbum.html\">RyXeo WebPhotoAlbum</a> © 2012 Eric Seigne"; |
|
41 |
//app info |
|
42 |
$app["name"] = "RyXeo WebPhotoAlbum"; // opensource remote image gallery, |
|
43 |
// initialy not as lovely |
|
44 |
$app["url"] = "http://www.ryxeo.com/WebPhotoAlbum.html"; |
|
45 |
$app["version"] = "1.0"; |
|
46 |
$exif_show = array("DateTime"=>__("Time Taken"), |
|
47 |
"Make"=>__("Camera Manufacturer"), |
|
48 |
"Model"=>__("Camera Model"), |
|
49 |
"FocalLength"=>__("Real Focal Length"), |
|
50 |
"FocalLengthIn35mmFilm"=>__("Focal Length Relative to 35mm Film"), |
|
51 |
"FNumber"=>__("F Stop"), |
|
52 |
"Copyright"=>__("Copyright"), |
|
53 |
"Artist"=>__("Artist"), |
|
54 |
"ExposureTime"=>__("Time of Exposure"), |
|
55 |
"ISOSpeedRatings"=>__("Film/Chip Sensitivity"), |
|
56 |
"Flash"=>__("Flash")); |
|
57 |
// =========================================================================== |
|
58 |
// Gallery Directory |
|
59 |
// This is a path relative to the directory where original is installed |
|
60 |
// eg. it can be "../galleries" to use a galleries dir above the original dir. |
|
61 |
$gallery_dir="galleries"; |
|
24 | 62 |
|
25 |
# =========================================================================== |
|
26 |
# albums to show |
|
27 |
$yearsince = 1999; |
|
28 |
#images FIXME - this is stylesheet's job |
|
29 |
$img["left"] = "left.png"; |
|
30 |
$img["right"] = "right.png"; |
|
31 |
$img["top"] = "top.png"; |
|
32 |
# =========================================================================== |
|
33 |
#thumbnail behaviour |
|
34 |
//keep this unset for dynamic thumbnail size |
|
35 |
//$thumbsize = "fixed"; |
|
36 |
//How the previous and Next thumbnails should be scaled |
|
37 |
// 1 is 1:1, >1 is smaller, <1 is bigger |
|
38 |
$PNthumbScale = 1.5; |
|
39 |
# Photos Copyright |
|
40 |
# CHANGE THIS! I am not trying to take over the world ;) |
|
41 |
$copy = "Software : GNU/GPL <a href=\"http://jimmac.musichall.cz/original.php\">Original</a> Copyright © 1999-2005 Jakub Steiner - End user interface <a href=\"http://www.ryxeo.com/WebPhotoAlbum.html\">RyXeo WebPhotoAlbum</a> © 2012 Eric Seigne"; |
|
42 |
#app info |
|
43 |
$app["name"] = "RyXeo WebPhotoAlbum"; // opensource remote image gallery, |
|
44 |
// initialy not as lovely |
|
45 |
$app["url"] = "http://www.ryxeo.com/WebPhotoAlbum.html"; |
|
46 |
$app["version"] = "1.0"; |
|
47 |
$exif_show = array("DateTime"=>__("Time Taken"), |
|
48 |
"Make"=>__("Camera Manufacturer"), |
|
49 |
"Model"=>__("Camera Model"), |
|
50 |
"FocalLength"=>__("Real Focal Length"), |
|
51 |
"FocalLengthIn35mmFilm"=>__("Focal Length Relative to 35mm Film"), |
|
52 |
"FNumber"=>__("F Stop"), |
|
53 |
"Copyright"=>__("Copyright"), |
|
54 |
"Artist"=>__("Artist"), |
|
55 |
"ExposureTime"=>__("Time of Exposure"), |
|
56 |
"ISOSpeedRatings"=>__("Film/Chip Sensitivity"), |
|
57 |
"Flash"=>__("Flash")); |
|
58 |
# =========================================================================== |
|
59 |
## Gallery Directory |
|
60 |
# This is a path relative to the directory where original is installed |
|
61 |
# eg. it can be "../galleries" to use a galleries dir above the original dir. |
|
62 |
$gallery_dir="galleries"; |
|
63 |
|
|
64 |
#Enable this to access extended tracking functionality |
|
65 |
#depends on sqlite |
|
63 |
//Enable this to access extended tracking functionality |
|
64 |
//depends on sqlite |
|
66 | 65 |
$have_sqlite = 0; |
67 | 66 |
|
68 |
# This controls wheather web visitors will be able to post
|
|
69 |
# comments to images
|
|
67 |
// This controls wheather web visitors will be able to post
|
|
68 |
// comments to images
|
|
70 | 69 |
$comments = 1; |
71 | 70 |
|
72 |
# Access Log/Counter
|
|
73 |
# $log_access = 0; // no access logging
|
|
71 |
// Access Log/Counter
|
|
72 |
// $log_access = 0; // no access logging
|
|
74 | 73 |
$log_access = 1; |
75 | 74 |
|
76 |
#css styles
|
|
77 |
$themes = array(
|
|
78 |
"dark" => "inc/styles/dark/dark.css",
|
|
79 |
"classic" => "inc/styles/classic/classic.css",
|
|
80 |
"gorilla" => "inc/styles/gorilla/gorilla.css"
|
|
81 |
);
|
|
75 |
//css styles
|
|
76 |
$themes = array( |
|
77 |
"dark" => "inc/styles/dark/dark.css",
|
|
78 |
"classic" => "inc/styles/classic/classic.css",
|
|
79 |
"gorilla" => "inc/styles/gorilla/gorilla.css"
|
|
80 |
);
|
|
82 | 81 |
|
83 | 82 |
?> |
Formats disponibles : Unified diff