showPhotoIndex() returns now the content instead of print it out
[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    /* it's enough if this database is readonly for the webserver */
53    var $fspot_db = "/var/www/f-spot-dbs/photos.db";
54
55    /* this database MUST be writeable for the webserver. Set the directory
56       permissions correctly so phpfspot can create this database for you!!
57    */
58    var $phpfspot_db = "/var/www/f-spot-dbs/phpfspot.db";
59
60    /* sqlite temp dir. per default sqlite tries /var/tmp, /usr/tmp, /tmp
61       and the current working directory for creating temporary files.
62       If you still get error messages when phpfspot tries to create the
63       indecies in $fspot_db, set this option to another writeable
64       directory. For example $phpfspot_db directory, which must be
65       writeable anyway.
66    */
67    // var $sqlite_temp_dir = "/var/www/f-spot-dbs";
68
69    /* don't touch if you haven't changed the base templates */
70    var $thumb_width = "150";
71    var $thumb_height = "145";
72    var $photo_width = "640";
73    var $mini_width = "100";
74
75    /* how many thumbnails should be displayed on the photo index view */
76    /* use 0 to display all matching photos on one page                */
77    var $thumbs_per_page = 50;
78
79    /* Usually the photo directory differs between your local F-Spot installation
80       and your webserver. With this you can advice phpfspot to replace all paths
81       (they are stored in F-Spot's sqlite3 database).
82    */
83    var $path_replace_from = "/home/unki";
84    var $path_replace_to = "/var/www/phpfspot/Photos";
85
86    /* This is not really a security option - it only hides some present F-Spot
87       tags from the available-tags-list
88    */
89    var $hide_tags = Array("Favorites", "Hidden", "People", "Places", "Events");
90
91    /* Show only pictures which are tagged with the following tags.
92       Comment out this option with // if you want to show all tags &
93       pictures.
94    */
95    //var $show_tags = Array("Friends", "Holidays");
96
97    /* Use lightbox2 for photo preview (adds the little eye symbol into the
98       photo index.
99    */
100    var $use_lightbox = true;
101
102    /* Use Ajax Auto Completion for tag search. Maybe, if you have a slow
103       connectivity for the server, it's a good idea to turn it off.
104    */
105    var $use_autocomplete = true;
106
107    /* logging = display || errorlog || logfile */
108    var $logging = "display";
109
110    /* set this if you chose logging = logfile */
111    var $log_file = "phpfspot_err.log";
112
113    /* no need to modified anything below this line */
114    var $error_found = 0;
115
116    /* path to dcraw to decode Nikon's NEF format */
117    // var $dcraw_bin = "/usr/bin/dcraw";
118
119    /* user friendly URLs */
120    var $user_friendly_url = false;
121
122    public function __construct()
123    {
124
125    } // __construct()
126
127 } // class PHPFSPOT_CFG
128
129 ?>