root / phpfspot_cfg.php.dist
View | Annotate | Download (5.3 KB)
| 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 | disable this feature by setting the next variable to false; |
| 87 | */ |
| 88 | var $enable_replace_path = true; |
| 89 | |
| 90 | // substitute all "from" matches with "to" |
| 91 | var $path_replace_from = "/home/unki"; |
| 92 | var $path_replace_to = "/var/www/phpfspot/Photos"; |
| 93 | |
| 94 | /* This is not really a security option - it only hides some present F-Spot |
| 95 | tags from the available-tags-list |
| 96 | */ |
| 97 | var $hide_tags = Array("Favorites", "Hidden", "People", "Places", "Events");
|
| 98 | |
| 99 | /* Show only pictures which are tagged with the following tags. |
| 100 | Comment out this option with // if you want to show all tags & |
| 101 | pictures. |
| 102 | */ |
| 103 | //var $show_tags = Array("Friends", "Holidays");
|
| 104 | |
| 105 | /* Use lightbox2 for photo preview (adds the little eye symbol into the |
| 106 | photo index. |
| 107 | */ |
| 108 | var $use_lightbox = true; |
| 109 | |
| 110 | /* Use Ajax Auto Completion for tag search. Maybe, if you have a slow |
| 111 | connectivity for the server, it's a good idea to turn it off. |
| 112 | */ |
| 113 | var $use_autocomplete = true; |
| 114 | |
| 115 | /* logging = display || errorlog || logfile */ |
| 116 | var $logging = "display"; |
| 117 | |
| 118 | /* set this if you chose logging = logfile */ |
| 119 | var $log_file = "phpfspot_err.log"; |
| 120 | |
| 121 | /* no need to modified anything below this line */ |
| 122 | var $error_found = 0; |
| 123 | |
| 124 | /* path to dcraw to decode Nikon's NEF format */ |
| 125 | // var $dcraw_bin = "/usr/bin/dcraw"; |
| 126 | |
| 127 | /* user friendly URLs */ |
| 128 | var $user_friendly_url = false; |
| 129 | |
| 130 | /* default sort order - possible values are: |
| 131 | |
| 132 | date_asc => sort by date ascending (17.1, 18.1, 19.1, ...) |
| 133 | date_desc => sort by date descending (19.1, 18.1, 17.1, ...) |
| 134 | name_asc => sort by name ascending (alphabetical) |
| 135 | name_desc => sort by name descending (alphabetical) |
| 136 | tags_asc => sort by tag ascending (alphabetical) |
| 137 | tags_desc => sort by tag descending (alphabetical) |
| 138 | rate_asc => sort by rate value ascending (1, 2, 3, 4, 5) |
| 139 | rate_desc => sort by rate value descending (5, 4, 3, 2, 1) |
| 140 | |
| 141 | Attention: Rate value is available beginning with F-Spot version 0.4.1 |
| 142 | |
| 143 | */ |
| 144 | var $sort_order = "tags_asc"; |
| 145 | |
| 146 | public function __construct() |
| 147 | {
|
| 148 | |
| 149 | } // __construct() |
| 150 | |
| 151 | } // class PHPFSPOT_CFG |
| 152 | |
| 153 | ?> |