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

Last change on this file since 880 was 880, checked in by plg, 18 years ago
  • bug 160 fixed: (part one of the bug) hard coded column name of users table had to be replaced by the configurable column name. This correction was made by a full rewrite of filtered users list management. The other bug (not submited in bugtracker) that needed this rewrite was that when you choose "all" as target for mass users modification, you expected to apply modification on filtered users, not all users.
  • bug 160 fixed: (part two of the bug) hard coded column name for primary key in mass_updates function.
  • modification: configuration parameter users_page is now located in the correct file (include/config_default.inc.php instead of admin/user_list.php)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 14.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-10-05 19:41:37 +0000 (Wed, 05 Oct 2005) $
10// | last modifier : $Author: plg $
11// | revision      : $Revision: 880 $
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. See tools/config_local.inc.php as an example.
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// +-----------------------------------------------------------------------+
47// |                                 misc                                  |
48// +-----------------------------------------------------------------------+
49
50// order_by : how to change the order of display for images in a category ?
51//
52// There are several fields that can order the display :
53//
54//  - date_available : the date of the adding to the gallery
55//  - file : the name of the file
56//  - id : element identifier
57//  - date_creation : date of element creation
58//
59// Once you've chosen which field(s) to use for ordering, you must chose the
60// ascending or descending order for each field.  examples :
61//
62// 1. $conf['order_by'] = " order by date_available desc, file asc";
63//    will order pictures by date_available descending & by filename ascending
64//
65// 2. $conf['order_by'] = " order by file asc";
66//    will only order pictures by file ascending without taking into account
67//    the date_available
68$conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC';
69
70// slideshow_period : waiting time in seconds before loading a new page
71// during automated slideshow
72$conf['slideshow_period'] = 4;
73
74// file_ext : file extensions (case sensitive) authorized
75$conf['file_ext'] = array('jpg','JPG','png','PNG','gif','GIF','mpg','zip',
76                          'avi','mp3','ogg');
77
78// picture_ext : file extensions for picture file, must be a subset of
79// file_ext
80$conf['picture_ext'] = array('jpg','JPG','png','PNG','gif','GIF');
81
82// top_number : number of element to display for "best rated" and "most
83// visited" categories
84$conf['top_number'] = 15;
85
86// anti-flood_time : number of seconds between 2 comments : 0 to disable
87$conf['anti-flood_time'] = 60;
88
89// calendar_datefield : date field of table "images" used for calendar
90// catgory
91$conf['calendar_datefield'] = 'date_creation';
92
93// rate : enable feature for rating elements
94$conf['rate'] = true;
95
96// newcat_default_commentable : at creation, must a category be commentable
97// or not ?
98$conf['newcat_default_commentable'] = 'true';
99
100// newcat_default_uploadable : at creation, must a category be uploadable or
101// not ?
102$conf['newcat_default_uploadable'] = 'false';
103
104// newcat_default_visible : at creation, must a category be visible or not ?
105// Warning : if the parent category is invisible, the category is
106// automatically create invisible. (invisible = locked)
107$conf['newcat_default_visible'] = 'true';
108
109// newcat_default_status : at creation, must a category be public or private
110// ? Warning : if the parent category is private, the category is
111// automatically create private.
112$conf['newcat_default_status'] = 'public';
113
114// level_separator : character string used for separating a category level
115// to the sub level. Suggestions : ' / ', ' &raquo; ', ' &rarr; ', ' - ',
116// ' &gt;'
117$conf['level_separator'] = ' / ';
118
119// paginate_pages_around : on paginate navigation bar, how many pages
120// display before and after the current page ?
121$conf['paginate_pages_around'] = 2;
122
123// tn_width : default width for thumbnails creation
124$conf['tn_width'] = 128;
125
126// tn_height : default height for thumbnails creation
127$conf['tn_height'] = 96;
128
129// show_version : shall the version of PhpWebGallery be displayed at the
130// bottom of each page ?
131$conf['show_version'] = true;
132
133// links : list of external links to add in the menu. An example is the best
134// than a long explanation :
135//
136// $conf['links'] = array(
137//   'http://phpwebgallery.net' => 'PWG website',
138//   'http://forum.phpwebgallery.net' => 'PWG forum',
139//   'http://phpwebgallery.net/doc' => 'PWG wiki'
140//   );
141//
142// If the array is empty, the "Links" box won't be displayed on the main
143// page.
144$conf['links'] = array();
145
146// show_thumbnail_caption : on thumbnails page, show thumbnail captions ?
147$conf['show_thumbnail_caption'] = true;
148
149// show_picture_name_on_title : on picture presentation page, show picture
150// name ?
151$conf['show_picture_name_on_title'] = true;
152
153// allow_random_representative : do you wish PhpWebGallery to search among
154// categories elements a new representative at each reload ?
155//
156// If false, an element is randomly or manually chosen to represent its
157// category and remains the representative as long as an admin does not
158// change it.
159//
160// Warning : setting this parameter to true is CPU consuming. Each time you
161// change the value of this parameter from false to true, an administrator
162// must update categories informations in screen [Admin > General >
163// Maintenance].
164$conf['allow_random_representative'] = false;
165
166// allow_html_descriptions : authorize administrators to use HTML in
167// category and element description.
168$conf['allow_html_descriptions'] = true;
169
170// gallery_title : Title at top of each page and for RSS feed
171$conf['gallery_title'] = 'PhpWebGallery demonstration site';
172
173// gallery_description : Short description displayed with gallery title
174$conf['gallery_description'] = 'My photos web site';
175
176// galery_url : URL given in RSS feed
177$conf['gallery_url'] = 'http://demo.phpwebgallery.net';
178
179// prefix_thumbnail : string before filename. Thumbnail's prefix must only
180// contain characters among : a to z (case insensitive), "-" or "_".
181$conf['prefix_thumbnail'] = 'TN-';
182
183// users_page: how many users to display in screen
184// Administration>Identification>Users?
185$conf['users_page'] = 20;
186
187// +-----------------------------------------------------------------------+
188// |                               metadata                                |
189// +-----------------------------------------------------------------------+
190
191// show_iptc: Show IPTC metadata on picture.php if asked by user
192$conf['show_iptc'] = false;
193
194// show_iptc_mapping : is used for showing IPTC metadata on picture.php
195// page. For each key of the array, you need to have the same key in the
196// $lang array. For example, if my first key is 'iptc_keywords' (associated
197// to '2#025') then you need to have $lang['iptc_keywords'] set in
198// language/$user['language']/common.lang.php. If you don't have the lang
199// var set, the key will be simply displayed
200//
201// To know how to associated iptc_field with their meaning, use
202// tools/metadata.php
203$conf['show_iptc_mapping'] = array(
204  'iptc_keywords'        => '2#025',
205  'iptc_caption_writer'  => '2#122',
206  'iptc_byline_title'    => '2#085',
207  'iptc_caption'         => '2#120'
208  );
209
210// use_iptc: Use IPTC data during database synchronization with files
211// metadata
212$conf['use_iptc'] = false;
213
214// use_iptc_mapping : in which IPTC fields will PhpWebGallery find image
215// information ? This setting is used during metadata synchronisation. It
216// associates a phpwebgallery_images column name to a IPTC key
217$conf['use_iptc_mapping'] = array(
218  'keywords'        => '2#025',
219  'date_creation'   => '2#055',
220  'author'          => '2#122',
221  'name'            => '2#005',
222  'comment'         => '2#120'
223  );
224
225// show_exif: Show EXIF metadata on picture.php (table or line presentation
226// avalaible)
227$conf['show_exif'] = true;
228
229// show_exif_fields : in EXIF fields, you can choose to display fields in
230// sub-arrays, for example ['COMPUTED']['ApertureFNumber']. for this, add
231// 'COMPUTED;ApertureFNumber' in $conf['show_exif_fields']
232//
233// The key displayed in picture.php will be $lang['exif_field_Make'] for
234// example and if it exists. For compound fields, only take into account the
235// last part : for key 'COMPUTED;ApertureFNumber', you need
236// $lang['exif_field_ApertureFNumber']
237//
238// for PHP version newer than 4.1.2 :
239// $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime');
240//
241$conf['show_exif_fields'] = array(
242  'Make',
243  'Model',
244  'DateTimeOriginal',
245  'COMPUTED;ApertureFNumber'
246  );
247
248// use_exif: Use EXIF data during database synchronization with files
249// metadata
250$conf['use_exif'] = false;
251
252// use_exif_mapping: same behaviour as use_iptc_mapping
253$conf['use_exif_mapping'] = array(
254  'date_creation' => 'DateTimeOriginal'
255  );
256
257// +-----------------------------------------------------------------------+
258// |                               sessions                                |
259// +-----------------------------------------------------------------------+
260
261// authorize_remembering : permits user to stay logged for a long time. It
262// creates a cookie on client side.
263$conf['authorize_remembering'] = true;
264
265// remember_me_length : time of validity for "remember me" cookies, in
266// seconds.
267$conf['remember_me_length'] = 31536000;
268
269// session_length : time of validity for normal session, in seconds.
270$conf['session_length'] = 3600;
271
272// session_id_size : a session identifier is compound of alphanumeric
273// characters and is case sensitive. Each character is among 62
274// possibilities. The number of possible sessions is
275// 62^$conf['session_id_size'].
276//
277// 62^5  =             916,132,832
278// 62^10 = 839,299,365,868,340,224
279//
280$conf['session_id_size'] = 10;
281
282// +-----------------------------------------------------------------------+
283// |                                debug                                  |
284// +-----------------------------------------------------------------------+
285
286// show_queries : for debug purpose, show queries and execution times
287$conf['show_queries'] = false;
288
289// show_gt : display generation time at the bottom of each page
290$conf['show_gt'] = true;
291
292// debug_l10n : display a warning message each time an unset language key is
293// accessed
294$conf['debug_l10n'] = false;
295
296// +-----------------------------------------------------------------------+
297// |                            authentication                             |
298// +-----------------------------------------------------------------------+
299
300// apache_authentication : use Apache authentication as reference instead of
301// users table ?
302$conf['apache_authentication'] = false;
303
304// users_table: which table is the reference for users? Can be a different
305// table than PhpWebGallery table
306//
307// If you decide to use another table than the default one, you need to
308// prepare your database by deleting some datas :
309//
310// delete from phpwebgallery_user_access;
311// delete from phpwebgallery_user_cache;
312// delete from phpwebgallery_user_feed;
313// delete from phpwebgallery_user_group;
314// delete from phpwebgallery_user_infos;
315// delete from phpwebgallery_sessions;
316// delete from phpwebgallery_rate;
317// update phpwebgallery_images set average_rate = NULL;
318// delete from phpwebgallery_caddie;
319// delete from phpwebgallery_favorites;
320//
321// All informations contained in these tables and column are related to
322// phpwebgallery_users table.
323$conf['users_table'] = $prefixeTable.'users';
324
325// user_fields : mapping between generic field names and table specific
326// field names. For example, in PWG, the mail address is names
327// "mail_address" and in punbb, it's called "email".
328$conf['user_fields'] = array(
329  'id' => 'id',
330  'username' => 'username',
331  'password' => 'password',
332  'email' => 'mail_address'
333  );
334
335// pass_convert : function to crypt or hash the clear user password to store
336// it in the database
337$conf['pass_convert'] = create_function('$s', 'return md5($s);');
338
339// guest_id : id of the anonymous user
340$conf['guest_id'] = 2;
341
342// webmaster_id : webmaster'id.
343$conf['webmaster_id'] = 1;
344
345// +-----------------------------------------------------------------------+
346// |                                upload                                 |
347// +-----------------------------------------------------------------------+
348
349// upload_maxfilesize: maximum filesize for the uploaded pictures. In
350// kilobytes.
351$conf['upload_maxfilesize'] = 200;
352
353// upload_maxheight: maximum height authorized for the uploaded images. In
354// pixels.
355$conf['upload_maxheight'] = 800;
356
357// upload_maxwidth: maximum width authorized for the uploaded images. In
358// kilobytes.
359$conf['upload_maxwidth'] = 800;
360
361// upload_maxheight_thumbnail: maximum height authorized for the uploaded
362// thumbnails
363$conf['upload_maxheight_thumbnail'] = 100;
364
365// upload_maxwidth_thumbnail: maximum width authorized for the uploaded
366// thumbnails
367$conf['upload_maxwidth_thumbnail'] = 150;
368?>
Note: See TracBrowser for help on using the repository browser.