3 /***************************************************************************
5 * phpfspot, presents your F-Spot photo collection in Web browsers.
7 * Copyright (c) by Andreas Unterkircher
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
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.
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.
23 ***************************************************************************/
27 var $page_title = "phpfspot - dynamic PHP gallery for F-Spot";
29 var $base_path = "/var/www/phpfspot";
31 var $web_path = "/phpfspot";
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.
37 var $thumb_path = "/var/www/phpfspot/thumbs";
39 var $theme_name = "default";
41 /* database access via "native" sqlite3 support or via "pdo" */
42 var $db_access = "native";
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.
50 var $smarty_path = "/usr/share/php/smarty";
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
56 var $fspot_db = "/var/www/f-spot-dbs/photos.db";
58 /* this database MUST be writeable for the webserver. Set the directory
59 permissions correctly so phpfspot can create this database for you!!
61 var $phpfspot_db = "/var/www/f-spot-dbs/phpfspot.db";
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
70 // var $sqlite_temp_dir = "/var/www/f-spot-dbs";
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";
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;
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).
86 var $path_replace_from = "/home/unki";
87 var $path_replace_to = "/var/www/phpfspot/Photos";
89 /* This is not really a security option - it only hides some present F-Spot
90 tags from the available-tags-list
92 var $hide_tags = Array("Favorites", "Hidden", "People", "Places", "Events");
94 /* Show only pictures which are tagged with the following tags.
95 Comment out this option with // if you want to show all tags &
98 //var $show_tags = Array("Friends", "Holidays");
100 /* Use lightbox2 for photo preview (adds the little eye symbol into the
103 var $use_lightbox = true;
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.
108 var $use_autocomplete = true;
110 /* logging = display || errorlog || logfile */
111 var $logging = "display";
113 /* set this if you chose logging = logfile */
114 var $log_file = "phpfspot_err.log";
116 /* no need to modified anything below this line */
117 var $error_found = 0;
119 /* path to dcraw to decode Nikon's NEF format */
120 // var $dcraw_bin = "/usr/bin/dcraw";
122 /* user friendly URLs */
123 var $user_friendly_url = false;
125 public function __construct()
130 } // class PHPFSPOT_CFG