Merge branch 'issue124'
[phpfspot.git] / phpfspot_cfg.php.dist
1 <?php
2
3 /***************************************************************************
4  *
5  * phpfspot, presents your F-Spot photo collection in Web browsers.
6  *
7  * Copyright (c) by Andreas Unterkircher
8  *
9  *  This program is free software; you can redistribute it and/or modify
10  *  it under the terms of the GNU General Public License as published by
11  *  the Free Software Foundation; either version 2 of the License, or
12  *  any later version.
13  *
14  *  This program is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *  GNU General Public License for more details.
18  *
19  *  You should have received a copy of the GNU General Public License
20  *  along with this program; if not, write to the Free Software
21  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  *
23  ***************************************************************************/
24
25 class PHPFSPOT_CFG {
26
27    var $page_title = "phpfspot - dynamic PHP gallery for F-Spot";
28
29    var $base_path = "/var/www/phpfspot";
30
31    var $web_path = "/phpfspot";
32
33    /* path to the directory to store the generated thumbnails.
34       this path needs not do be directly reachable via the webserver
35       Default it points to a subdirectory of $base_path.
36    */
37    var $thumb_path = "/var/www/phpfspot/thumbs";
38
39    var $theme_name = "default";
40  
41    /* database access via "native" sqlite3 support or via "pdo" */
42    var $db_access = "native";
43
44    /* path to Smarty (http://smarty.php.net) installation. this option
45       should directly point to the Smarty main directory containing the
46       sub directories 'libs', 'misc', 'unit_test', ...
47       the default value '/usr/share/php/smarty' is for Debian GNU/Linux
48       where Smarty is installed through as dpkg.
49    */
50    var $smarty_path = "/usr/share/php/smarty";
51
52    /* path to the F-Spot sqlite database. This one must be writeable by
53       the webserver too, to create a necessary index to speed up some
54       operations.
55    */
56    var $fspot_db = "/var/www/f-spot-dbs/photos.db";
57
58    /* this database MUST be writeable for the webserver. Set the directory
59       permissions correctly so phpfspot can create this database for you!!
60    */
61    var $phpfspot_db = "/var/www/f-spot-dbs/phpfspot.db";
62
63    /* sqlite temp dir. per default sqlite tries /var/tmp, /usr/tmp, /tmp
64       and the current working directory for creating temporary files.
65       If you still get error messages when phpfspot tries to create the
66       indecies in $fspot_db, set this option to another writeable
67       directory. For example $phpfspot_db directory, which must be
68       writeable anyway.
69    */
70    // var $sqlite_temp_dir = "/var/www/f-spot-dbs";
71
72    /* don't touch if you haven't changed the base templates */
73    var $thumb_width = "150";
74    var $thumb_height = "145";
75    var $photo_width = "640";
76    var $mini_width = "100";
77
78    /* how many thumbnails should be displayed on the photo index view */
79    /* use 0 to display all matching photos on one page                */
80    var $thumbs_per_page = 50;
81
82    /* Usually the photo directory differs between your local F-Spot installation
83       and your webserver. With this you can advice phpfspot to replace all paths
84       (they are stored in F-Spot's sqlite3 database).
85    */
86    var $path_replace_from = "/home/unki";
87    var $path_replace_to = "/var/www/phpfspot/Photos";
88
89    /* This is not really a security option - it only hides some present F-Spot
90       tags from the available-tags-list
91    */
92    var $hide_tags = Array("Favorites", "Hidden", "People", "Places", "Events");
93
94    /* Show only pictures which are tagged with the following tags.
95       Comment out this option with // if you want to show all tags &
96       pictures.
97    */
98    //var $show_tags = Array("Friends", "Holidays");
99
100    /* Use lightbox2 for photo preview (adds the little eye symbol into the
101       photo index.
102    */
103    var $use_lightbox = true;
104
105    /* Use Ajax Auto Completion for tag search. Maybe, if you have a slow
106       connectivity for the server, it's a good idea to turn it off.
107    */
108    var $use_autocomplete = true;
109
110    /* logging = display || errorlog || logfile */
111    var $logging = "display";
112
113    /* set this if you chose logging = logfile */
114    var $log_file = "phpfspot_err.log";
115
116    /* no need to modified anything below this line */
117    var $error_found = 0;
118
119    /* path to dcraw to decode Nikon's NEF format */
120    // var $dcraw_bin = "/usr/bin/dcraw";
121
122    /* user friendly URLs */
123    var $user_friendly_url = false;
124
125    public function __construct()
126    {
127
128    } // __construct()
129
130 } // class PHPFSPOT_CFG
131
132 ?>