source: trunk/include/config_default.inc.php @ 795

Last change on this file since 795 was 770, checked in by plg, 19 years ago
  • include/config.inc.php becomes include/config_default.inc.php : this file should not be modified. A new file include/config_local.inc.php can be used for overwriting configuration parameters
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 8.2 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | PhpWebGallery - a PHP based picture gallery                           |
4// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
5// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
6// +-----------------------------------------------------------------------+
7// | branch        : BSF (Best So Far)
8// | file          : $RCSfile$
9// | last update   : $Date: 2005-04-25 22:11:57 +0000 (Mon, 25 Apr 2005) $
10// | last modifier : $Author: plg $
11// | revision      : $Revision: 770 $
12// +-----------------------------------------------------------------------+
13// | This program is free software; you can redistribute it and/or modify  |
14// | it under the terms of the GNU General Public License as published by  |
15// | the Free Software Foundation                                          |
16// |                                                                       |
17// | This program is distributed in the hope that it will be useful, but   |
18// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
19// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
20// | General Public License for more details.                              |
21// |                                                                       |
22// | You should have received a copy of the GNU General Public License     |
23// | along with this program; if not, write to the Free Software           |
24// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
25// | USA.                                                                  |
26// +-----------------------------------------------------------------------+
27
28/**
29 *                           configuration page
30 *
31 * Set configuration parameters that are not in the table config. In the
32 * application, configuration parameters are considered in the same way
33 * coming from config table or config_default.inc.php.
34 *
35 * It is recommended to let config_default.inc.php as provided and to
36 * overwrite configuration in your local configuration file
37 * config_local.inc.php
38 *
39 * Why having some parameters in config table and others in
40 * config_*.inc.php? Modifying config_*.inc.php is a "hard" task for low
41 * skilled users, they need a GUI for this : admin/configuration. But only
42 * parameters that might be modified by low skilled users are in config
43 * table, other parameters are in config_*.inc.php
44 */
45
46// order_by : how to change the order of display for images in a category ?
47//
48// There are several fields that can order the display :
49//
50//  - date_available : the date of the adding to the gallery
51//  - file : the name of the file
52//  - id : element identifier
53//  - date_creation : date of element creation
54//
55// Once you've chosen which field(s) to use for ordering, you must chose the
56// ascending or descending order for each field.  examples :
57//
58// 1. $conf['order_by'] = " order by date_available desc, file asc";
59//    will order pictures by date_available descending & by filename ascending
60//
61// 2. $conf['order_by'] = " order by file asc";
62//    will only order pictures by file ascending without taking into account
63//    the date_available
64$conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC';
65
66// slideshow_period : waiting time in seconds before loading a new page
67// during automated slideshow
68$conf['slideshow_period'] = 4;
69
70// last_days : options for X last days to displays for comments
71$conf['last_days'] = array(1,2,3,10,30,365);
72
73// file_ext : file extensions (case sensitive) authorized
74$conf['file_ext'] = array('jpg','JPG','png','PNG','gif','GIF','mpg','zip',
75                          'avi','mp3','ogg');
76
77// picture_ext : file extensions for picture file, must be a subset of
78// file_ext
79$conf['picture_ext'] = array('jpg','JPG','png','PNG','gif','GIF');
80
81// top_number : number of element to display for "best rated" and "most
82// visited" categories
83$conf['top_number'] = 15;
84
85// anti-flood_time : number of seconds between 2 comments : 0 to disable
86$conf['anti-flood_time'] = 60;
87
88// show_iptc_mapping : is used for showing IPTC metadata on picture.php
89// page. For each key of the array, you need to have the same key in the
90// $lang array. For example, if my first key is 'iptc_keywords' (associated
91// to '2#025') then you need to have $lang['iptc_keywords'] set in
92// language/$user['language']/common.lang.php. If you don't have the lang
93// var set, the key will be simply displayed
94//
95// To know how to associated iptc_field with their meaning, use
96// tools/metadata.php
97$conf['show_iptc_mapping'] = array(
98  'iptc_keywords'        => '2#025',
99  'iptc_caption_writer'  => '2#122',
100  'iptc_byline_title'    => '2#085',
101  'iptc_caption'         => '2#120'
102  );
103
104// use_iptc_mapping : in which IPTC fields will PhpWebGallery find image
105// information ? This setting is used during metadata synchronisation. It
106// associates a phpwebgallery_images column name to a IPTC key
107$conf['use_iptc_mapping'] = array(
108  'keywords'        => '2#025',
109  'date_creation'   => '2#055',
110  'author'          => '2#122',
111  'name'            => '2#005',
112  'comment'         => '2#120'
113  );
114
115// show_exif_fields : in EXIF fields, you can choose to display fields in
116// sub-arrays, for example ['COMPUTED']['ApertureFNumber']. for this, add
117// 'COMPUTED;ApertureFNumber' in $conf['show_exif_fields']
118//
119// The key displayed in picture.php will be $lang['exif_field_Make'] for
120// example and if it exists. For compound fields, only take into account the
121// last part : for key 'COMPUTED;ApertureFNumber', you need
122// $lang['exif_field_ApertureFNumber']
123//
124// for PHP version newer than 4.1.2 :
125// $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime');
126//
127$conf['show_exif_fields'] = array('Make',
128                                  'Model',
129                                  'DateTime',
130                                  'COMPUTED;ApertureFNumber');
131
132// calendar_datefield : date field of table "images" used for calendar
133// catgory
134$conf['calendar_datefield'] = 'date_creation';
135
136// rate : enable feature for rating elements
137$conf['rate'] = true;
138
139// remember_me_length : time of validity for "remember me" cookies, in
140// seconds.
141$conf['remember_me_length'] = 31536000;
142
143// session_length : time of validity for normal session, in seconds.
144$conf['session_length'] = 3600;
145
146// session_id_size : a session identifier is compound of alphanumeric
147// characters and is case sensitive. Each character is among 62
148// possibilities. The number of possible sessions is
149// 62^$conf['session_id_size'].
150//
151// 62^5  =             916,132,832
152// 62^10 = 839,299,365,868,340,224
153//
154$conf['session_id_size'] = 10;
155
156// info_nb_elements_page : number of elements to display per page on
157// admin/infos_images
158$conf['info_nb_elements_page'] = 5;
159
160// show_queries : for debug purpose, show queries and execution times
161$conf['show_queries'] = false;
162
163// show_gt : display generation time at the bottom of each page
164$conf['show_gt'] = true;
165
166// newcat_default_commentable : at creation, must a category be commentable
167// or not ?
168$conf['newcat_default_commentable'] = 'true';
169
170// newcat_default_uploadable : at creation, must a category be uploadable or
171// not ?
172$conf['newcat_default_uploadable'] = 'false';
173
174// newcat_default_visible : at creation, must a category be visible or not ?
175// Warning : if the parent category is invisible, the category is
176// automatically create invisible. (invisible = locked)
177$conf['newcat_default_visible'] = 'true';
178
179// newcat_default_status : at creation, must a category be public or private
180// ? Warning : if the parent category is private, the category is
181// automatically create private.
182$conf['newcat_default_status'] = 'public';
183
184// level_separator : character string used for separating a category level
185// to the sub level. Suggestions : ' / ', ' &raquo; ', ' &rarr; ', ' - ',
186// ' &gt;'
187$conf['level_separator'] = ' / ';
188
189// paginate_pages_around : on paginate navigation bar, how many pages
190// display before and after the current page ?
191$conf['paginate_pages_around'] = 2;
192
193// tn_width : default width for thumbnails creation
194$conf['tn_width'] = 128;
195
196// tn_height : default height for thumbnails creation
197$conf['tn_height'] = 96;
198
199// show_version : shall the version of PhpWebGallery be displayed at the
200// bottom of each page ?
201$conf['show_version'] = true;
202?>
Note: See TracBrowser for help on using the repository browser.