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